Detect and escalate Salesforce bottlenecks with Gemini, Slack, Gmail
Ready for 3.0What this workflow does
This AI workflow has 17 nodes and runs on a schedule (every day at 09:00). Along the way it connects Salesforce, Google Gemini Chat Model, Slack and Gmail and 1 more.
How it runs
Trigger: On a schedule (every day at 09:00).
- Fetch Opportunity Tasks (SOQL) (Salesforce): work with search
- Fetch Open Opportunities (Salesforce): work with search
- Merge: merges the data from its input branches
- Detect Bottlenecks and SLA Breaches (Code): runs custom JavaScript code
- Check Bottleneck Found (If): checks a condition and branches into true / false
- Prepare Bottleneck Fields (Edit Fields (Set)): sets 15 fields: opportunity_id, task_id, opportunity_name…
- Generate Bottleneck Summary (AI) (Basic LLM Chain): sends a prompt to an LLM, with model: Google Gemini Chat Model
- Merge: merges the data from its input branches
- Parse AI Output (Code): runs custom JavaScript code
- Prepare Notification and Update Fields (Edit Fields (Set)): sets 3 fields: salesforce_update_note, bottleneck_status, last_bottleneck_check
…plus 4 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other Google Sheets + Slack templates (1,314) · Other Gmail + Slack templates (957)
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 (12)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Salesforce
n8n-nodes-base.salesforce - Merge
n8n-nodes-base.merge - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Slack
n8n-nodes-base.slack - Edit Fields (Set)
n8n-nodes-base.set - Gmail
n8n-nodes-base.gmail - Google Sheets
n8n-nodes-base.googleSheets - No Operation, do nothing
n8n-nodes-base.noOp
From the author
Quick overview This workflow runs daily to scan open Salesforce opportunities and related tasks, detect overdue or high-priority internal dependencies, generate an AI-written escalation summary with Google Gemini, and then notify stakeholders via Slack and…