Subscription revenue optimizer with Stripe, Postgres & Gmail - predictive retention
Ready for 3.0What this workflow does
This workflow has 13 nodes and runs on a schedule (cron expression). Along the way it connects Postgres and Gmail.
How it runs
Trigger: On a schedule (cron expression).
- Revenue Settings (Edit Fields (Set)): sets or maps fields
- Get Customer Analytics (Postgres): uses Postgres
- Analyze Revenue Opportunities (Code): runs custom JavaScript code
- Filter High Risk Customers (If): checks a condition and branches into true / false
- Filter Upsell Opportunities (If): checks a condition and branches into true / false
- Filter Re-engagement Needed (If): checks a condition and branches into true / false
- Get Customer Details (HTTP Request): calls an HTTP API (GET)
- Get Customer Details (HTTP Request): calls an HTTP API (GET)
- Get Customer Details (HTTP Request): calls an HTTP API (GET)
- Send Retention Campaign (Gmail): uses Gmail
…plus 2 more steps. See the full node list below.
Services it uses
Other Gmail + PostgreSQL templates (82) · Other Stripe + Gmail templates (44) · Other Stripe + PostgreSQL templates (3)
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 (7)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - Postgres
n8n-nodes-base.postgres - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - HTTP Request
n8n-nodes-base.httpRequest - Gmail
n8n-nodes-base.gmail
From the author
How it works - Behavioral analytics: Real-time analysis of product usage and engagement signals - Churn prediction: Predictive model identifying at-risk customers 15 days before - Smart upselling: Personalized recommendations based on usage and profile -…