# Abandoned cart on WhatsApp

> Send a WhatsApp reminder with the cart link an hour after a shopper leaves checkout, then an email if they don't react, and stop as soon as they buy.

URL: https://docs.lemuai.com/recipes/abandoned-cart-whatsapp
For: Everyone
Checked against LemuAI app version 1.0.12
Related: [Goals and Revenue](https://docs.lemuai.com/automation/goals-and-links), [Shopify](https://docs.lemuai.com/integrations/shopify), [Standard and Conversion Events](https://docs.lemuai.com/website-pixel/standard-events), [WhatsApp and Inbox](https://docs.lemuai.com/troubleshooting/whatsapp)

At the end you'll have a journey that sends a WhatsApp reminder one hour after someone starts checkout without ordering, waits for them to click, emails them if they don't, and leaves them alone the moment they buy. Orders after the reminder are credited to it in the journey's report.

## Before you start

- Checkout events reaching LemuAI: from Shopify (**Checkout started** in Store events) or from your site's [tracking snippet or SDK](https://docs.lemuai.com/website-pixel/standard-events) sending `InitiateCheckout` with the shopper's phone.
- WhatsApp connected and an approved **Marketing** template, for example:

  > Hi {{1}}, you left something in your cart. Complete your order here: {{2}}

- Optional: an email template for the follow-up, and a sender under **Engage → Email → Setup**.

## Steps

**Step: Create the journey**

**Engage → Journeys → New Journey**, trigger **Events**, event `InitiateCheckout`. Delay: 60 minutes. Exit events: `Purchase`, so anyone who orders leaves the journey at once.

**Step: Check link tracking**

Open the journey's **Settings** and check **Track link clicks** is on (it is by default). Optionally turn on **Own attribution windows** with WhatsApp at 24 hours. See [Link Click Tracking](https://docs.lemuai.com/messaging/link-tracking).

**Step: Send the WhatsApp reminder**

Add a **WhatsApp** step with your template. Set `{{1}}` to the contact's first name (with a fallback like `there`) and `{{2}}` to the cart link: `{{context.checkout_url}}` for Shopify checkouts, or the URL your site sends.

**Step: Wait for a click**

Add **Wait for reaction**: events `link_clicked`, timeout 6 hours.
- **reacted** → **End** (they're back on the site; the exit event stops the journey if they buy).
- **no_reaction** → next step.

**Step: Email follow-up**

Add an **Email** step with your cart email template (kind **Marketing**), then **End**.

**Step: Go live**

Check **Allowed hours** for WhatsApp and email (for example 09:00 to 21:00), then **Go live**.

## Check it worked

1. On your store, add something to the cart and start checkout with your own phone number, then close the tab.
2. After an hour you get the WhatsApp message. Tap the link: it opens your checkout.
3. **Insights → Runs → Journey Runs** shows the run took the **reacted** path.
4. Complete the order: the run shows `exited: …` and the journey's report credits the order.

## Common problems

| What you see | Fix |
|---|---|
| No run starts | The checkout event had no phone, so there's no contact to message. Make sure the checkout asks for a phone before the event is sent |
| Message skipped: "no WhatsApp consent (marketing)" or opted out | The shopper hasn't agreed to WhatsApp marketing. Collect consent at checkout |
| "The number of values doesn't match the template's variables" | A variable had no value. Add fallbacks. See [WhatsApp troubleshooting](https://docs.lemuai.com/troubleshooting/whatsapp) |
| Orders aren't credited | Check the order arrives as `Purchase` with `order_id` and `value`, within the attribution window |
