# Creating a Mochi Flow

Set up your first Mochi flow in three easy steps!

{% stepper %}
{% step %}

### 🧩 Step 1: When a User...

This is your **Event Trigger**. the moment that sets your Flow in motion.

<figure><img src="https://2165914094-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNXPRKMDw2wWy4K61hBPv%2Fuploads%2FJVw68YeRSA63b7UkJ77m%2Fstep%201.png?alt=media&#x26;token=01ed2ec1-4555-4642-a3dc-521f5138ce5b" alt=""><figcaption></figcaption></figure>

**Examples of events you can choose:**

* 💬 Sends a message
* 🗑️ Deletes or edits a message
* 🧩 Clicks a component (like a button)
* 🎭 Gains or loses a role
* 🔊 Joins or leaves a voice channel
* 🧵 Creates a thread
* 👋 Joins the server

Pick the one that best fits your idea.

{% hint style="success" %}
💡 *Tip:* Think of this as the “When this happens…” part of your automation.
{% endhint %}
{% endstep %}

{% step %}

### ⚙️ Step 2: If Conditions Are Fulfilled

<figure><img src="https://2165914094-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNXPRKMDw2wWy4K61hBPv%2Fuploads%2Fbb4L0NfIDVcKTlb6GUkd%2Fstep%202.png?alt=media&#x26;token=476dedc3-932d-473a-82b1-2afe0910a814" alt=""><figcaption></figcaption></figure>

**Conditions** define *when* and *where* your Flow actually runs, perfect for narrowing things down.

**You can add conditions such as:**

* 🏠 It happens in specific **channels or categories**
* 🗨️ The message **includes certain words or phrases**
* 🚫 The message **does not include certain words**
* 🧍 The member **has (or doesn’t have) certain roles**
* 💰 The member **has a minimum balance or level**
* 🕒 The Flow **is not on cooldown**

{% hint style="success" %}
💡 **New:** Add **cooldowns** under the Conditions tab — per member or server-wide.\
This helps prevent actions from triggering too often, keeping your Flows balanced and smooth.
{% endhint %}
{% endstep %}

{% step %}

### 🎬 Step 3: Do Actions

Now you decide what happens once your conditions are met — this is where your Flow *comes alive.*

<figure><img src="https://2165914094-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNXPRKMDw2wWy4K61hBPv%2Fuploads%2FVCDRow7mFeLGFtAnmJVt%2Fstep%203.png?alt=media&#x26;token=cedf6da8-0384-4700-98ff-d02909ec4600" alt=""><figcaption></figcaption></figure>

**You can make Mochi perform actions like:**

* 💌 Send or reply with a message
* 🔁 Resend the message in another channel
* 🗑️ Delete the original message
* 🌈 React with emojis
* 🎖️ Give or remove roles
* 💎 Give XP, currency, or items
* 🧵 Start a thread from the message

Combine multiple actions to create something fun and interactive — like auto-replies, reward chains, or celebration messages.
{% endstep %}
{% endstepper %}

### 🎉 You’re Ready to Flow!

Once everything looks good, hit the **Save** button.\
Your Flow is now live — ready to make magic in your server.
