---
updatedAt: 2026-09-01T16:18:51.000Z
---

Fetch the complete documentation index at: https://developers.wabbit.gg/llms.txt. Use this file to discover all available pages before exploring further. Append .md to any documentation page URL to get its markdown version.

# 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

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