n8n Workflow: B2B Churn Risk Alerts from Google Sheets to Slack
n8n Workflow: B2B Churn Risk Alerts from Google Sheets to Slack
Regular price
£23.99
Regular price
£23.99
Sale price
Unit price
/
per
⬇
Instant Digital Download
∞
Unlimited Downloads
★
Lifetime Access in Your Account
Couldn't load pickup availability
🔥
128+ Sold
Popular with n8n builders
⚡
23 people viewing
High interest right now
✅
9 added today
Fast-moving digital product
n8n Workflow: B2B Churn Risk Alerts from Google Sheets to Slack
Regular price
£23.99
Regular price
£23.99
Sale price
Unit price
/
per
Detect B2B churn risk anomalies from Google Sheets and alert reps in Slack (with Gemini)
This n8n workflow scans new B2B order rows in Google Sheets every day, compares them against account baseline metrics, and triggers churn-risk alerts to Slack and Gmail—with a structured risk assessment generated by Google Gemini.
What this workflow does
- Runs daily at 2:00 AM on a schedule.
- Reads unprocessed orders from the Google Sheets sheet Orders_Ingest, and proceeds only when an order_id is present.
- Loads account baseline metrics from Account_Baselines, joins each order to its account_id baseline, and ignores Tier-3 accounts.
- Calculates churn-signal anomaly checks (e.g., volume, cadence, and core-SKU-mix mix anomalies) and keeps only orders that match at least one anomaly rule.
- Suppresses repeat alerts when the account’s last alert date is within a configured cooldown window.
- For qualifying accounts, sends order + baseline context to Google Gemini to classify risk, propose a primary hypothesis, and return two sales talking points as structured JSON.
- Posts the alert to Slack, emails the assigned rep via Gmail, appends an audit entry to Alert_Audit_Log, updates last_alert_date in Account_Baselines, and marks the order as processed in Orders_Ingest.
Use cases
- Catch early churn risk after sudden drops in order volume or cadence.
- Flag account changes in core SKU mix before customer outcomes worsen.
- Send targeted churn alerts to sales with AI-generated talking points and auditability.
Technical details
- Google Sheets: Service Account credentials + sheet reads/writes (Orders_Ingest, Account_Baselines, Alert_Audit_Log)
- Google Gemini: Chat model for structured churn risk assessment (JSON output)
- Slack: Alert posting
- Gmail: Emailing the assigned rep
- Core workflow logic: if, set, code, no op, and limit nodes
Ideal for n8n automation engineers and SaaS operators building churn monitoring and B2B risk alerts pipelines.
