# Automating Abandoned Cart Recovery via WhatsApp

Abandoned carts are a common challenge in e-commerce, but they also present an opportunity to re-engage customers and encourage them to complete their purchase. Automating abandoned cart recovery helps you re-engage customers who might have otherwise forgotten about their cart. By offering a personalized message and a special discount, you create a sense of urgency and value, increasing the likelihood of conversion.

1. Start by logging into your MyAlice account and navigating 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%2FQEYLXIaHamPqHVnZ53x5%2Fimage.png?alt=media&#x26;token=2f3db143-ac12-4e5a-8ce3-f49309cb815d" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://1800541801-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgzCdF2XNgHNO9_KQDe%2Fuploads%2F1Dx8Tc7YZA5ziHJI83Al%2Fimage.png?alt=media&#x26;token=4a19ec85-c1c9-4d88-94d8-397505c5bfc4" alt=""><figcaption></figcaption></figure>

3. For this workflow, choose **Cart Abandonment** as the trigger and save it. This ensures the automation starts whenever a customer leaves items in their cart without completing the purchase.

<figure><img src="https://1800541801-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgzCdF2XNgHNO9_KQDe%2Fuploads%2FJPbfc1BnDAZEAuCRn2mI%2Fimage.png?alt=media&#x26;token=3e6eefa9-8f0b-45ee-9d5c-7c15c4e16bdf" alt=""><figcaption></figcaption></figure>

4. To allow some time before sending the message, 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%2FcvCsCmxDQ57CbwLp3ucY%2Fimage.png?alt=media&#x26;token=30786dab-69e0-479b-a955-daa642ac793c" 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%2FXu5RfbnQveStwOHSbYKY%2Fimage.png?alt=media&#x26;token=6981d0a3-b794-4c4e-a531-77d6b2c82e56" alt=""><figcaption></figcaption></figure>

Set the desired delay (e.g., 3 hours) in the input box and save the action. This gives customers a chance to return on their own before receiving the reminder.

<figure><img src="https://1800541801-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgzCdF2XNgHNO9_KQDe%2Fuploads%2FqFsgog2hEkVWZ8gSyMnA%2Fimage.png?alt=media&#x26;token=c7dcab22-b29b-45fa-a767-19d5f5347d23" alt=""><figcaption></figcaption></figure>

5. Once the delay period has passed, the system will send an automated WhatsApp message to encourage the customer to complete their purchase. To set this up, click on **Action** again.

<figure><img src="https://1800541801-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgzCdF2XNgHNO9_KQDe%2Fuploads%2Fvuxg2uXjRmTOD7IT8fOf%2Fimage.png?alt=media&#x26;token=223dfb94-4c6a-48b7-8b96-ac01ae35020e" alt=""><figcaption></figcaption></figure>

Then under the **WhatsApp** section, select **Send WhatsApp Template**.

<figure><img src="https://1800541801-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgzCdF2XNgHNO9_KQDe%2Fuploads%2F1VSChqCIblCHIKei62LC%2Fimage.png?alt=media&#x26;token=0b8e54fc-9550-439d-93d4-57f951e70812" alt=""><figcaption></figcaption></figure>

Choose the appropriate **WhatsApp Channel** from the dropdown menu and select the template you want to use. For this example, we’ll use the **abandoned\_cart\_2** template, which includes a special discount to incentivize customers to place their order. You can customize the template by adding or removing variables or typing additional text as needed.

<figure><img src="https://1800541801-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgzCdF2XNgHNO9_KQDe%2Fuploads%2FPNjSHqPdtIhskYuGgNY4%2Fimage.png?alt=media&#x26;token=7652ce82-82a1-4d0e-a832-28cfdc655afa" alt=""><figcaption></figcaption></figure>

The **Template Preview** will show how the message will appear to customers. Assign dynamic variables, such as the customer’s name or cart items, using the **Select Variables** dropdown. Set a **Fallback Value** for each variable to ensure the message remains complete even if some data is unavailable. Save the action to finalize the setup.

!\[A screenshot of a chat

AI-generated content may be incorrect.]\(<https://1800541801-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgzCdF2XNgHNO9_KQDe%2Fuploads%2FSbWlv6Z4mgXoU6VZmxJp%2F10.png?alt=media>)


---

# 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-abandoned-cart-recovery-via-whatsapp.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.
