# Guild Message Created

**Introduction**

The "Guild Message Created" trigger activates whenever a new message is sent in any of the specified channels within a guild. This trigger is useful for monitoring messages and automating responses based on message content, author, or other criteria.

**Configuration**

* **Filters**: A set of conditions that determine where and when the trigger should activate. This parameter is required and includes the following filters:
  * **Guilds**:
    * **Allow**: Specifies the guilds where the trigger should activate.
  * **Channels**:
    * **Allow**: Specifies the channels within the guilds where the trigger should activate. This parameter is required if no "Deny" channels are specified.
    * **Deny**: Specifies the channels within the guilds where the trigger should not activate. This parameter is required if no "Allow" channels are specified.
  * **Users**:
    * **Allow**: Specifies which users can trigger the event. This parameter is required, with at least one user or user type specified. By default, it includes all users.

**Outputs**

* **Guild**: The guild where the message was created. This output can be used in subsequent steps to determine the context of the triggered event.
* **Message**: The message that was created. This output includes all relevant details of the message, such as content, author, and timestamp, and can be used for further processing 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/guild-message-created.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.
