Skip to main content
ai.extract, Extract structured data from text using AI with a JSON schema

Configuration

Configuration goes inside the step’s with: block.
input
string
required
Text content or template expression
schema
object
required
JSON Schema defining the structure to extract
prompt
string
Custom prompt template for extraction
provider
string
Provider ID (e.g., “openai-gpt4o”)
model
string
Model override
maxInputTokens
integer
Max input tokens. Truncates input text and logs a warning when exceeded. Omit for no limit.

Output

Returns record<string, unknown>. Extracted structured data matching the provided schema