Find the details
Paso
find-detailsextractobsoletoReplaced by an AI agent step. Give the agent the details to find as its fields.
De un vistazo
| Propiedad | Valor |
|---|---|
| Nombre del paso | find-details |
| Recurso | ClusterStep (lumen.ai/v1alpha1) |
| Grupo de la paleta, categoría | extract, ai |
| Créditos | 1 crédito cada vez que tiene éxito |
| Efectos externos | no |
| La instalación debe aportar | nada |
Entradas
| Propiedad | Valor |
|---|---|
| Necesita | text |
| Produce | fields |
| Trabaja sobre | item 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}.
| Ajuste | Tipo | Valor por defecto | Descripción |
|---|---|---|---|
method | string | "rules" | Method is how the details are found: rules (labels, free, the default) or ai (a model call).one of rules, ai |
fields | list 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[].nameobligatorio | string | - | minLength 1 |
fields[].hint | string | - | Hint is more labels to look for, comma separated: "Amount due, סכום". |
fields[].type | string | - | 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}
¿Te ha resultado útil esta página?