Extract structured AI data
ai.extractExtracts the fields you choose from text or an image and returns connectable structured data.
Example use
Connect a receipt image and a prompt to extract date, merchant and amount; configure those fields and pass the structured result onward.
Node preview
Right-drag to pan and scroll to zoom. Expand inputs and edit parameters to see how ports change. This preview does not run the node; reopening the page restores the example.
This preview extracts merchant (text) and amount (number) into result. These are editable example fields, not node defaults.
Loading node preview…
Data inputs 2
- Prompt
promptString Instructions describing the task and the desired AI output.
RequiredDefault:None- Image
imageImage An image reference for recognition, saving or analysis, obtained from capture or image loading.
OptionalDefault:None
Configuration 10
- Output fields
fieldsList Add the values to extract; Yotta generates and validates the output structure.
RequiredDefault:None- Minimum items: 1
- Maximum items: 64
- Item
fields[]Object One list item, matching the list’s element type.
RequiredDefault:None- description
fields[].descriptionText Explain the meaning of the field to extract to the AI.
OptionalDefault:None- Maximum characters: 256
- Name
fields[].nameText The output field name used by later nodes.
RequiredDefault:None- Minimum characters: 1
- Maximum characters: 64
- nullable
fields[].nullableBoolean Whether this field may return null.
OptionalDefault:false- type
fields[].typeChoice The data type expected for this field.
RequiredDefault:None- Options: "string", "number", "integer", "boolean"
- Maximum output tokens
maxOutputTokensInteger Maximum tokens generated for this request; when omitted, the installation setting is used.
OptionalDefault:None- Minimum: 1
- Maximum: 1000000
- Model slot
slotText References a stable installed AI model slot; ad hoc provider parameters are not accepted.
RequiredDefault:None- Minimum characters: 1
- Maximum characters: 128
- Pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
- Temperature
temperatureNumber Sampling temperature from 0 to 2; when omitted, the installed model policy is used.
OptionalDefault:None- Minimum: 0
- Maximum: 2
- Timeout (milliseconds)
timeoutMillisecondsInteger Hard wall-time limit for this AI node attempt, from 1000 to 120000 milliseconds.
RequiredDefault:120000- Minimum: 1000
- Maximum: 120000
Data outputs 1
- Result
resultJSON value The result of this data operation, with its type determined by the matching inputs.
Control and error ports
- Input
inInput · Control - An incoming control signal enters this operation.
- Completed
completedOutput · Control - Continue from this result or stage; see the node description for branch conditions.
- Failed
failedOutput · Error - Emitted when the operation fails; connect error handling here.
Version and node identity
Version 1.1.0
sha256:06cb4674b9fb83cdd754798b1d2df4454648b27ce61d13ebfc7c4b939eced4d7