Automation library · E-commerce

Score Shopify customer churn risk and sync results

Started by a clock, and works across Gmail and Slack. 22 steps, 7 branches: large, and worth reading before you trust it with anything live.

Large

22 stepsLarge: read it before trusting it with anything live
7Branches: places the flow splits
0Loops or waits
2Services it connects to

The flow

Starts it 2Logic 14Service 6

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

  1. 1Weekly Schedule TriggerSchedule triggerStarts it
  2. 2On Global ErrorError triggerStarts it
  3. 3Set Workflow ConfigSetLogic
  4. 4Post Error to SlackSlackService
  5. 5If Alerts EnabledIfLogic
  6. 6Fetch Customer DataGraphqlService
  7. 7Calculate Churn RiskCodeLogic
  8. 8If Batch Has Risky CustomersIfLogic
  9. 9Save Batch to MemoryCodeLogic
  10. 10Check for Next PageIfLogic
  11. 11Limit to 1 ItemLimitLogic
  12. 12Retrieve Customer DataCodeLogic
  13. 13If Risky Customers FoundIfLogic
  14. 14If Klaviyo EnabledIfLogic
  15. 15Aggregate Churn ResultsCodeLogic
  16. 16Create CSV ExportConvert To FileService
  17. 17Send to Klaviyo APIHttp RequestService
  18. 18Combine Export DataMergeLogic
  19. 19If Email Notifications OnIfLogic
  20. 20If Slack Notifications OnIfLogic
  21. 21Send Email AlertGmailService
  22. 22Send CSV to Slack ChannelSlackService

How it's built

Starts on
A clock
Steps
22, with 7 branches
Size
Large: read it before trusting it with anything live
Connects to
Gmail, Slack
Model
None. This is plumbing, not judgement

Questions

What does it need to run?

An n8n account, plus your own Gmail and Slack accounts. You connect your own accounts after importing it; none are included.

What starts it?

It starts on a clock.

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 22 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 22 steps before you point it at anything that matters.