# Order Created Triggers

**Trigger:** Activated when a customer successfully places a new order in the store.

This trigger is commonly used for **order confirmations, COD verification, and post-purchase communication**.

### Example Workflow: COD Order Confirmation

<figure><img src="https://392978341-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZtOBCP9JV8XEWJpUU4t%2Fuploads%2FRlnILW1YuJsOUXVJSZ5m%2Fimage.png?alt=media&#x26;token=a9eac2a1-10ce-4d9f-bae0-7d0fd1d75508" alt="" width="563"><figcaption></figcaption></figure>

This workflow automatically sends a **Cash on Delivery (COD) confirmation message** to customers when an order is placed, but the payment has not been completed.

{% hint style="info" %}

### Workflow Overview

***The workflow follows these steps:***

Order Created\
→ Check Condition (Payment Status ≠ Paid)\
→ Send WhatsApp COD Confirmation Message

This ensures that the confirmation message is sent **only for Cash on Delivery orders**.
{% endhint %}

#### Step 1: Select Trigger – Order Created

<figure><img src="https://392978341-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZtOBCP9JV8XEWJpUU4t%2Fuploads%2Fwp6NevsMAl40qq2h2Z6U%2Fimage.png?alt=media&#x26;token=836fc606-a777-4d69-9cb1-792c6cda58f0" alt="" width="563"><figcaption></figcaption></figure>

* Start by selecting the **Order Created** trigger. This trigger activates the workflow whenever a **new order is placed on the store**.

***

#### Step 2: Add Condition – Check Payment Status

<figure><img src="https://392978341-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZtOBCP9JV8XEWJpUU4t%2Fuploads%2FJtSBNkMZ9USh9jaHka3X%2Fimage.png?alt=media&#x26;token=f092fa5d-e7c7-4729-aa8a-0f3026599afd" alt="" width="563"><figcaption></figcaption></figure>

1. Click **Logic**.
2. Select **Condition**.
3. Configure the condition as follows:

**Field:** Payment Status\
**Rule:** Not Equals\
**Value:** Paid

This condition checks whether the order is **not prepaid**.

If the payment status is **not paid**, the workflow will continue through the **Yes branch**.

If the payment is **already completed**, the workflow will follow the **No branch,** and no action will be triggered.

***

#### Step 3: Add and Configure the WhatsApp Action

<figure><img src="https://392978341-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZtOBCP9JV8XEWJpUU4t%2Fuploads%2FcXzOZQBPB9kfEc3UqzKQ%2Fimage.png?alt=media&#x26;token=cc056adf-374e-4199-8d2d-fd29a035ba1b" alt="" width="563"><figcaption></figcaption></figure>

After setting up the condition, the next step is to add the WhatsApp action.

1. In the **Add Nodes** section, click **Actions**.
2. Select **WhatsApp**.
3. Now, configure the required details:

   * Select the **phone number**
   * Select the **template**

   **Example template:**

   `Hi {{1}},`\
   `Thank you for your order`` `**`#{{2}}`**`. Your order is placed with`` `**`Cash on Delivery for ₹{{3}}`**`.`

   `Please confirm your order by replying`` `**`YES`**`.`&#x20;
4. Click **Save Configuration**.

At this stage, the WhatsApp action is created and configured, but it is **not yet connected** to the workflow.

***

#### Step 4: Connect the WhatsApp Action to the "Yes" Branch

Once the WhatsApp action has been configured:

1. Go to the **Condition** node.
2. From the **green Yes branch**, draw a connection line.
3. Connect it to the configured **WhatsApp action** node.

This ensures the WhatsApp message is sent **only when the condition evaluates to Yes**.

In this example, that means the message will be sent only when: **`Payment Status ≠ Paid`**

If the condition evaluates to **No**, the WhatsApp action will not run.

***

#### **Step 5: Managing the Workflow**

After adding triggers, logic, and actions:

1. Turn **Workflow ON** to activate the automation.
2. Click **Save Changes** to apply the workflow.

Once saved and activated, the workflow will automatically run whenever the trigger conditions are met.
