# Recover Shopify abandoned carts with SMS and WhatsApp: n8n workflow

> Started by another system calling it, and works across Google Sheets, SendGrid, Shopify, Slack and two others.

Source: https://millionrounds.com/workflow/recover-shopify-abandoned-carts-with-sms-and-whatsapp (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [E-commerce](https://millionrounds.com/workflows?category=E-commerce#library)

# Recover Shopify abandoned carts with SMS and WhatsApp

Started by another system calling it, and works across Google Sheets, SendGrid, Shopify, Slack and two others. 44 steps, 7 branches, 4 loops or waits: large, and worth reading before you trust it with anything live.

Large

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Frecover-shopify-abandoned-carts-with-sms-and-whatsapp)

**44 steps** Large: read it before trusting it with anything live

**7** Branches: places the flow splits

**4** Loops or waits

**6** Services it connects to

## The flow

Starts it 1 Logic 29 Service 14

The steps in the order they run, from what starts it.

- 1 **Abandoned Cart Webhook** Webhook *Starts it*
- 2 **Workflow Configuration** Set *Logic*
- 3 **Normalize Cart Data** Set *Logic*
- 4 **Fetch Cart Details** Http Request *Service*
- 5 **Fetch Customer History** Http Request *Service*
- 6 **Predict Abandonment Reason** Code *Logic*
- 7 **Personalization Engine** Code *Logic*
- 8 **Customer Segment Check** If *Logic*
- 9 **Device Type Check** If *Logic*
- 10 **Wait 1 Hour** Wait *Logic*
- 11 **Check Order Status (1h)** Shopify *Service*
- 12 **Check Order Completed (1h)** If *Logic*
- 13 **Mark Success - Order Completed (1h)** Set *Logic*
- 14 **Generate Email 1 Content** Code *Logic*
- 15 **Send Email 1** Send Grid *Service*
- 16 **Log Email 1 Touchpoint** Google Sheets *Service*
- 17 **Attribution - Email 1** Code *Logic*
- 18 **Wait Until 4 Hours** Wait *Logic*
- 19 **Merge Attribution Data** Merge *Logic*
- 20 **Check Order Status (4h)** Shopify *Service*
- 21 **Check Cart Value Threshold** If *Logic*
- 22 **Check Order Completed (4h)** If *Logic*
- 23 **Notify High-Value Recovery** Slack *Service*
- 24 **Mark Success - Order Completed (4h)** Set *Logic*
- 25 **Prepare SMS Content** Set *Logic*
- 26 **Send SMS with Discount** Twilio *Service*
- 27 **Log SMS Touchpoint** Google Sheets *Service*
- 28 **Wait Until 24 Hours** Wait *Logic*
- 29 **Merge Attribution - SMS** Code *Logic*
- 30 **Check Order Status (24h)** Shopify *Service*
- 31 **Check Order Completed (24h)** If *Logic*
- 32 **Mark Success - Order Completed (24h)** Set *Logic*
- 33 **Generate Email 2 Content** Code *Logic*
- 34 **Send Email 2** Send Grid *Service*
- 35 **Log Email 2 Touchpoint** Google Sheets *Service*
- 36 **Wait Until 48 Hours** Wait *Logic*
- 37 **Merge Attribution - Email 2** Code *Logic*
- 38 **Check Order Completed (48h)** If *Logic*
- 39 **Mark Success - Order Completed (48h)** Set *Logic*
- 40 **Generate WhatsApp Message** Code *Logic*
- 41 **Send WhatsApp Message** Whats App *Service*
- 42 **Hash Customer Data for Facebook** Code *Logic*
- 43 **Add to Retargeting Audience** Facebook Graph Api *Service*
- 44 **Merge Attribution - WhatsApp** Code *Logic*

## How it's built

- **Starts on:** Another system calling it
- **Steps:** 44, with 7 branches, 4 loops or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Google Sheets, SendGrid, Shopify, Slack, Twilio, WhatsApp
- **Model:** None. This is plumbing, not judgement

## Questions

What does it need to run?

An n8n account, plus your own Google Sheets, SendGrid, Shopify, Slack, Twilio and WhatsApp accounts. You connect your own accounts after importing it; none are included.

What starts it?

It starts on another system calling it.

Does it use AI?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

How long does it take to set up?

Take your time. At 44 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 44 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Frecover-shopify-abandoned-carts-with-sms-and-whatsapp)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Google Sheets](https://millionrounds.com/workflows?service=Google+Sheets#library)[SendGrid](https://millionrounds.com/workflows?service=SendGrid#library)[Shopify](https://millionrounds.com/workflows?service=Shopify#library)[Slack](https://millionrounds.com/workflows?service=Slack#library)[Twilio](https://millionrounds.com/workflows?service=Twilio#library)[WhatsApp](https://millionrounds.com/workflows?service=WhatsApp#library)

## Workflows like it

Also e-commerce, with the same services where possible, closest in size first.

- [**Restaurant order & delivery system for WhatsApp with OpenAI** 42 steps · calls a model · Google Drive, WhatsApp](https://millionrounds.com/workflow/restaurant-order-and-delivery-system-for-whatsapp-with-opena)
- [**Handle WhatsApp orders, FAQs, and tracking with OpenAI** 37 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/handle-whatsapp-orders-faqs-and-tracking-with-openai)
- [**Confirm COD orders and recover carts with Telegram** 33 steps · calls a model · Google Sheets, Slack](https://millionrounds.com/workflow/confirm-cod-orders-and-recover-carts-with-telegram)
- [**Handle voice food orders with Google Sheets** 32 steps · Google Sheets](https://millionrounds.com/workflow/handle-voice-food-orders-with-google-sheets)
- [**Process prescription orders and refills with Telegram** 32 steps · calls a model · Google Sheets, Slack](https://millionrounds.com/workflow/process-prescription-orders-and-refills-with-telegram)
- [**Review and approve Google Sheets orders by email and notify** 28 steps · Gmail, Google Sheets](https://millionrounds.com/workflow/review-and-approve-google-sheets-orders-by-email-and-notify)
