Skip to Content
Docs are being rebuilt — start at Introduction → How it works.
AgentsBuilding an agentResponse tabStructured output & JSON schema

Structured output & JSON schema

Structured output makes an agent return JSON that follows a schema you define. In the current builder, this is not a separate builder tab; it is the Structured Output section inside the Response tab.

What you can do here

  • Turn structured output on or off.
  • Write a JSON Schema in the embedded editor.
  • Save the schema with the agent draft.
  • Test whether chat replies match the expected object shape.
Response tab Structured Output section with toggle enabled and JSON Schema editor visible

Configure structured output

  1. Open Agents.
  2. Create an agent or edit an existing agent.
  3. Open Response.
  4. Turn on Structured Output.
  5. Enter a valid JSON Schema in JSON Schema.
  6. Click Save.
  7. Test the agent with prompts that should return the required fields.

Fields

FieldRequiredWhat it controls
Structured OutputNoMakes the agent format each reply as JSON.
JSON SchemaYes when enabledDefines the object type, properties, required fields, and validation rules.

When to use it

Use structured output when another system needs to parse the response, such as a workflow, API call, dashboard, form interface, or integration. For normal chat, use Markdown or Step-by-step in Response formats.