Pattern
INT·Oct 25
HIL Inquire Multiple Choice
Gather information through AI-driven multiple choice questions. Includes approval workflows and real-time rendering.
View Full Pattern on Desktop

Problems Solved
- Interactive multiple choice question workflows
- Structured information gathering through AI questioning
- Approval-based tool execution patterns
- Real-time question rendering and user interaction
- Brand context building through strategic questioning
- Tool approval workflows with user oversight
- Multiple choice question UI components
- AI agent question flow management
Use Cases
- Brand context building through strategic questioning
- Interactive surveys and questionnaires
- User preference gathering and analysis
- Marketing research and customer insights
- Educational assessment tools
- Customer onboarding workflows
- Market research data collection
- User experience research
AI SDK APIs
new Agenttool(stepCountIsvalidateUIMessagesuseChatInferAgentUIMessage
Tags
aihuman-in-the-loopmultiple-choiceinteractive-questionsapproval-workflowsai-sdkbrand-contextstrategic-questioningtool-approvalstreaming
Requirements
- Node.js
- 24+
- Memory
- 512MB
- Other
- OpenAI API key
Environment Variables
OPENAI_API_KEYGet key →
External Services
openaiupstash
Ready to use?
View the full interactive pattern with live preview and copy the source code.
View Pattern on DesktopRelated Patterns


HIL Inquire Text Input
Gather detailed information through AI-driven text input questions. Includes approval workflows and real-time rendering.
aihuman-in-the-loop+9
View →


Human in the Loop Plan Builder Agent
Uses ToolLoopAgent pattern to gather requirements and generate plans. Generates markdown plans with structured todo lists.
aihuman-in-the-loop+9
View →
End of Pattern



