Templates / Personalized customer retention campaigns with GPT-4o analytics & Gmail

Personalized customer retention campaigns with GPT-4o analytics & Gmail

Ready for 3.0

by Cheng Siong Chin ✓ · 106 views · created 2025-12-16 · Lead Nurturing, 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-10-19.

What this workflow does

This AI workflow has 29 nodes and runs on a schedule (every day at 02:00). Along the way it connects OpenAI Chat Model, MCP Client, Gmail and HTTP Request.

How it runs

Trigger: On a schedule (every day at 02:00).

  1. Workflow Configuration (Edit Fields (Set)): sets 11 fields: customerApiUrl, churnThreshold, inactiveDays…
  2. Fetch Customer Data (HTTP Request): calls an HTTP API
  3. Calculate Churn Signals (Code): runs custom JavaScript code
  4. Check Churn Risk (If): checks a condition and branches into true / false
  5. Fetch Sentiment Data (HTTP Request): calls an HTTP API
  6. Fetch Product Usage Analytics (HTTP Request): calls an HTTP API
  7. Merge: merges the data from its input branches
  8. Segment by Risk Level (Switch): routes items into 2 branches
  9. High Risk Strategy Agent (AI Agent): runs an AI agent, with model: OpenAI Chat Model; 1 tool (MCP Client Tool); output parser: Structured Output Parser
  10. Wait: pauses until webhook

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

Services it uses

OpenAI Chat ModelMCP ClientGmailHTTP Request

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 (15)

From the author

HOW IT WORKS This workflow automates end-to-end data intelligence processing by ingesting structured data (CSV, JSON), enriching it through multiple AI analysis pathways, and generating actionable insights. Designed for business analysts, data scientists, and…

Excerpt from Cheng Siong Chin'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.