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

# 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="/files/cVIE7sp9GXYPJVMCmYSr" 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!**
