Skip to main content

Find the details

Stepfind-detailsextractdeprecated

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

At a glance​

PropertyValue
Step namefind-details
ResourceClusterStep (lumen.ai/v1alpha1)
Palette group, categoryextract, ai
Credits1 credit each time it succeeds
Side effectsno
Installation must providenothing

Inputs​

PropertyValue
Needstext
Producesfields
Works onitem one document at a time

Needs and Produces are data types (file, text, fields, email). The editor offers a step only where what it needs is already on the path. See Documents and data.

Outputs​

More outputs are declared in the setting `fields`.

Settings​

Set under config: on the flow node. Text settings may contain {nodeId.field} placeholders.

SettingTypeDefaultDescription
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[].namerequiredstring-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

The full JSON Schema of these settings: find-details.schema.json.

Use it in a flow​

A node that runs find-details goes under spec.nodes of a Flow. Give it any id, and list the next node ids in next.

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}