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