# Auto Message Automation

**Introduction**

**Auto Message Automation** allows you to automatically send messages to a specific Discord channel based on predefined triggers and conditions. This feature is useful for sending scheduled announcements, reminders, welcome messages, or responding to specific events in your server.

{% embed url="<https://youtu.be/5vPwtvmGSds?si=atooUQ2VEYlSMMEs>" %}

**Configuration**

1. Start by going to Automations section and click on "**Create**" button in the right corner.

<figure><img src="https://3295602690-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMRfG9QvNConKIyipM24L%2Fuploads%2FBajRS6pGOW2VFfo0m0Rz%2FScreenshot%202025-01-30%20at%2019.07.04.png?alt=media&#x26;token=cc44f745-2da7-4045-9465-2e7bf82c866a" alt="" width="243"><figcaption></figcaption></figure>

2. Set up the trigger "**Schedule**" and switch **mode** to "**Recurring**" to make the automation run repeatedly every hour. In "**Expression**" setting click on **magic wand**, where AI generates the time based on your **instructions**, like "Every hour". Don't forget to pick the correct **timezone**.
3. Add a step "**Create custom variable**" and set it as a "**List**" in schema type, and "**Text**" as subtype. In "**Value**" section create all the possible messages as "**Items**", that your bot **picks** to send every hour.&#x20;
4. Add a step "**Get list item**", which enables our bot to select a **random** item from our list, keeping the content varied. Select the "**List**" item and choose the "**Random**" reccuring mode.
5. Final step is the "**Send message**". We choose our channel where the bot will do its magic and select the list we created before **(Message >Content (click on blue @) >Steps (Object) >Get random quote (Object) >Item (Select))**.&#x20;
6. Don't forget to **Save!**


---

# 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/tutorials/discord-getting-started-guide/auto-message-automation.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.
