What it does
The Ask User Question tool lets your agent pause mid-conversation to gather information from the user through an interactive question UI. The agent presents questions with suggested options, and the user can pick one, add details to it, or type their own answer. The agent waits for the response, then continues with full context of the answers. This is a human-in-the-loop tool — it only works in interactive chat sessions, not in scheduled tasks or automated workflows.Key features
- Interactive question UI with one-click option buttons
- Support for single or multiple questions in one tool call
- Client-side pagination for multi-question flows (no extra API round-trips)
- A text box on every question, so the user can add details or answer in their own words
- Skip/dismiss option for each question
- Compact answered state after user responds
Parameters
Single question mode
Multiple questions mode
Use either
question (single) or questions (multiple), not both.Common use cases
Gathering preferences before a task
Quick clarification with options
Open-ended input
Every question has a text box. Text typed before picking an option is sent with it as
Label: details; text sent on its own is the user’s own answer.How it works
- Agent calls
ask_user_questionwith question(s) and options - Agent execution pauses — no follow-up text is generated
- The chat UI renders an interactive question component
- For multiple questions, the user pages through each one client-side
- After answering the last question, all answers are sent as a single user message
- The agent receives the answers and continues naturally
Best practices
- Use predefined options when possible — they’re faster for users and produce cleaner answers for the agent
- Keep questions concise and specific
- Use the
questionsarray to batch related questions instead of calling the tool multiple times - Add
descriptionto options when the label alone might be ambiguous
Limitations
- Only works in interactive chat sessions (not scheduled tasks, email triggers, or API calls)
- The agent fully stops after calling this tool — it cannot do other work while waiting
Related tools
- Call Agent - Delegate tasks to other agents after gathering user preferences
- Send Email - Send results based on user choices
- Manage Scheduled Tasks - Set up recurring tasks based on user preferences