> For the complete documentation index, see [llms.txt](https://docs.flexy.bot/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.flexy.bot/modules/discord/steps/wait-for-button-interaction.md).

# Wait For Button Interaction

**Introduction**

The "Wait for Button Interaction" step pauses the automation until a user interacts with a button on a specified message or until a set timeout is reached. You need to send a message with button(s) before this step.

**Configuration**

* **Message**: The message that contains the buttons to wait for interaction. This parameter is required.
* **Timeout**: The duration to wait for a button interaction before continuing or stopping the automation. This parameter is required.

**Subpaths**

Each button label in the message creates a unique subpath:

* **\[Button Label]**:
  * **ID**: The ID of the button.
  * **Interaction**: Captures the interaction event when the button is clicked.
* **Timeout**: Represents the point at which the timeout occurs if no button is clicked.

{% hint style="info" %}
This step waits for a single interaction - it stops running when it receives the first interaction.
{% endhint %}
