# Wait For Select Menu Interaction

**Introduction**

The "Wait for Select Menu Interaction" step pauses the automation until a user interacts with a select menu in a specified message or until a timeout is reached. You need to send a message with select menu(s) before this step.

**Configuration**

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

**Subpaths**

The subpaths in this step correspond to the select menus in the specified message, and each subpath is named based on the label of the select menu. This allows the automation to respond uniquely to each menu interaction.

* **\[Select Menu Label]**:
  * **Interaction**: Represents the interaction event triggered by a user selecting an option from the menu.
  * **Value**: Captures the selected value if only one option is allowed.
  * **Values**: Captures a list of selected values if multiple options are allowed.
* **Timeout**: This subpath executes when the specified timeout duration is reached without any interaction. This path does not have any outputs.

Each select menu interaction triggers a specific subpath based on the menu's label, allowing for tailored responses depending on user input.

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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.flexy.bot/modules/discord/steps/wait-for-select-menu-interaction.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
