Generate Salesforce opportunity next steps with Gemini and Slack
Ready for 3.0Ready 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.
Nodes used (10)
- Code
n8n-nodes-base.code - Edit Fields (Set)
n8n-nodes-base.set - Filter
n8n-nodes-base.filter - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Salesforce
n8n-nodes-base.salesforce - Schedule Trigger
n8n-nodes-base.scheduleTrigger - AI Agent
@n8n/n8n-nodes-langchain.agent - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Slack Tool
n8n-nodes-base.slackTool - Salesforce Tool
n8n-nodes-base.salesforceTool
What it does
Quick Overview This workflow runs daily at 10:00 AM to find open Salesforce Opportunities with no Next Step, generates a recommended next action with Google Gemini, posts it to Slack, and updates the Opportunity’s Next Step field back in Salesforce. How it works 1. Runs every day at 10:00 AM on a schedule trigger. 2. Fetches all Salesforce Opportunities, reverses the list, and processes them in batches of 10. 3. Retrieves key fields, filters to opportunities that are not Closed Won/Lost, have a close date on/after today, and have a blank Next Step. 4. Builds a per-opportunity prompt containing the main deal details for an AI sales assistant. 5. Processes opportunities one at a time and uses Google Gemini to generate a 1–2 sentence next-step recommendation. 6. Posts the AI-generated recommendation to a specified Slack channel and updates the Opportunity’s Next Step field in Salesforce. Setup 1. Connect Salesforce OAuth2 credentials with permission to read Opportunities and update the Opportunity Next Step field. 2. Add Google Gemini (Google PaLM) API credentials for the Gemini chat model used by the agent. 3. Add Slack credentials and select the channel where recommendations should be posted. 4. Confirm your Salesforce Opportunity fields used in the prompt (for example DeliveryInstallationStatusc) exist in your org or adjust the prompt accordingly. 5. Review or change the schedule time (daily at 10:00 AM) to match your timezone and preferred cadence.