Wait - Amazon Connect

Wait

Pauses the flow for a specified duration, or until a specified event happens, whichever happens first.

Parameter object

{ "TimeoutSeconds": The amount of time to wait before the action finishes with the "WaitCompleted" result. This can be either statically defined, or a single valid JSONPath identifier. If defined statically, this must be a positive integer value no greater than 604800 (seven days), "Events": An optional list of all events that can trigger an interrupt. The only supported event currently is "CustomerReturned". This must be defined statically. }

Execution results and conditions

If an event interrupts the wait, the run result is the event that interrupted. If no event interrupts the Wait and the time elapses, the run result is WaitCompleted. Conditions are supported, but only the "Equals" operator is supported. "WaitCompleted" is always required operand, and every specified event is also required to be present as a condition operand.

Errors

  • NoMatchingError - if no other Error matches.

Restrictions

This is supported in every type of flow, but is supported only by the chat channel.

Corresponding block in the UI

Wait