Category: Automations › WhatsApp Sales · Best for: Shopify stores, especially in India where shoppers read WhatsApp far more than email · Platform: n8n · Steps: 4
What it does
Shoppers who leave your Shopify checkout get a friendly WhatsApp reminder after 1 hour and again after 24 hours, with a link straight back to their cart.
Most shoppers who start a checkout never finish it. A short WhatsApp reminder with a link back to the cart is one of the most common ways stores recover some of those sales.
Works with: Shopify, WhatsApp
What you get
- The n8n workflow file (
workflow.json), ready to import - This setup guide, including the WhatsApp message templates to create
- Email support if you get stuck
Before you start
-
An n8n account. Easiest: n8n Cloud (free trial). Self-host for free with Docker:
docker run -it --rm -p 5678:5678 -v n8n_data:/home/node/.n8n docker.n8n.io/n8nio/n8n. Other services need to reach your n8n, so a self-hosted n8n must be on a public HTTPS address. -
A WhatsApp Business Cloud API number from Meta (free to set up; Meta charges per conversation, see WhatsApp pricing). Your personal WhatsApp number can't be used.
-
These credentials in n8n (Credentials → Add credential):
- Shopify (
shopifyAccessTokenApi): in Shopify admin open Settings → Apps and sales channels → Develop apps, create an app with theread_orders,write_ordersandread_checkoutsscopes, install it and copy the Admin API access token, your shop subdomain and the app secret. n8n guide - WhatsApp Business Cloud (
whatsAppApi): at developers.facebook.com make an app of type Business, add WhatsApp, then create a permanent access token for a system user in Business Settings. In n8n paste the token and your WhatsApp Business Account ID. n8n guide
- Shopify (
Create your WhatsApp templates (once)
Meta only lets a business start a WhatsApp chat with an approved template. Create these in WhatsApp Manager → Message templates → Create template, language English (en). Approval usually takes minutes.
1. cart_reminder_1 (category: Marketing, sent after 1 hour):
Hi {{1}}, you left {{2}} in your cart. It's saved for you here: {{3}}
2. cart_reminder_2 (category: Marketing, sent after 24 hours):
Hi {{1}}, still thinking about {{2}}? Your cart is waiting: {{3}}
Reply here if you have any questions.
Use other wording if you like, keeping the same {{1}} placeholders. If you rename a template, change the Template field in its WhatsApp box to match (name|language).
Install
- In n8n, click Create workflow (top right).
- Click the ⋯ menu → Import from file and choose
workflow.json. Or copy the file's contents and paste onto the empty canvas with Ctrl/Cmd + V. - Open each box with a red warning triangle and pick the matching credential from the list above.
- In every WhatsApp box, replace
YOUR_WHATSAPP_PHONE_NUMBER_IDwith your Phone number ID (WhatsApp Manager → API setup). - In Get abandoned checkouts, replace
YOUR-STORE.myshopify.comwith your store's address. - Ask for the phone number at checkout (Shopify admin → Settings → Checkout → Customer contact: phone or email; Shipping address phone: required).
Then click Save. In each Code box, DEFAULT_COUNTRY_CODE is 91 (India): change it to 1 for the US and Canada, 44 for the UK, and so on.
Test it
- Click Test workflow.
- Start a checkout on your store with your own phone number and leave it. Change
mins >= 60tomins >= 1in Pick carts to remind for the test, and change it back after. - Click each box to see its output. A green tick means the step worked. A red box is almost always a credential, a template name that doesn't match, or a number without its country code.
Go live
Toggle Active (top right). From now on it runs on its own. Check Executions in the left sidebar to see every run.
How it works, step by step
- Every 30 minutes starts the check.
- Get abandoned checkouts reads Shopify's abandoned checkouts from the last 25 hours.
- Pick carts to remind keeps carts left about 1 hour or about 24 hours ago that have a phone number, so each cart gets each reminder once.
- Send cart reminder sends reminder 1 or 2 with the cart link.
Good to know
- WhatsApp only lets a business message first with an approved template; replies within 24 hours of the customer's last message can be free text.
- Only message shoppers who agreed to marketing messages: add a WhatsApp consent tick to your checkout. Meta can limit numbers that get blocked often.
- This uses Shopify's abandoned checkouts, so it works for shoppers who reached checkout and typed a phone number. WooCommerce has no built-in abandoned carts; ask us for that version.