Score customer churn risk and send save-play emails with Claude and Gmail
Ready for 3.0What this workflow does
This AI workflow has 11 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects Anthropic Chat Model and Gmail.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Normalize Signals (Edit Fields (Set)): sets 10 fields: customer_id, customer_name, email…
- AI Churn Score (AI Agent): runs an AI agent, with model: Claude Sonnet 4.; output parser: Churn Score Schema
- Shape Health Record (Edit Fields (Set)): sets 12 fields: customer_id, customer_name, email…
- Log to Health Table (Data table): uses Data table
- Route by Risk (Switch): routes items into 2 branches
- Send Save-Play Email (Gmail): uses Gmail
- Send Nurture Email (Gmail): uses Gmail
Services it uses
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 (9)
- Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - AI Agent
@n8n/n8n-nodes-langchain.agent - Anthropic Chat Model
@n8n/n8n-nodes-langchain.lmChatAnthropic - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Data table
n8n-nodes-base.dataTable - Switch
n8n-nodes-base.switch - Gmail
n8n-nodes-base.gmail - No Operation, do nothing
n8n-nodes-base.noOp
From the author
Quick overview Catch at-risk paying customers before they cancel. This workflow receives customer health signals through a webhook, scores churn risk from 0–100 with Claude, logs every account to a data table, and automatically sends a personalized save-play…