# לאתר את הפרטים

> הוחלף בשלב סוכן AI. תנו לסוכן את הפרטים לאתר בתור השדות שלו.

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

## במבט אחד

| מאפיין | ערך |
| --- | --- |
| **שם השלב** | `find-details` |
| **משאב** | ClusterStep (`lumen.ai/v1alpha1`) |
| **קבוצה וקטגוריה** | extract, ai |
| **קרדיטים** | **1** קרדיט בכל פעם שהוא מצליח |
| **השפעה חיצונית** | לא |
| **ההתקנה צריכה לספק** | כלום |

## קלט

| מאפיין | ערך |
| --- | --- |
| **צריך** | `text` |
| **מפיק** | `fields` |
| **עובד על** | item: מסמך אחד בכל פעם |

״צריך״ ו״מפיק״ הם סוגי נתונים (file, text, fields, email). העורך מציע שלב רק במקום שבו מה שהוא צריך כבר נמצא במסלול. ראו [מסמכים ונתונים](https://docs.go-lumen.ai/he/concepts/how-flows-run.md#documents-and-data).

## פלט

More outputs are declared in the setting \`fields\`.

## הגדרות

מגדירים תחת `config:` בצומת של התהליך. הגדרות טקסט יכולות להכיל מצייני מקום כמו `{nodeId.field}`.

| הגדרה | סוג | ברירת מחדל | תיאור |
| --- | --- | --- | --- |
| `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` (חובה) | 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) |

ה-JSON Schema המלא של ההגדרות: [find-details.schema.json](https://docs.go-lumen.ai/schemas/steps/find-details.schema.json).

## שימוש בתהליך

צומת שמריץ את `find-details` נכנס תחת `spec.nodes` של [Flow](https://docs.go-lumen.ai/he/concepts/how-flows-run.md#the-flow-as-yaml). תנו לו כל מזהה, ורשמו ב-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}
```
