Wait for Input
Wait for Input
Pause and wait for the user to click a button or make a select choice
Fields
| Field | Type | Required | Description |
|---|---|---|---|
kind | enum: button | select | yes | |
key | string, 1-16 chars | yes | Matched against button/select keys on send/edit_message components elsewhere in the tree; one key can be shared by multiple components. |
captureAs | {scope, name} | yes | Where the clicked value or select value(s) are stored. |
timeoutMs | number | no | Defaults to 600,000ms, capped at 3,600,000ms. |
onTimeout | array of steps | no | Steps run if the pause times out. |
Example
{
"id": "01H8XGJVBWX7Y5Z3K9M2N4P6Q1",
"type": "wait_for_input",
"kind": "button",
"key": "confirm",
"captureAs": {
"scope": "run",
"name": "choice"
}
}Updated about 14 hours ago
Did this page help you?
