Templates / Generate Salesforce opportunity next steps with Gemini and Slack

Generate Salesforce opportunity next steps with Gemini and Slack

Ready for 3.0

by WeblineIndia ✓ · 129 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-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This AI workflow has 13 nodes and runs on a schedule (every day at 10:00). Along the way it connects Salesforce, Google Gemini Chat Model and Slack.

How it runs

Trigger: On a schedule (every day at 10:00).

  1. Fetch all opportunities (Salesforce): get many (opportunity)
  2. Reverse opportunities (Code): runs custom JavaScript code
  3. Fetch opportunity data in batch of (Loop Over Items (Split in Batches)): loops over the items in batches
  4. Get required fields (Edit Fields (Set)): sets 14 fields: Id, Name, StageName…
  5. Get an opportunity data (Salesforce): get (opportunity)
  6. Get the open opportunities (Filter): keeps only the items that match a condition
  7. Create Prompt for each opportunity (Code): runs custom JavaScript code
  8. Get & update next step in batch of (Loop Over Items (Split in Batches)): loops over the items in batches
  9. Next step update - Agent (AI Agent): runs an AI agent, with model: Gemini; 2 tools (Slack, Update an opportunity in Salesforce)

Services it uses

SalesforceGoogle Gemini Chat ModelSlack

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 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…

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.