# Find the details

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

Source: https://docs.go-lumen.ai/reference/steps/find-details

## At a glance

| Property | Value |
| --- | --- |
| **Step name** | `find-details` |
| **Resource** | ClusterStep (`lumen.ai/v1alpha1`) |
| **Palette group, category** | extract, ai |
| **Credits** | **1** credit each time it succeeds |
| **Side effects** | no |
| **Installation must provide** | nothing |

## Inputs

| Property | Value |
| --- | --- |
| **Needs** | `text` |
| **Produces** | `fields` |
| **Works on** | item: 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](https://docs.go-lumen.ai/concepts/how-flows-run.md#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.

| Setting | Type | Default | Description |
| --- | --- | --- | --- |
| `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[].name` (required) | 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) |

The full JSON Schema of these settings: [find-details.schema.json](https://docs.go-lumen.ai/schemas/steps/find-details.schema.json).

## Use it in a flow

A node that runs `find-details` goes under `spec.nodes` of a [Flow](https://docs.go-lumen.ai/concepts/how-flows-run.md#the-flow-as-yaml). Give it any id, and list the next node ids in next.

```yaml title="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}
```
