Skip to main content
The application conversation stream exposes delivered requests for human input on webhook (generic) connections. They include bounded-task continuations and opt-in in-run questions.

Bounded-task continuations

A paused task can ask its requester to continue a bounded allowance. The request does not grant permission to execute a particular external operation. Current agent identity, audience, provenance, tool permissions and application authorization still apply when work resumes.

Requests and receipts

Snapshots advertise capabilities.inputs: true and contain inputs. The journal replays the same input.upsert objects. A request has an immutable id and runId (both the paused run’s ID), kind: "approval", a plain-text title (currently “Continue this task?”), status: "pending" | "resolved", and data with revision: 0, a server-authored expiresAt (14 days after the pause), and messageId identifying the source reply in the application transcript. Request expiry is independent of workspace retention; releasing an idle workspace does not itself expire permission to resume. After durable response intake, data.responseCommandId identifies the accepted response. It is not proof that the decision was applied. A resolved receipt has data.outcome of approved, denied, expired, or cancelled. An approval’s data.resumedRunId identifies execution separately: permission recorded is not successful execution. Historical resolved requests have no active controls. Structured response bodies remain in signed history for recording; applications show the input receipt rather than a synthetic yes/no chat message. Only a delivered public prompt publishes a request. Private checkpoint text, provider reasoning, tool arguments and outputs are not exposed in a request. The regular application-stream disclosure checks also govern input replay.

Responding

Applications use their normal signed install connection to post an event:
A declined response uses approved: false and body no. The body must be exactly yes or no to match approved, revision must be 0, and an input_response cannot be combined with control; anything else is rejected with 400. The runtime binds this response to that exact request. It is not eligible to steer a different active run, and a stale response never falls back to starting an unrelated task. The request’s current state, expiry, install, agent, conversation and audience are checked in the same transaction that admits the durable work item. Only one response wins. Retrying the original response ID and value is idempotent, even when its acknowledgment was lost. Changing the value under that ID, responding with a new ID after another decision won, or answering an expired request is a conflict. An expired or cancelled request cannot be revived by replay. Continue to show an uncertain response as retryable with the original ID. Reconcile accepted responses against the journal or a fresh snapshot. After a definite rejection, load authoritative state and keep user-entered text rather than silently resubmitting it as a new decision.

Consumed follow-ups and recording

Signed conversation reads report mode and consumed on inbound entries. A steered message obtains run_id only when the named run actually consumes it; acceptance or mailbox insertion is not consumption. Its status then comes from that run. A queued follow-up remains a separate run when it starts. Record one execution once, with the original request and its consumed follow-ups in order. Do not create another exchange containing the same model/tool calls and costs for every message that joined that execution. For complete run-scoped recording, signed read_conversation accepts an optional command_id. It returns that command and the inputs consumed by its execution, in receipt order, capped at 1,000 entries. Without command_id, the existing 100-entry recent-history window remains unchanged. A recorder that reaches the cap must report incomplete coverage rather than silently recording a partial run. An inbound decision’s signed history entry also carries input_response with the original request ID, revision and boolean value. An application can compare this against a retry before reporting already_accepted; matching the command ID alone is insufficient to establish that a changed response was accepted. Request lifecycle is stored on the continuation itself: a pending request can become accepted, declined, dismissed or expired. Expiry cannot rewrite an earlier decision and blocks both typed responses and ordinary-text continuation attempts. Only generic conversations create application input projections. Decision identity and consumed-steering associations survive pruning of temporary work payloads. The deadline governs admission of a response. Once one response is durably admitted, its decision identity stops that expiry clock while queued work is applied or recovered. A later chat reply cannot replace it. If its work fails, the delivery lifecycle cancels the request rather than reclassifying timely consent as expired.

In-run questions

Ask questions (runtime.application_inputs) is on by default in an agent’s Runtime tools settings and can be turned off there. A compatible server advertises capabilities.interactiveInputs in snapshots. A compatible client can then send interactive_inputs: true on a direct application turn. When the agent and client allow questions, the agent can call ask_user when it needs a consequential decision. Input requests use the application event stream and work with either buffered or streamed answers. The tool asks one question with up to four choices or collects text. A choice request can also offer a custom answer. Existing installations and noninteractive turns keep their existing behavior. The input ID identifies a recorded tool call. The input journal publishes the question and a waiting_input run projection. Use the same signed input_response envelope, with revision: 0 and one of choiceId or text instead of approved. Use the exact choice ID or trimmed answer as the outer body. An accepted response resumes the waiting tool in the same run; it does not create a queued user message. Formation marks the acknowledgment with run_input: true. A duplicate acknowledgment with that flag has already verified the exact response against the durable record. Record the answer with the original run. The pending row and its receipt survive client reconnect. A replacement worker replaying the same incomplete tool call can reattach to the row. The wait uses the existing run allowance, with a maximum of five minutes. Stop ends the pending input. A reply after expiry, a changed answer under the same command ID, and a response from another conversation or actor are rejected. Trusted tool handlers can use the same ledger for exact-operation approval by supplying the action and its public effect and checking the authoritative decision before execution. A model-authored question carries no approval. Handlers remain responsible for current authorization and idempotent effects.

Questions on messaging connections

The agent’s Ask questions setting applies to every connection. Each connection also has an Agent questions setting. Automatic uses the connection’s supported controls and plain text as appropriate. Plain text always uses a numbered prompt or a free-text request. Interactive only is available for compatible application clients, Telegram and Slack. Off disables new question requests and closes admission to pending answers. These same-run questions are available in direct conversations.
  • Telegram uses inline choices and accepts a typed reply to the question. Free-text questions open the reply composer. Existing webhook registrations without callback_query use plain choices until the connection is saved again.
  • Slack can show choice buttons and a free-text answer modal. For existing Slack apps, enable Interactivity in the app configuration, set the request URL to the same Slack event endpoint, and select Interactive only on the connection. Automatic uses plain text so existing installations can answer without a Slack app configuration change.
  • Teams, Discord, and phone use the plain-text reply shown with the question. A code ties the answer to that question without consuming unrelated messages in the conversation.
  • Application webhooks can also use plain text when a reply delivery URL is configured.
Native buttons and replies use the same pending question and typed answer as application chat. Each answer is scoped to the initiating agent, connection, conversation, and original requester. Duplicate or stale input does not launch a new turn. Clarification does not authorize an action. The question’s first public sequence is included as optional data.firstSequence on input.upsert. Keep it when replacing a request with its receipt, including after a snapshot restore. Clients can place the receipt between activity that preceded the request and the work that follows it. Older receipts may lack a sequence. The run’s origin identifies the turn for those receipts. A reviewed delegated MCP read can request one required choice by advertising formation.dev/user-input: single-choice-v1 in the reviewed tool descriptor. On MCP 2026-07-28 the tool returns input_required with one form containing one required string enum of two to four distinct choices. The agent and connection must both allow questions. Formation waits on the recorded call, then revalidates the connection, tool review and source before sending the chosen enum value in one continuation of that same MCP request. For a choice about a record, the agent can include a model-only reference such as {"source":"sites","id":"site_123"} alongside the option’s public id and label. The agent copies the reference from a lookup result. Formation records the mapping with the tool call. A submitted option ID returns only the chosen reference as choiceReference in the tool result. Clients and connectors continue to receive only the option IDs and labels. A typed answer does not select a reference. The next read applies its own authorization and scope checks as usual.