Recover failed Stripe payments with GPT-4o, Gmail, Sheets, and Slack
Ready for 3.0What this workflow does
This AI workflow has 11 nodes and runs on a schedule (every day at 08:00). Along the way it connects Google Sheets, OpenAI Chat Model, Gmail and Slack.
How it runs
Trigger: On a schedule (every day at 08:00).
- Read Customers from Sheets (Google Sheets): uses Google Sheets
- Analyze Churn and Draft Email (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI Retention Model; output parser: Parse Churn Schema
- Set Customer Risk Details (Edit Fields (Set)): sets 9 fields: name, email, risk_score…
- If: checks a condition and branches into true / false
- Draft Win-back Email via Gmail (Gmail): work with draft
- Append to Win-back Log Sheets (Google Sheets): append
- Post Alert to Slack Channel (Slack): post (message)
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other OpenAI + Google Sheets templates (2,011) · Other OpenAI + Gmail templates (1,623)
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (10)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Google Sheets
n8n-nodes-base.googleSheets - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Edit Fields (Set)
n8n-nodes-base.set - If
n8n-nodes-base.if - No Operation, do nothing
n8n-nodes-base.noOp - Gmail
n8n-nodes-base.gmail - Slack
n8n-nodes-base.slack
From the author
Quick Overview This workflow triggers on failed Stripe invoice payments, uses OpenAI to draft an escalating dunning email, sends it via Gmail, logs the outreach to Google Sheets, and notifies the billing team in Slack when the final attempt threshold is…