Automation library · Alerts and monitoring

AI-Powered Stripe Customer Lifecycle Automation with Slack

Started by another system calling it, and works across Email, Slack and Supabase. 30 steps, 3 branches, 1 loop or waits: large, and worth reading before you trust it with anything live.

Large

30 stepsLarge: read it before trusting it with anything live
3Branches: places the flow splits
1Loop or waits
3Services it connects to

The flow

Starts it 2Logic 5Service 23

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

  1. 1Webhook, Stripe EventsWebhookStarts it
  2. 2Error TriggerError triggerStarts it
  3. 3Extract Event DataCodeLogic
  4. 4DB, Log ErrorSupabaseService
  5. 5Route by Event TypeSwitchLogic
  6. 6Slack, Error AlertSlackService
  7. 7DB, Create CustomerSupabaseService
  8. 8DB, Update PlanSupabaseService
  9. 9DB, Log Failed PaymentSupabaseService
  10. 10DB, Mark ChurnedSupabaseService
  11. 11AI, Welcome EmailHttp RequestService
  12. 12Is Upgrade?IfLogic
  13. 13AI, Dunning EmailHttp RequestService
  14. 14AI, Win-Back EmailHttp RequestService
  15. 15Send Email, WelcomeEmail SendService
  16. 16AI, Upgrade EmailHttp RequestService
  17. 17AI, Retention OfferHttp RequestService
  18. 18Send Email, DunningEmail SendService
  19. 19Slack, Payment FailedSlackService
  20. 20Send Email, Win-BackEmail SendService
  21. 21DB, Log Churn EventSupabaseService
  22. 22Slack, New CustomerSlackService
  23. 23Send Email, Plan ChangeEmail SendService
  24. 24Wait 72 HoursWaitLogic
  25. 25Slack, Churn AlertSlackService
  26. 26Slack, Plan ChangeSlackService
  27. 27Check Invoice, Stripe APIHttp RequestService
  28. 28Still Unpaid?IfLogic
  29. 29AI, Final WarningHttp RequestService
  30. 30Send Email, Final WarningEmail SendService

How it's built

Starts on
Another system calling it
Steps
30, with 3 branches, 1 loop or waits
Size
Large: read it before trusting it with anything live
Connects to
Email, Slack, Supabase
Model
None. This is plumbing, not judgement

Questions

What does it need to run?

An n8n account, plus your own Email, Slack and Supabase 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 30 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 30 steps before you point it at anything that matters.