Enabling Structured Output
Structured output is configured per agent. To enable it, open your agent, expand the Structured Output section, and toggle it on. Once enabled, define your schema using one of three input modes:Defining a Schema
Visual
The Visual editor lets you build your schema field by field without writing JSON directly. For each field, set a name, type (Text, Number, Integer, True/False, Group, or List), and an optional description. Check Required to mark a field as mandatory. Use Add field to add more fields, and Reset to clear the schema back to its default state.Strict mode is always on: every field is required and nesting depth is capped at 3. Schema size is limited to 5 KB.
JSON Schema
The JSON Schema tab lets you write or paste a raw JSON Schema directly. Edits here sync back to the Visual tab automatically. The schema must be strict-compatible: the root must be an object, all properties must be required, and every object must include"additionalProperties": false.
Example:
From JSON Document
The From JSON Document tab lets you generate a schema automatically from a JSON sample. Paste a JSON object representing the desired response shape and click Generate schema. Keys become property names and values are used to infer types — strings becometext, numbers become number, booleans become true/false, arrays become list, and nested objects become group. Descriptions and choice lists are not inferred and should be refined in the Visual tab afterward.
Example input:
When to Use
Structured output is intended for API-driven workflows — specifically the/invoke and /batch endpoints — where the response needs to be machine-readable rather than conversational.
Suggested use cases:
- Extracting structured data from a user’s input (e.g., filling a form, classifying a request)
- Returning a consistent response format to a backend system or integration
- Powering workflows where the agent’s output feeds directly into another process
- Agents deployed on conversational channels such as Web Chat, WhatsApp, or Microsoft Teams
- Any use case where a natural, human-readable response is expected

