Your sales team gets a new lead in Salesforce. The company name means nothing to them. The industry field is blank. The phone number bounces. Someone spends twenty minutes on LinkedIn trying to figure out if this prospect is worth a call. By the time they have an answer, the lead is three days old and already talking to a competitor.
That gap between the lead appearing and the rep knowing what to do with it is where deals go cold. The fix is not a bigger team or more training. It is a workflow that enriches every lead automatically the moment it hits Salesforce, before a human even opens the record.
At Supernodes, we build these pipelines regularly. The combination of Salesforce as your source of truth, Claude for intelligent enrichment, and n8n as the connective tissue turns that twenty-minute LinkedIn session into a two-second API call.
What you will need
- A Salesforce account with API access (any tier works)
- An n8n instance (self-hosted is free and recommended)
- A Claude API key from Anthropic
- Slack incoming webhook (optional but recommended for notifications)
Step 1: Connect Salesforce to n8n and trigger on new leads
n8n has a built-in Salesforce node that handles authentication via OAuth2. Create a new workflow and add a Salesforce trigger node set to "New Lead." Configure it to watch the Lead object and fire when a record is created.
Salesforce trigger node
Set the trigger to poll every 5 minutes. In n8n, go to the Salesforce node settings, select "Lead" as the Object, set "Create" as the trigger event, and choose the fields you want to enrich against. Keep it to: Company, Title, Industry, Phone, and Email. You do not need every field.
Test the trigger by creating a test lead in Salesforce. n8n should pick it up within the polling interval. Once you see the test lead appear in the n8n execution log, the connection is working. The n8n Salesforce node documentation covers authentication setup in detail if you run into OAuth issues.
Step 2: Send lead data to Claude for enrichment
Add an HTTP Request node after the Salesforce trigger. Configure it to call https://api.anthropic.com/v1/messages with the Claude API key in the Authorization header.
The prompt you send Claude should include the lead's available fields and ask for enrichment data. Keep the prompt tight so each call runs fast and costs roughly 0.5 cents.
Claude enrichment prompt
You are a lead enrichment assistant. Given the following lead data, extract:
1. Company size category (startup, mid-market, enterprise)
2. Role seniority (junior, manager, director, VP, C-level)
3. Likely buying intent for marketing automation tools (low, medium, high)
4. Industry vertical
Lead data:
Company: {{company}}
Title: {{title}}
Industry: {{industry}}
Respond with JSON only:
{"company_size": "...", "seniority": "...", "buying_intent": "...", "industry_vertical": "..."}
Set the HTTP Request node to parse the response as JSON. n8n's built-in JSON extractor will pull the structured fields out of Claude's response automatically.
Step 3: Add scoring logic
Add an n8n Switch node after the HTTP Request. Create rules that assign a lead score based on the combination of seniority, company size, and buying intent that Claude returned.
Lead score assignment
Route leads through a Set node that calculates the score. A C-level executive at an enterprise company with high buying intent might score 95. A junior title at a small company with low intent might score 15. Store the score in a new field called "AI_Lead_Score__c" that you will write back to Salesforce.
A rough scoring matrix that works well in practice: start with 50 points base, add 20 for C-level or VP, add 15 for mid-market or enterprise company size, add 15 for high buying intent. That gives you a 0 to 100 scale that reps can interpret immediately. Anthropic's prompt engineering guide has useful patterns if you want to refine how Claude scores leads further.
Step 4: Route the lead to the right rep
Add a second Salesforce node to update the original lead record. Write the AI_Lead_Score__c field, the enriched company size, seniority, and buying intent back to the Salesforce record. Then add a Slack node to notify the right rep based on territory.
Slack routing
Use n8n's Slack node with a webhook URL. Customise the message to include the lead name, company, AI score, and a direct link to the Salesforce record. If you have territory-based routing, use an n8n Switch node to pick the right Slack channel before the notification.
The message in Slack should give the rep everything they need to decide whether to call: the lead's name, company, role, AI score, and enriched buying intent. No more clicking through to Salesforce to find out if a lead is worth their time. For more on building AI enrichment pipelines, see our guide on AI lead enrichment for B2B prospecting and the lead qualification agent with Claude and n8n.
What changes when it is wired up
Before this workflow: a lead sits in Salesforce for hours or days. A rep manually researches it, or they do not. Response time depends on who notices the new record first.
After this workflow: every lead is enriched, scored, and routed within five minutes of creation. The rep gets a Slack notification with all the context they need. They call the high-scoring leads immediately and the low-scoring leads get a nurture sequence instead of a cold call that annoys someone.
The companies that get this right see real improvements in response time. Harvard Business Review research shows that firms contacting leads within an hour are seven times more likely to qualify them than those waiting even a day. A five-minute enrichment window keeps you in that first hour consistently.
Frequently asked questions
Do I need developer skills to set this up?
Basic familiarity with Salesforce objects and n8n workflows is helpful but you do not need to be a developer. n8n's visual editor makes it accessible to sales operations leads. If you have ever built a formula field in Salesforce, you can build this workflow.
Will this work with Salesforce Lightning and Classic?
Yes. n8n's Salesforce node works with both Lightning and Classic. The API endpoints are the same regardless of the UI version you use.
How much does the n8n workflow cost to run?
n8n offers a free self-hosted option. The Claude API calls cost roughly 0.5 cents per lead enrichment. For a team processing 200 leads a month, that is about one dollar. The Slack node is free. The only ongoing cost is Claude API usage.
Can I replace Claude with another AI model?
Yes. The n8n HTTP Request node works with any OpenAI-compatible API. You can swap Claude for ChatGPT, Gemini or any other model by changing the endpoint and API key. The prompt structure stays the same.