Form definition for collecting structured user input.
Agents can return this in their response to request information from users. The UI will render the form appropriately based on complexity:
{ "questions": [ { "id": "choice", "label": "Which customer?", "type": { "type": "buttongroup", "options": [ { "value": "cust-123", "label": "Acme Corp" }, { "value": "cust-456", "label": "Acme Industries" } ] } } ]} Copy
{ "questions": [ { "id": "choice", "label": "Which customer?", "type": { "type": "buttongroup", "options": [ { "value": "cust-123", "label": "Acme Corp" }, { "value": "cust-456", "label": "Acme Industries" } ] } } ]}
{ "title": "New Customer", "submitLabel": "Create Customer", "questions": [ { "id": "name", "label": "Company Name", "type": { "type": "text", "placeholder": "Acme Corp" }, "required": true }, { "id": "revenue", "label": "Annual Revenue", "type": { "type": "currency", "prefix": "$" }, "helpText": "Estimated annual revenue in USD" } ]} Copy
{ "title": "New Customer", "submitLabel": "Create Customer", "questions": [ { "id": "name", "label": "Company Name", "type": { "type": "text", "placeholder": "Acme Corp" }, "required": true }, { "id": "revenue", "label": "Annual Revenue", "type": { "type": "currency", "prefix": "$" }, "helpText": "Estimated annual revenue in USD" } ]}
Optional
Optional description/instructions for the form
Array of questions to ask the user
Optional custom label for submit button (default: "Submit")
Optional title shown at top of form
Form definition for collecting structured user input.
Agents can return this in their response to request information from users. The UI will render the form appropriately based on complexity:
Example: Simple choice (renders as buttons)
Example: Full form