# Message Button Clicked

**Introduction**

The "Message Button Clicked" trigger activates whenever a button within a message is clicked. This trigger is useful for automating actions in response to user interactions with buttons in messages.

**Configuration**

* **Filters**: A set of conditions that determine where the trigger should activate. This parameter includes:
  * **Guilds**:
    * **Allow**: Specifies the guilds where the trigger should activate.
* **Button ID**: The specific ID of the button to monitor. If provided, the trigger will only activate when a button with this ID is clicked. This parameter is optional and can be left empty to monitor clicks on any button.

**Outputs**

* **Guild**: The guild where the button was clicked. This output can be used to determine the context of the triggered event.
* **Button ID**: The ID of the button that was clicked. This output helps identify which specific button was interacted with.
* **Message**: The message containing the button that was clicked. This output includes relevant details about the message, such as content and author.
* **Interaction**: The interaction details of the button click, which can be used to further process the user's action within the automation.


---

# 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/triggers/message-button-clicked.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.
