Skip to main content

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

Ask multiple questions at once with pagination — all answers submitted together.

Quick clarification with options

Single question with descriptive options.

Open-ended input

A text box only, when predefined options don’t make sense.
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

  1. Agent calls ask_user_question with question(s) and options
  2. Agent execution pauses — no follow-up text is generated
  3. The chat UI renders an interactive question component
  4. For multiple questions, the user pages through each one client-side
  5. After answering the last question, all answers are sent as a single user message
  6. 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 questions array to batch related questions instead of calling the tool multiple times
  • Add description to 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