Ask the Person
Ask the Person gives an Agent the ask_user tool. The agent uses it when it cannot go on without someone’s choice or details: it writes a question with a short form, and carries on with the answer. Who answers depends on how the run started. In a conversation it is the person the agent is chatting with. In a run no conversation started, such as one started by a schedule, a webhook or a form, it is a member of your workspace, in Publicus, while the run waits. You find the node on the node picker’s AI shelf.
Connect the node’s output to the agent’s tool handle (labelled Tools). When you click that handle, the node is starred at the top of the list.
Configuration
Section titled “Configuration”This node has no configuration fields.
When the agent has the tool
Section titled “When the agent has the tool”An agent in a flow started by a Chat trigger, or by a message to your workspace’s Discord, Slack or Telegram bot, gets ask_user, watch_run and schedule_follow_up without wiring anything. Wire any of the three nodes and the agent gets only the wired ones, in every run of the flow. In any other flow, such as one started by a Schedule, the agent has ask_user only when this node is wired to it.
The tool the agent sees
Section titled “The tool the agent sees”| Argument | Required | Description |
|---|---|---|
title |
Yes | A short heading for the question. |
question |
Yes | What the agent asks and why, in a sentence or two. Markdown. |
options |
No | For a choice between a few answers, the answers themselves, e.g. ["Basic", "Pro"]. The form is then a single Answer field offering them. |
schema |
No | For anything else, the form as a JSON Schema object, e.g. {"type":"object","properties":{"date":{"type":"string","title":"Delivery date"}},"required":["date"]}. |
Every question needs options or schema. A form that cannot be drawn is refused and the agent is told why, so it can ask again.
Asking never needs approval, in any approval mode: the question is itself a request for a person’s input.
In a conversation
Section titled “In a conversation”The question appears in the chat as a card with its form. In the chat page in Publicus the person fills in the form there. On a Discord, Slack or Telegram bot, a question with a few short answers gets a button for each, and one that needs a form gets Fill in the form. The bot’s Who answers forms setting decides who may open that form; see Build a Discord agent. The form opens on your workspace’s Forms portal, in its look and with its logo; see Style the Forms portal.
The agent ends its turn after asking. The answer arrives as the person’s next message and starts the next turn. A question that nobody answers within seven days expires.
In a run no conversation started
Section titled “In a run no conversation started”The run pauses until a workspace member answers, and the call returns their answer, with who gave it.
- Where it is answered. The question is shown on the run’s page, with Answer and Withdraw. It is also listed in Needs you, with the same two actions, and counts in the Needs you badge in the sidebar. Any member of the workspace may answer it.
- Who is told. The member who started the run is notified in Publicus. When nobody started it, such as a scheduled or webhook run, the members who may decide approvals are notified. Where approval emails are turned on, the notice comes by email too, as an Approvals alert in the member’s notification settings.
- Expiry. A question nobody answers expires after seven days. The run then carries on, and the agent is told nobody answered.
- Withdraw. Withdrawing a question closes it and wakes the run, and the agent is told it was withdrawn.
- When the run ends. When the run is stopped or fails, its open questions close and their notifications are removed.
A paused run holds no worker while it waits, and the wait does not count toward the agent’s turnMinuteBudget.
Output
Section titled “Output”In the flow’s control path the node passes the previous node’s output through unchanged. Its work happens as a tool during the agent’s run, not as a step of the flow.
Example
Section titled “Example”A nightly flow imports orders and has an agent check them. When an order has no delivery date, the agent should ask rather than guess.
- Add a Schedule trigger, the import, an Agent, and an Ask the Person node.
- Connect the Ask the Person node’s
outputto the agent’stoolhandle. - In the agent’s system message, tell it to ask for a delivery date when an order has none, and to use the answer.
When the agent finds such an order, it calls ask_user with a required date field and the run pauses. The member on duty opens the question from the notification, picks a date and sends it. The run carries on with that date.
Limitations
Section titled “Limitations”- An agent with a Builder Pack wired to it gets the pack’s own
ask_userinstead of this one. - An agent answering a portal visitor gets none of these tools; it reaches only what its Toolbox lists.
Related
Section titled “Related”- Agent: the node this tool attaches to.
- Watch a Run · Follow Up Later: the other two tools for keeping a conversation, or a run, going.
- Chat: the trigger that gives an agent all three tools until you wire them.
- Form: a step of the flow, rather than the agent, that asks a person to fill in a form.
- Needs you: the page where waiting questions are listed beside approvals.