Templates / Subscription revenue optimizer with Stripe, Postgres & Gmail - predictive retention

Subscription revenue optimizer with Stripe, Postgres & Gmail - predictive retention

Ready for 3.0

by Rodrigue Gbadou ✓ · 489 views · created 2025-07-16 · CRM, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

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

  1. Revenue Settings (Edit Fields (Set)): sets or maps fields
  2. Get Customer Analytics (Postgres): uses Postgres
  3. Analyze Revenue Opportunities (Code): runs custom JavaScript code
  4. Filter High Risk Customers (If): checks a condition and branches into true / false
  5. Filter Upsell Opportunities (If): checks a condition and branches into true / false
  6. Filter Re-engagement Needed (If): checks a condition and branches into true / false
  7. Get Customer Details (HTTP Request): calls an HTTP API (GET)
  8. Get Customer Details (HTTP Request): calls an HTTP API (GET)
  9. Get Customer Details (HTTP Request): calls an HTTP API (GET)
  10. Send Retention Campaign (Gmail): uses Gmail

…plus 2 more steps. See the full node list below.

Services it uses

PostgresGmail

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)

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

Excerpt from Rodrigue Gbadou's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.