Structured Outputs and Schema Validation
Structured output defines fields and value types for a model response. Use it when another step needs to read specific values instead of interpreting free-form prose.
Before you begin
A model and node that support the required output format.
Output formats and validation
Structured output
A response arranged into defined fields rather than free-form prose. Check both the field structure and the meaning of its values.
Schema
A definition of fields, types, required values, and supported constraints. Use it to validate the shape of data; it does not establish factual correctness.
Null
An explicit JSON value indicating no value. It can differ from an omitted field, an empty string, or an empty collection.
Configuration options
JSON Object
A JSON-formatted response mode where supported by the selected model.
Valid JSON alone does not impose every field or type required by your application.
JSON Schema
A schema used to specify the supported structure and constraints of an object.
Use schema validation in addition to reviewing factual accuracy.
Configure structured output
Select the structured output format and define the required fields.
Describe the meaning of each field in the instructions.
Run the node and inspect both schema validity and the accuracy of the values.

The next step can read the expected fields from the generated object.
Behavior and limitations
Valid JSON is not necessarily valid against your schema. Schema-valid data is not necessarily factually correct. Handle missing evidence explicitly rather than forcing the model to invent required values. A display template formats values; it does not replace validation of the underlying response.
Related resources
Last updated
Was this helpful?

