Skip to main content

Attente

Pauses the workflow for a defined duration (timer) or until an external event is received.

Common parameters

ParameterTypeRequiredVariableDescription
waitTypechoice (timer, event, condition)YesNoWait type: timer, external event, or polling condition.
outputVariabletextNoNoOutput variable name to reference the result in subsequent blocks.

Parameters by wait type

timer — Timer

Pauses execution for a fixed duration.

ParameterTypeRequiredVariableDescription
timerMsdynamic valueYesYesWait duration in milliseconds. Can be a fixed number or a variable.

Parameters marked Variable = Yes accept the {{blockName.field}} syntax.

event — Event

Waits for an external event before continuing.

ParameterTypeRequiredVariableDescription
eventTypetextYesNoExpected event type (e.g. webhook_received, file_uploaded, user_action, approval_received, or custom).
eventFilterarrayNoNoFilter conditions on the received event. Only events matching the filters trigger resumption.
timeoutnumberNoNoMaximum wait time in milliseconds before timeout. Presets: 30s, 1min, 5min, 15min, 1h, 24h. (Default: 60000, min 5000, max 86400000)

condition — Condition

Periodically evaluates an expression and resumes when it returns true (polling).

ParameterTypeRequiredVariableDescription
conditionExpressiontextYesNoJavaScript expression evaluated periodically. The wait ends when it returns true.
timeoutnumberNoNoMaximum wait time in milliseconds before timeout. Presets: 30s, 1min, 5min, 15min, 1h, 24h. (Default: 60000, min 5000, max 86400000)

Output

Output variable : waitResult

{
"waitedMs": 0
}

Example

Wait 5 seconds before continuing.

Input :

{}

Output :

{"waitedMs": 5000}
Tip

{{waitResult.waitedMs}} indicates the actual wait duration in milliseconds. In durable mode (Run), the wait is persisted and survives restarts.