Structured Output from UI Agents
- Updated: 2026/03/16
Examples of prompting an UI Agents for structured output.
Define your required output structure in the goal.
Example 1: let the agent determine the output structure on its own.
Create a new invoice with the data: <data>. Return the Reference Number as a JSON.Example 2: specify the schema in the prompt and agent will format the output accordingly.
Open the product pricing page for “Pro Plan” in the web app. Extract pricing into the JSON schema below.
{
"plan_name": "",
"currency": "",
"price": {
"monthly": "",
"annual": ""
},
"included_limits": [
{"name": "", "value": ""}
]
}Example 3: specify the format output datatype in Run action.
Goal: get current weather in San Francisco
Output format JSON: {"temperature": "int", "unit": "str", "rain": "bool"}Note: Output format JSON does not support nested JSON
structures.