# Order Confirmation Automation

Automating WhatsApp messages for order confirmations ensures that customers receive instant updates once their payment is completed. This reduces manual effort, minimizes delays, and keeps customers informed about their purchases. When a customer places an order and the payment status is marked as Paid, the automation will trigger. After the specified delay (if any), the system will send a WhatsApp message using the selected template.

**Steps to Set Up the Automation**

1. To begin, log in to your MyAlice account and navigate to the **Create Automation** section.

<figure><img src="https://1800541801-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgzCdF2XNgHNO9_KQDe%2Fuploads%2Fj9m35BZGai5n6dF4Lxkn%2Fimage.png?alt=media&#x26;token=bd7a8471-6c24-4ada-96b6-9637c563c26f" alt=""><figcaption></figcaption></figure>

2. Click on **Select Trigger** to define the event that will start the automation.

<figure><img src="https://1800541801-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgzCdF2XNgHNO9_KQDe%2Fuploads%2F3KYlEklc2lbfmRrYjvaR%2Fimage.png?alt=media&#x26;token=fe10bd03-bc29-4b42-a2ee-82b80ebd109d" alt=""><figcaption></figcaption></figure>

3. For this workflow, choose **Order Created** as the trigger and save it by clicking on **Save Trigger**. This ensures the automation starts whenever a new order is placed.

<figure><img src="https://1800541801-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgzCdF2XNgHNO9_KQDe%2Fuploads%2FN2OOaQgXM5W8Wiaa5XW0%2Fimage.png?alt=media&#x26;token=646259a3-125e-42a8-aa28-8f83759ab08e" alt=""><figcaption></figcaption></figure>

4. If you’d like to send the WhatsApp message after a specific delay, you can add a time interval. Click on **Action**,

<figure><img src="https://1800541801-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgzCdF2XNgHNO9_KQDe%2Fuploads%2FXNXdEkhX7i5cau9VsJj7%2Fimage.png?alt=media&#x26;token=71af51f7-d270-4523-8e1e-00133a2d251a" alt=""><figcaption></figcaption></figure>

then select **Delay Representation** under the **General** section.

<figure><img src="https://1800541801-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgzCdF2XNgHNO9_KQDe%2Fuploads%2Fda64USI1wX3nqemj7pF4%2Fimage.png?alt=media&#x26;token=3bc13468-fe83-4431-a3b9-fa1a55bca360" alt=""><figcaption></figcaption></figure>

Set the desired delay (e.g., 5 minutes) and save the action by clicking **Save Action.**

<figure><img src="https://1800541801-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgzCdF2XNgHNO9_KQDe%2Fuploads%2F7oKAkmyvdMkFuv4ENFHV%2Fimage.png?alt=media&#x26;token=0e3dff2d-affe-49b1-9f9a-15582754b4c3" alt=""><figcaption></figcaption></figure>

This step is optional but useful if you want to allow some time before sending the message.

5. Next, set a condition to ensure the message is sent only for paid orders.

<figure><img src="https://1800541801-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgzCdF2XNgHNO9_KQDe%2Fuploads%2F7WFwooxOcZIAQbZL4s2Q%2Fimage.png?alt=media&#x26;token=f7cd9e0d-811b-4c82-8516-212c6315b742" alt=""><figcaption></figcaption></figure>

Click on **Condition**, and under **Order**, select **Order Financial Status**. From the dropdown, choose **Is** and then select **Financial Status(Paid)** as the financial status. Save the condition to apply this rule.

<figure><img src="https://1800541801-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgzCdF2XNgHNO9_KQDe%2Fuploads%2FSVgRn3rIrXmjAsHAnsuE%2Fimage.png?alt=media&#x26;token=a5a03a05-28ac-4d33-b110-89ce72d5ec87" alt=""><figcaption></figcaption></figure>

This ensures the automation only triggers for orders that have been successfully paid for.

6. Now, define the action that will occur if the condition is met.

<figure><img src="https://1800541801-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgzCdF2XNgHNO9_KQDe%2Fuploads%2FH15qPxGg0wjQqEcThJcn%2Fimage.png?alt=media&#x26;token=889e7924-8349-44ac-a74f-bcb5802bf18d" alt=""><figcaption></figcaption></figure>

Click on **Then** and select **Action** and then go to **Send WhatsApp Template** under the **WhatsApp** section.

<figure><img src="https://1800541801-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgzCdF2XNgHNO9_KQDe%2Fuploads%2FucafTlDDh8Yyb8lD4Wx5%2Fimage.png?alt=media&#x26;token=2f8a691a-96ed-47da-9a51-5265e5c0451a" alt=""><figcaption></figcaption></figure>

Choose the appropriate WhatsApp channel from the dropdown menu and select the template you want to use (e.g., **paid\_order\_confirmation**). The **Template Preview** will show how the message will appear to customers.

<figure><img src="https://1800541801-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgzCdF2XNgHNO9_KQDe%2Fuploads%2F4ZcFAmVtafUlpdMT7tbs%2Fimage.png?alt=media&#x26;token=ef480af4-b2b7-49df-9c24-39ea7269f267" alt=""><figcaption></figcaption></figure>

7. To personalize the message, assign dynamic variables such as the customer’s name or order ID using the **Select Variables** dropdown. Additionally, set a **Fallback Value** for each variable, which will be used if the selected variable is unavailable. Once everything is configured, save the action to finalize the setup.

With this setup, every time an order is marked as **Paid**, MyAlice will automatically send a WhatsApp confirmation message to the customer, ensuring they receive prompt updates about their purchase.
