> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chatflows.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Shopify abandoned cart recovery on WhatsApp

> Win back shoppers who leave checkout. ChatFlows sends a WhatsApp reminder with a link back to their cart, at the time you choose.

Some shoppers reach your checkout and leave without paying.
ChatFlows can send them a WhatsApp message with a link back to their cart.

## How it works

1. A shopper reaches your checkout and leaves without paying.
2. ChatFlows waits for the time you set.
3. ChatFlows checks the checkout again. If they still haven't paid, your automation sends the message.
4. If they pay before then, nothing is sent.

Only one message goes out per cart for each automation.

## Before you start

* Your [store is connected](https://docs.chatflows.io/shopify/shopify-admin-app.md).
* Your [WhatsApp number is connected](https://docs.chatflows.io/core-setup/channels/whatsapp.md).
* You have an **approved** [WhatsApp template](https://docs.chatflows.io/messaging/whatsapp-templates.md) for the reminder. See [Template examples](https://docs.chatflows.io/messaging/template-examples.md) for wording.
* Your Shopify checkout asks for a **phone number**. Without one, ChatFlows can't reach the shopper.

> [!NOTE]
>
> The shopper hasn't messaged you, so the first message must be an approved template.
> This is a WhatsApp rule, not a ChatFlows one. See [the 24-hour rule](https://docs.chatflows.io/getting-started/concepts.md).

## Build the automation

**1. Create an automation**

Go to **Automations** and create a new automation.

**2. Set the trigger**

Click the **Start Trigger**. Choose **Shopify** as the trigger source, then **Cart abandoned** as the event.

**3. Choose when to send**

In **Send after (minutes)**, enter how long to wait. You can enter 5 to 1,440 minutes (24 hours).
Leave it empty to use 60 minutes.

![Start Trigger settings with Trigger Source set to Shopify, the Shopify Event set to Cart abandoned, and the Send after (minutes) box with its help text](https://mintcdn.com/chatflows-docs/8QSpoWsCTFEf5plZ/automation/img/shopify-trigger.png?fit=max\&auto=format\&n=8QSpoWsCTFEf5plZ\&q=85\&s=38a5b73d2412d5d14c3d2e8f438f6cc2)

**4. Add your template**

Add a [**WhatsApp Template**](https://docs.chatflows.io/automation/flow-steps/basic.md#whatsapp-template) step and pick your approved reminder.

**5. Add the cart link**

Put `order.recovery_url` in the template's button or text. It takes the shopper back to checkout with their cart still full.

**6. Save and turn it on**

Save the automation. It runs for every new abandoned cart from now on.

![A finished cart reminder automation: a Start Trigger on Shopify Cart abandoned, connected to a WhatsApp Template that greets the customer, says they left items in their cart, and includes the order.recovery\_url link](https://mintcdn.com/chatflows-docs/kWBDPdamjLtcvuB3/shopify/img/cart-recovery-flow.png?fit=max\&auto=format\&n=kWBDPdamjLtcvuB3\&q=85\&s=66480a4ccde4ef5a131828be4d2df46c)

## Choosing the wait time

Shopify tells ChatFlows about a checkout as soon as the shopper **reaches** it, not when they leave.
A very short wait can message someone who is still typing their address.

* Under 15 minutes is usually too soon.
* 30 to 60 minutes works well for most stores.

## Send two reminders

You can send more than one reminder. Make one automation for each reminder, each with its own wait time.

For example:

* Automation 1: **Cart abandoned**, send after **20** minutes. A friendly nudge.
* Automation 2: **Cart abandoned**, send after **720** minutes (12 hours). A last reminder.

If the shopper pays after the first reminder, the second one is not sent.

> [!WARNING]
>
> Don't add a **Wait** step inside one cart automation to send a second reminder.
> A wait does not check the checkout again, so a shopper who has already ordered would still get it.

> [!TIP]
>
> Each reminder is a template message. WhatsApp charges for each one. Two reminders are usually enough.

## How recovery is counted

A cart counts as **recovered** when it later becomes an order that isn't cancelled. ChatFlows matches the order to the cart in one of two ways:

* the same checkout is paid, or
* the same customer places an order within 7 days.

Each cart counts once. A cart recovered after a reminder doesn't always mean the reminder caused the sale. The shopper might have come back anyway.

## See your results

The [Shopify dashboard](https://docs.chatflows.io/shopify/shopify-dashboard.md) shows how many carts were abandoned, how many were recovered, and how many got a reminder.

## Common questions

> [accordion] Will a shopper who already paid still get a cart reminder?
>
> No. ChatFlows checks the checkout again just before sending, so a shopper who has already paid gets nothing.
> See [How it works](#how-it-works).

> [accordion] Can I send cart reminders on SMS or email?
>
> No. ChatFlows sends Shopify cart reminders on WhatsApp only, from your connected WhatsApp number. Shoppers are matched by the phone number on their checkout.

> [accordion] Do I need to change my Shopify theme to recover abandoned carts?
>
> No. ChatFlows doesn't add anything to your storefront or theme. It only reads your store's checkouts and orders.

> [accordion] Can I put a discount code in my WhatsApp cart reminder?
>
> Yes. You can paste a discount code you created in Shopify into your reminder message. ChatFlows doesn't create discount codes for you.
> See [Build the automation](#build-the-automation).

## Where to next

> [card] [Send order updates](https://docs.chatflows.io/shopify/order-updates.md)
>
> Message customers when an order is placed, shipped or delivered.

> [card] [Order details in your messages](https://docs.chatflows.io/messaging/merge-fields.md)
>
> Add the cart total, items and more to your reminder.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.