Saltar al contenido principal

Find the details

Pasofind-detailsextractobsoleto

Replaced by an AI agent step. Give the agent the details to find as its fields.

De un vistazo​

PropiedadValor
Nombre del pasofind-details
RecursoClusterStep (lumen.ai/v1alpha1)
Grupo de la paleta, categoríaextract, ai
Créditos1 crédito cada vez que tiene éxito
Efectos externosno
La instalación debe aportarnada

Entradas​

PropiedadValor
Necesitatext
Producefields
Trabaja sobreitem un documento cada vez

Necesita y Produce son tipos de datos (file, text, fields, email). El editor ofrece un paso solo donde lo que necesita ya está en el camino. Consulta Documentos y datos.

Salidas​

More outputs are declared in the setting `fields`.

Ajustes​

Se definen bajo config: en el nodo del flujo. Los ajustes de texto pueden contener marcadores de posición como {nodeId.field}.

AjusteTipoValor por defectoDescripción
methodstring"rules"Method is how the details are found: rules (labels, free, the default) or ai (a model call).one of rules, ai
fieldslist of object-Fields are the details to find, named by the customer. Unset means the invoice defaults: supplier, date, total, invoice number.minItems 1
fields[].nameobligatoriostring-minLength 1
fields[].hintstring-Hint is more labels to look for, comma separated: "Amount due, סכום".
fields[].typestring-Type is what the detail is: string, number, date (YYYY-MM-DD) or money ({amount, currency}). Unset is string, except that a known detail (date, total) keeps its own type.one of string, number, date, money

El JSON Schema completo de estos ajustes: find-details.schema.json.

Úsalo en un flujo​

Un nodo que ejecuta find-details va bajo spec.nodes de un Flow. Dale cualquier id y enumera en next los ids de los nodos siguientes.

flow.yaml
apiVersion: lumen.ai/v1alpha1
kind: Connector
metadata:
name: my-webhook
namespace: tenant-acme
spec:
classRef: {name: webhook}
config: {}
---
apiVersion: lumen.ai/v1alpha1
kind: Flow
metadata:
name: find-details-example
namespace: tenant-acme
spec:
displayName: "Find the details"
triggers:
- id: start
ref: {name: webhook-received}
connectorRef: {name: my-webhook}
next: [find-details]
nodes:
- id: find-details
stepRef: {name: find-details}