# 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.
