INT
Oct 25HIL 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
- 18+
- Memory
- 512MB
- Other
- OpenAI API key
- Upstash Redis
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 PatternView Pattern on DesktopRelated Patterns


HIL Inquire Text Input
Gather detailed information through AI-driven text input questions. Includes approval workflows and real-time rendering.


Human in the Loop Plan Builder Agent
Uses ToolLoopAgent pattern to gather requirements and generate plans. Generates markdown plans with structured todo lists.


HIL Agentic Context Builder
Build brand context through AI-guided questioning and web research. Gathers insights to create detailed brand profiles.


Agent Routing Pattern
Route user queries to specialized AI agents based on context and intent. Includes dynamic agent selection, load balancing, and fallback handling.
End of Pattern