Skip to main content
Structured output makes an agent answer in a fixed JSON format that you define with a schema. Use it when another system reads the agent’s answers, like a Zapier workflow or an API integration, and needs the same fields every time.

Set up structured output

1

Open the agent

Open the agent in the Agent Builder.
2

Pick a specific model

In the Instructions section, open the model picker and click More models to choose a specific model that supports structured output. Auto models don’t support it.
3

Add the schema

Click JSON response. In Structured response format, paste a valid JSON schema and click Save, then save the agent.

Schema format

The schema must follow this structure:
JSON format

Example

A schema to extract city information:
structured output format example

Supported models

Not all models support structured output. The JSON response button is only enabled when the agent uses a specific model that supports it. Auto models (Basic, Standard, and Premium) don’t support structured output, so pick a specific model to use it.

Auto models and the model picker

Choose the model your agent uses.

Create your first agent

Build an agent step by step in the Agent Builder.