# Automations

### **Overview**

Automations in FlexyBot allow you to create custom workflows that execute specific actions based on predefined triggers—without requiring any coding knowledge.

### **How Automations Work**

An automation consists of two key components:

#### **1. Triggers**

A trigger is an event that initiates an automation. Triggers can be based on user actions, system events, or specific commands. Examples include:

* A message being sent in a Discord channel
* A new member joining your Discord server
* A specific command being used
* A player joining your Minecraft server
* A player sending a message in your FiveM server

#### **2. Steps**

Once an automation is triggered, it follows a series of steps to execute the desired workflow. Each step performs a specific task, and multiple steps can be combined to create complex automations. Steps can include:

* Sending a message in a Discord channel or DM
* Assigning or removing a role from a user
* Kicking or banning a user
* Logging server events in a designated channel
* Sending a message in your Minecraft/FiveM server in-game chat

### **Why Use Automations?**

* **Save time & effort** – Reduce manual tasks and let the bot handle repetitive actions.
* **Improve server management** – Keep track of server events, enforce rules, and maintain order.
* **Fully customizable** – Create automations tailored to your specific needs, with flexible triggers and steps.

### **Setting Up an Automation**

To create an automation in FlexyBot, head over to your project's **Automations** page and select **Create**. Then configure the new automation:

1. **Select a trigger** – Choose what event will initiate the automation.
2. **Define steps** – Specify the sequence of actions that should happen when the trigger occurs.
3. **Save** the automation.

Once set up, automations will run instantly whenever the trigger conditions are met.


---

# 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/general/automations.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.
