Classify Salesforce deal complexity and notify sales with Groq and Slack
Ready for 3.0What this workflow does
This AI workflow has 16 nodes and runs on Salesforce events (opportunity created). Along the way it connects Salesforce, Groq Chat Model and Slack.
How it runs
Trigger: On Salesforce events (opportunity created).
- Fetch Opportunity Details (Salesforce): work with search
- Check If Not Processed (If): checks a condition and branches into true / false
- Prepare Opportunity Data (Code): runs custom JavaScript code
- Send No Data Notification (Slack) (Slack): uses Slack
- Fetch Related Contacts (Salesforce): get many (contact)
- Fetch Opportunity Products (Salesforce): work with search
- Combine Contacts & Products (Merge): merges the data from its input branches
- Calculate Deal Metrics (Code): runs custom JavaScript code
- Classify Deal Complexity (AI) (AI Agent): runs an AI agent, with model: AI Model (Groq)
- Parse AI Response (Code): runs custom JavaScript code
…plus 4 more steps. See the full node list below.
Services it uses
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 (9)
- Salesforce Trigger
n8n-nodes-base.salesforceTrigger - Salesforce
n8n-nodes-base.salesforce - If
n8n-nodes-base.if - Code
n8n-nodes-base.code - Merge
n8n-nodes-base.merge - AI Agent
@n8n/n8n-nodes-langchain.agent - Groq Chat Model
@n8n/n8n-nodes-langchain.lmChatGroq - Slack
n8n-nodes-base.slack - Edit Fields (Set)
n8n-nodes-base.set
From the author
Quick overview This workflow monitors new Salesforce opportunities, enriches them with related contacts and products, uses Groq-hosted LLM analysis to classify deal complexity, then updates Salesforce with a processed flag, creates a follow-up task, and posts…