Documentation Index
Fetch the complete documentation index at: https://docs.asteragents.com/llms.txt
Use this file to discover all available pages before exploring further.
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 predefined options or free text input, waits for the user’s response, then continues with full context of their 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 clickable option buttons
- Support for single or multiple questions in one tool call
- Client-side pagination for multi-question flows (no extra API round-trips)
- Free text input with optional predefined options
- Skip/dismiss option for each question
- Compact answered state after user responds
Parameters
Single question mode
| Parameter | Type | Required | Description |
|---|---|---|---|
question | string | Yes* | The question to ask the user |
options | array | No | Predefined options with label (required) and description (optional) |
allow_free_text | boolean | No | Show free text input. Defaults to true when no options, false when options provided |
Multiple questions mode
| Parameter | Type | Required | Description |
|---|---|---|---|
questions | array | Yes* | Array of question objects, each with question, options, and allow_free_text |
Use either
question (single) or questions (multiple), not both.Common use cases
Gathering preferences before a task
Quick clarification with options
Open-ended input
Options with optional elaboration
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 - Use
allow_free_text: truewith options when you want the user to be able to elaborate
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
- On page reload, previously answered questions show as “(answered)” without the specific answer text
Related tools
- Call Agent - Delegate tasks to other agents after gathering user preferences
- Send Email - Send results based on user choices
- Schedule Task - Set up recurring tasks based on user preferences
