Automate customer retention with AI risk prediction, Stripe coupons & personalized Gmail
Needs changesWhat this workflow does
This workflow has 22 nodes and runs on a schedule (every 3 hours). Along the way it connects Postgres, Gmail and Google Sheets. It also calls api.stripe.com over HTTP.
How it runs
Trigger: On a schedule (every 3 hours).
- 対象顧客リスト取得 (CRM) (HTTP Request): calls an HTTP API
- サポートチケット情報取得 (HTTP Request): calls an HTTP API
- サポート指標集計 (Code): runs custom JavaScript code
- 製品利用ログ取得 (Postgres): run a query
- データ統合 (CRM+サポート) (Merge): merges the data from its input branches
- データ統合 (全データ) (Merge): merges the data from its input branches
- AI解約リスク予測 (OpenAI): work with chat completion
- 高リスク顧客フィルタ (If): checks a condition and branches into true / false
- 特別オファー生成 (HTTP Request): calls api.stripe.com (POST)
- 未更新ログ取得 (Google Sheets): uses Google Sheets
…plus 11 more steps. See the full node list below.
Services it uses
HTTP calls to: api.stripe.com
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- OpenAI (legacy) in AI解約リスク予測, リテンションメール生成: replace with OpenAI node (AI section).
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
| Removed in 3.0 | Replace with |
|---|---|
| OpenAI (legacy) AI解約リスク予測, リテンションメール生成 | OpenAI node (AI section) |
Nodes used (9)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - Postgres
n8n-nodes-base.postgres - Merge
n8n-nodes-base.merge - OpenAI
n8n-nodes-base.openAi - If
n8n-nodes-base.if - Gmail
n8n-nodes-base.gmail - Google Sheets
n8n-nodes-base.googleSheets
From the author
Predict churn risk from customer data and send retention emails via OpenAI 👥 Who’s it for This workflow is designed for Customer Success Managers, Growth Teams, and SaaS Business Owners who want to proactively reduce churn using AI. It automates the analysis…