# Automating Cancellation Notifications

Automating cancellation notifications helps you handle order issues professionally and efficiently. By keeping customers informed in real-time, you demonstrate transparency and care, which can turn a potentially negative experience into a positive one. Follow this steps to set up an automated workflow in MyAlice to send a WhatsApp message to customers whenever their order is cancelled, whether due to stockouts or other reasons.

1. Start by logging into your MyAlice account and navigating to the **Create Automation** section.

<figure><img src="/files/6Eb8dNPSUwOEllWiaPiS" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/BRqzhG6GKwaTDkgQPLOL" alt=""><figcaption></figcaption></figure>

3. For this workflow, choose **Order Cancelled** as the trigger and save it. This ensures the automation starts whenever an order is marked as cancelled.

<figure><img src="/files/qZFY930U90fUxPjkDjkQ" alt=""><figcaption></figcaption></figure>

4. Once the trigger is set, click on **Action** to define what happens next.

<figure><img src="/files/JTKwtJJn50hSbJIW6qsq" alt=""><figcaption></figcaption></figure>

5. Under the **WhatsApp** section, select **Send WhatsApp Template**. This allows you to send a pre-designed message to customers, informing them about the cancellation and providing any necessary details.

<figure><img src="/files/L6JHSnybt1lAaY2VtWv6" alt=""><figcaption></figcaption></figure>

6. Next, choose the appropriate **WhatsApp Channel** from the dropdown menu. Then, select the template you want to use for this notification. For this example, we’ll use the template, which will include confirmation that the order has been cancelled along with a link to the website, namly **order\_cancel** template.

<figure><img src="/files/3HCmZ8BtDMZlLGKJfnOa" alt=""><figcaption></figcaption></figure>

7. The **Template Preview** will show how the message will appear to customers. To personalize the message, assign dynamic variables such as the customer’s name, order ID, or cancellation reason 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.

<figure><img src="/files/fVdLghONOy7xGyJBTxjc" alt=""><figcaption></figcaption></figure>

![](/files/0iMESsiVom79xnY6F9hc)


---

# 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.myalice.ai/chatbot-automation/case-specific-automation/automating-cancellation-notifications.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.
