Templates / Score customer health and churn risk with Salesforce, Gemini, and Gmail

Score customer health and churn risk with Salesforce, Gemini, and Gmail

Ready for 3.0

by WeblineIndia ✓ · 50 views · created 2026-06-30 · 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-10-19.

What this workflow does

This AI workflow has 27 nodes and runs on a schedule (every minute) (plus 1 other trigger). Along the way it connects Salesforce, Gmail and Google Gemini. It also calls dummyjson.com over HTTP.

How it runs

Trigger: On a schedule (every minute) (plus 1 other trigger).

  1. Salesforce: get many (account)
  2. Alert - Error Notification (Gmail): uses Gmail
  3. Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
  4. Init Retry Code (Code): runs custom JavaScript code
  5. Decision - Circuit Breaker (If): checks a condition and branches into true / false
  6. ERP - Fetch Orders (HTTP Request): calls an HTTP API
  7. Fallback - Fetch Orders Backup (HTTP Request): calls dummyjson.com
  8. Decision - Orders Success (If): checks a condition and branches into true / false
  9. ERP - Fetch Payments (HTTP Request): calls an HTTP API
  10. Wait: waits 3 seconds

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

Services it uses

SalesforceGmailGoogle Gemini

HTTP calls to: dummyjson.com

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

From the author

Quick Overview This workflow runs every minute to pull accounts from Salesforce, enrich each customer with order, payment, support, and marketing data via HTTP APIs, analyze the combined profile with Google Gemini, then update the Salesforce account and send…

Excerpt from WeblineIndia'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.