Defining the structured outputs schema
In the workflow editor, go to Settings > Structured Outputs. A Structured Outputs tab will appear in the editor, and you’ll be able to add structured outputs manually, import definitions from a Zod/Pydantic schema, or import definitions from another workflow.Building and testing structured outputs in the Editor
Once you set the structured output schema, you should automatically see thedata/structured_output_schema.json file update with your new schema during editor sessions.
The editor agent can read this file and write code to set the structured output according to this schema using the set_structured_output browser tool function.
With the example prompt “set structured output field ‘result’ to APPROVED”, the agent might generate the following code:
structured_outputs.py
data/structured_outputs.json.
Receiving structured outputs in production flows
Structured outputs are returned during production workflow execution in the webhook.Use cases
Structured outputs are ideal for:- Data extraction: Format specific values from web pages (prices, statuses, IDs, etc.).
- Status checks: Get clear pass/fail results from form filling workflows.
- Conforming to internal enums: Map workflows’ statuses to internal enums your codebase already uses.
