Wait for Input

Wait for Input

Pause and wait for the user to click a button or make a select choice

Fields

FieldTypeRequiredDescription
kindenum: button | selectyes
keystring, 1-16 charsyesMatched against button/select keys on send/edit_message components elsewhere in the tree; one key can be shared by multiple components.
captureAs{scope, name}yesWhere the clicked value or select value(s) are stored.
timeoutMsnumbernoDefaults to 600,000ms, capped at 3,600,000ms.
onTimeoutarray of stepsnoSteps run if the pause times out.

Example

{
  "id": "01H8XGJVBWX7Y5Z3K9M2N4P6Q1",
  "type": "wait_for_input",
  "kind": "button",
  "key": "confirm",
  "captureAs": {
    "scope": "run",
    "name": "choice"
  }
}

Did this page help you?