Skip to content

Wait Node

Availability: Test environment Behind the platform switch FEATURE_WAIT_NODE_ENABLED; while it is off, publishing a graph with the node is refused. Since 2026-11 /status

Where the platform switch FEATURE_WAIT_NODE_ENABLED is off you can still save a draft that contains a wait node, but publishing it is refused.

The wait node pauses a run for a fixed time, or until a moment held in a variable, and then continues along the node’s one edge. It calls no language model. Use it for a follow-up (“ask again in an hour”), a reminder at a stored time, or a pause between two steps.

It is a pause, not a delay held in memory: like await_reply and approval, the run ends at this node and a stored timer records where the graph stopped. No worker and no queue slot is held while it waits. When the time arrives a new run continues from the node’s successor, with the variables the run had.

See Workflow Overview for the node and edge envelope this fits into.

Give exactly one of durationSeconds and untilVar.

FieldTypeRequiredDescription
durationSecondsintegerOne ofHow long to pause, 5 to 604800 seconds (7 days).
untilVarstringOne ofName of a run variable holding an ISO 8601 moment with a time zone, for example 2026-11-20T09:00:00+08:00.
saveAsstringNoVariable that receives { "firedAt": <ISO moment>, "waitedSeconds": <number> } when the run continues. Nothing is written when it is empty.
maxWaitsintegerNo1 to 50, default 10. How many times this node may wait in one chain of continued runs, so a loop through it cannot wait for ever. Over the limit the run fails.
cancelOnUserMessagebooleanNoDefault false. When true, a new message from the user in the same session cancels the wait and ends the run. The message itself is then handled as a normal new turn.

The node also takes the common maxVisits field. It has no timeoutMs, no retry and no mockResponse.

Rules checked when you save or publish are refused with a BAD_USER_INPUT error naming the node and the field: exactly one of the two timing fields, durationSeconds an integer in range, maxWaits in range, and the node having exactly one outgoing edge with no label.

{
"id": "remind_later",
"type": "wait",
"config": {
"durationSeconds": 3600,
"saveAs": "waited",
"cancelOnUserMessage": true
}
}
  • A fixed wait is 5 seconds to 7 days.
  • With untilVar, the moment must carry a time zone and fall between 5 seconds and 7 days from when the node runs. A value outside that range, or without a zone, fails the run; it is refused, never trimmed to fit.
  • A chain of waits may not sleep past 30 days in total.
  • The platform checks for due timers on a short interval (30 seconds by default), so a wait ends up to one interval late. Do not use it for to-the-second timing.
  • A timer that is more than 24 hours late, whose workflow was unpublished or deleted, or whose conversation has ended, is cancelled instead of fired, and the paused run ends as INTERRUPTED with a plain reason.

The node has one outgoing edge, and it must not carry a label. It is not failure-routable: there is no success or failure edge. There are no cancelled or max waits reached edges either; a cancelled wait simply ends its run, and an exhausted maxWaits fails it.

The paused run has the status WAITING_TIMER (see workflowRun). It is a separate status from AWAITING_INPUT, because nobody has to act: the platform resumes it on its own. When the timer fires, a new run starts with resumedFromRunId pointing at the paused run, and the paused run gets continuedByRunId. The chat turn ends when the run pauses (an empty final reply with turnComplete: true, as for an approval), and the resumed run ends with no such marker because it is not a user turn.

If you poll workflowTaskOutcome, WAITING_TIMER is one of the states that means “paused, a later run continues it”.

A draft test or a mock run does not park: it completes the node in place and reports it as simulated, so a test does not sleep for real.