Templates / Predict Salesforce deal escalation risk with Gemini and Slack alerts

Predict Salesforce deal escalation risk with Gemini and Slack alerts

Ready for 3.0

by WeblineIndia ✓ · 14 views · created 2026-07-13 · 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 AI workflow has 14 nodes and runs manually, when you click “Execute workflow”. Along the way it connects Salesforce, Slack and Google Gemini.

How it runs

Trigger: Manually, when you click “Execute workflow”.

  1. Fetch Open Opportunities (Salesforce): get many (opportunity)
  2. Fetch Recent Activities (Last 30 Days) (Salesforce): work with search
  3. Map Opportunities with Activities (Merge): merges the data from its input branches
  4. Build Deal Context for Risk Analysis (Code): runs custom JavaScript code
  5. Loop Over Opportunities (Loop Over Items (Split in Batches)): loops over the items in batches
  6. Filter: High Probability & Active Deals (If): checks a condition and branches into true / false
  7. Prevent API Overload (Wait): waits 3 seconds
  8. Predict Deal Escalation Risk (Google Gemini): uses Google Gemini
  9. Clean & Validate AI Response (Code): runs custom JavaScript code
  10. Check Risk level (If): checks a condition and branches into true / false

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

Services it uses

SalesforceSlackGoogle Gemini

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.

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (10)

From the author

Quick overview This workflow pulls open Salesforce opportunities and their last-30-days activities, uses Google Gemini to predict escalation risk per deal, then flags high-risk opportunities in Salesforce and notifies a Slack user. How it works 1. Starts…

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.