Automation library · E-commerce

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

44 stepsLarge: read it before trusting it with anything live
7Branches: places the flow splits
4Loops or waits
6Services it connects to

The flow

Starts it 1Logic 29Service 14

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

  1. 1Abandoned Cart WebhookWebhookStarts it
  2. 2Workflow ConfigurationSetLogic
  3. 3Normalize Cart DataSetLogic
  4. 4Fetch Cart DetailsHttp RequestService
  5. 5Fetch Customer HistoryHttp RequestService
  6. 6Predict Abandonment ReasonCodeLogic
  7. 7Personalization EngineCodeLogic
  8. 8Customer Segment CheckIfLogic
  9. 9Device Type CheckIfLogic
  10. 10Wait 1 HourWaitLogic
  11. 11Check Order Status (1h)ShopifyService
  12. 12Check Order Completed (1h)IfLogic
  13. 13Mark Success - Order Completed (1h)SetLogic
  14. 14Generate Email 1 ContentCodeLogic
  15. 15Send Email 1Send GridService
  16. 16Log Email 1 TouchpointGoogle SheetsService
  17. 17Attribution - Email 1CodeLogic
  18. 18Wait Until 4 HoursWaitLogic
  19. 19Merge Attribution DataMergeLogic
  20. 20Check Order Status (4h)ShopifyService
  21. 21Check Cart Value ThresholdIfLogic
  22. 22Check Order Completed (4h)IfLogic
  23. 23Notify High-Value RecoverySlackService
  24. 24Mark Success - Order Completed (4h)SetLogic
  25. 25Prepare SMS ContentSetLogic
  26. 26Send SMS with DiscountTwilioService
  27. 27Log SMS TouchpointGoogle SheetsService
  28. 28Wait Until 24 HoursWaitLogic
  29. 29Merge Attribution - SMSCodeLogic
  30. 30Check Order Status (24h)ShopifyService
  31. 31Check Order Completed (24h)IfLogic
  32. 32Mark Success - Order Completed (24h)SetLogic
  33. 33Generate Email 2 ContentCodeLogic
  34. 34Send Email 2Send GridService
  35. 35Log Email 2 TouchpointGoogle SheetsService
  36. 36Wait Until 48 HoursWaitLogic
  37. 37Merge Attribution - Email 2CodeLogic
  38. 38Check Order Completed (48h)IfLogic
  39. 39Mark Success - Order Completed (48h)SetLogic
  40. 40Generate WhatsApp MessageCodeLogic
  41. 41Send WhatsApp MessageWhats AppService
  42. 42Hash Customer Data for FacebookCodeLogic
  43. 43Add to Retargeting AudienceFacebook Graph ApiService
  44. 44Merge Attribution - WhatsAppCodeLogic

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.