{
"id": "option_selector",
"name": "Option Selection",
"description": "Let a human choose from multiple options. Agent generates or provides options, human picks one and optionally explains their choice.",
"pattern": "option_selector",
"fields": [
{
"name": "selected_option",
"label": "Select an option",
"type": "select",
"required": true,
"options": ["Option A", "Option B", "Option C", "Option D"]
},
{
"name": "reasoning",
"label": "Why this option? (optional)",
"type": "textarea",
"required": false,
"placeholder": "Brief reasoning for your choice..."
}
],
"metadata": {
"agent_context": "Replace options array with agent-generated choices before creating form",
"webhook_handler": "Extract selected_option as the human's choice. Use reasoning field to refine agent's understanding."
},
"example_payload": {
"selected_option": "Option B",
"reasoning": "Best balance of cost and quality"
}
}