Assess sales-to-execution handover risk in Salesforce with OpenAI
Ready for 3.0What this workflow does
This AI workflow has 35 nodes and runs on Salesforce events (opportunity updated). Along the way it connects Salesforce and OpenAI.
How it runs
Trigger: On Salesforce events (opportunity updated).
- Get Opportunity (Salesforce): get (opportunity)
- Is Opportunity Closed Won? (If): checks a condition and branches into true / false
- Initialize Handover (Code): runs custom JavaScript code
- Mark Handover Processing (Salesforce): update (opportunity)
- Get Opportunity Products (Salesforce): work with search
- Get Account (Salesforce): get (account)
- Get Opportunity Contacts (Salesforce): work with search
- Build CRM Evidence (Code): runs custom JavaScript code
- Validate CRM Evidence (If): checks a condition and branches into true / false
- Find Opportunity Files (Salesforce): work with search
…plus 24 more steps. See the full node list below.
Services it uses
Other Salesforce + OpenAI templates (24)
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (7)
- Salesforce
n8n-nodes-base.salesforce - If
n8n-nodes-base.if - Code
n8n-nodes-base.code - Extract from File
n8n-nodes-base.extractFromFile - OpenAI
@n8n/n8n-nodes-langchain.openAi - HTTP Request
n8n-nodes-base.httpRequest - Salesforce Trigger
n8n-nodes-base.salesforceTrigger
From the author
Quick overview This workflow polls Salesforce Opportunity updates, validates Closed Won deals, pulls CRM data and attached PDF files, uses OpenAI to extract contractual commitments, scores conflicts and evidence gaps, and then updates Salesforce with a…