Overview
Glean’s Wait for user input action allows agents to pause execution at any point to collect information or confirmation directly from a user. This makes it possible to build workflows that incorporate real-time human interaction, unlocking new use cases that require critical gating or decision points. This feature is designed for agent creators and users who need their automated workflows to depend on live or asynchronous human input. For now, it is only available to run manually in the Glean app. Agents using this action cannot be scheduled, published to Slack, used through MCP, or Glean’s APIs.Usage Example
The Wait for user input action is invaluable in workflows where automation must be stopped for human input, such as:-
A time off request agent that asks users for the dates they plan to be absent
-
A sales coaching agent that extracts the name of an account executive from a transcript and asks the user to confirm that it has made the correct choice
Configuration
The Wait for user input step can be inserted into any part of the agent graph. When configuring the wait for user input step, you can set a natural language goal (what you want to ask the user) and, optionally, an exit condition (when execution should abandon/skip waiting).How It Works
Agent Builder Experience
Use the Agent Builder to add a Wait for user input step anywhere in your flow and define exactly what the agent needs from the user.- Insert a Wait for Input step: Add it at the point where downstream steps depend on user input or a decision.
-
Write the goal: Describe in natural language what the agent should ask a user for, including constraints and examples the agent can validate against.
-
Configure input expectations: Specify the fields or information the agent must collect (e.g., date ranges, IDs, or approvals). The agent may ask clarifying questions until the inputs are valid.
-
Connect downstream usage: Map collected values to later steps (e.g., filling tool parameters, branching decisions, or guards). You may reference the input fields collected using a similar natural language you used in the Wait for user input step.
- Test your agent: Run the agent in preview mode to ensure it works as intended, providing clear interactions that validate correctly.
Manage
memory
in Advanced Settings to All previous steps
(the default option). This allows each step to reference context from earlier steps and ensures all collected inputs are retained.
End User Experience
- When the flow reaches the Wait for user input step, execution pauses and the user is prompted for input (message or form), with follow-up clarifications as needed.
- Agents cannot be cancelled while they are waiting for user input.
- Conversation is continuous—all prompts and responses remain in the same chat thread for context.
FAQ
Can I use the Wait for user input step in scheduled agents?
Can I use the Wait for user input step in scheduled agents?
No. The step requires live user input, so it cannot be used in scheduled agents.
Can I use the wait for user input step in agents accessed through Slack, MCP, or Glean's APIs?
Can I use the wait for user input step in agents accessed through Slack, MCP, or Glean's APIs?
No. The step is only available through the Glean web app at this point.
Is there a time limit for how long the agent waits for user input?
Is there a time limit for how long the agent waits for user input?
Yes. The agent will wait up to 30 days, aligning with conversation history retention. If chat history is disabled, the window is reduced to 2 hours.
What happens if I update the agent or its actions while it is waiting for input?
What happens if I update the agent or its actions while it is waiting for input?
The workflow will gracefully stop, inform the user of the error, and require a restart from the beginning.
Can agents ask multiple clarifying questions or collect files?
Can agents ask multiple clarifying questions or collect files?
Yes. The wait for user input step supports dialogue loops and structured input, including file uploads.