# AI-Powered Stripe Customer Lifecycle Automation with Slack: n8n workflow

> 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...

Source: https://millionrounds.com/workflow/ai-powered-stripe-customer-lifecycle-automation-with-slack (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Alerts and monitoring](https://millionrounds.com/workflows?category=Alerts+and+monitoring#library)

# 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

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fai-powered-stripe-customer-lifecycle-automation-with-slack)

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

**3** Branches: places the flow splits

**1** Loop or waits

**3** Services it connects to

## The flow

Starts it 2 Logic 5 Service 23

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

- 1 **Webhook, Stripe Events** Webhook *Starts it*
- 2 **Error Trigger** Error trigger *Starts it*
- 3 **Extract Event Data** Code *Logic*
- 4 **DB, Log Error** Supabase *Service*
- 5 **Route by Event Type** Switch *Logic*
- 6 **Slack, Error Alert** Slack *Service*
- 7 **DB, Create Customer** Supabase *Service*
- 8 **DB, Update Plan** Supabase *Service*
- 9 **DB, Log Failed Payment** Supabase *Service*
- 10 **DB, Mark Churned** Supabase *Service*
- 11 **AI, Welcome Email** Http Request *Service*
- 12 **Is Upgrade?** If *Logic*
- 13 **AI, Dunning Email** Http Request *Service*
- 14 **AI, Win-Back Email** Http Request *Service*
- 15 **Send Email, Welcome** Email Send *Service*
- 16 **AI, Upgrade Email** Http Request *Service*
- 17 **AI, Retention Offer** Http Request *Service*
- 18 **Send Email, Dunning** Email Send *Service*
- 19 **Slack, Payment Failed** Slack *Service*
- 20 **Send Email, Win-Back** Email Send *Service*
- 21 **DB, Log Churn Event** Supabase *Service*
- 22 **Slack, New Customer** Slack *Service*
- 23 **Send Email, Plan Change** Email Send *Service*
- 24 **Wait 72 Hours** Wait *Logic*
- 25 **Slack, Churn Alert** Slack *Service*
- 26 **Slack, Plan Change** Slack *Service*
- 27 **Check Invoice, Stripe API** Http Request *Service*
- 28 **Still Unpaid?** If *Logic*
- 29 **AI, Final Warning** Http Request *Service*
- 30 **Send Email, Final Warning** Email Send *Service*

## 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.

## 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%2Fai-powered-stripe-customer-lifecycle-automation-with-slack)
- **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.

[Email](https://millionrounds.com/workflows?service=Email#library)[Slack](https://millionrounds.com/workflows?service=Slack#library)[Supabase](https://millionrounds.com/workflows?service=Supabase#library)

## Workflows like it

Also alerts and monitoring, with the same services where possible, closest in size first.

- [**Advanced Slackbot with Postgres** 30 steps · Postgres, Slack](https://millionrounds.com/workflow/advanced-slackbot-with-postgres)
- [**Automate ESG carbon monitoring and strategy execution** 30 steps · calls a model · Email, Google Sheets](https://millionrounds.com/workflow/automate-esg-carbon-monitoring-and-strategy-execution-2)
- [**Monitor and optimize carbon emissions for ESG reporting** 30 steps · calls a model · Email, Google Sheets](https://millionrounds.com/workflow/monitor-and-optimize-carbon-emissions-for-esg-reporting)
- [**Orchestrate multi-agent compliance monitoring and audit logging** 30 steps · calls a model · Email, n8n data table](https://millionrounds.com/workflow/orchestrate-multi-agent-compliance-monitoring-and-audit-logg)
- [**EtxHackerOne Scope Monitor with Discord and Supabase** 29 steps · Discord, Supabase](https://millionrounds.com/workflow/etxhackerone-scope-monitor-with-discord-and-supabase)
- [**Manage invoicing, collections and alerts with BeeL and HubSpot** 29 steps · Gmail, Google Drive](https://millionrounds.com/workflow/gestiona-facturacion-recobros-y-alertas-con-beel-hubspot-y)
