This agent runs autonomously inside Salesforce Agentforce. It triggers on every new inbound lead, executes a complete intelligence pass via the Lusha API, makes routing decisions based on ICP fit, and delivers a fully contextualized lead to the right rep — all without human intervention.
1
Trigger — New Lead created in Salesforce
The Agentforce agent fires the moment a new Lead record is created — from a web form, an inbound integration, a CRM import, or a manual entry. The agent immediately begins its intelligence pass without waiting for a rep to open the record.
2
Action — Enrich contact via Lusha
The agent calls Lusha’s /v2/contacts/search endpoint with the lead’s email address. Lusha returns the verified contact profile — current title, seniority, department, verified email, direct dial, and mobile. If the contact has departed their listed company, the agent flags the lead for manual review rather than continuing the automated flow.
3
Action — Enrich company and check buying signals
In parallel, the agent calls Lusha’s /v2/companies/search endpoint to pull the full company profile — industry, employee count, revenue range, funding stage, tech stack — and Lusha’s signals endpoint to check for active buying signals at the account. Both calls run simultaneously to minimize latency.
4
Action — Score lead against ICP
Using the enriched firmographic data, the agent scores the lead against your ICP criteria — industry, size, funding stage, seniority, geography. Must-have failures assign a Low score immediately. Passing leads are scored High, Medium, or Low based on weighted criteria. The score is written to the Lead record along with the individual criterion results.
5
Action — Route lead to correct rep or queue
Based on ICP score, the agent assigns the Lead to the correct owner. High-fit leads go directly to a senior AE matched by territory or industry. Medium-fit leads go to the SDR queue for qualification. Low-fit leads go to nurture. The routing logic is fully configurable to match your team structure and territory model.
6
Action — Generate pre-call brief
Using the enriched contact profile, company data, ICP score, and buying signals, the agent generates a pre-call brief and writes it to the Lead record. The brief includes who the contact is, what their company does, why the lead scored the way it did, and the top signal firing at the account right now — ready for the rep before they make the first call.
7
Output — Rep notified via Slack with full context
The agent fires a Slack notification to the assigned rep with the lead name, company, ICP score, top signal, verified direct dial, and a link to the Salesforce record. The rep receives everything they need to make an informed first call — within 60 seconds of the lead submitting a form.
What you’ll get back
Within 60 seconds of a form submission, the rep receives this in Slack:
🟢 New high-fit inbound lead — assigned to you
Contact: R.M. — VP of Sales
Company: [Company A] — Revenue Intelligence / SaaS
Employees: 280–320 · Series B · Austin, TX
ICP score: High — matches 5 of 5 criteria
Top signal: Series B closed $22M — 11 days ago
Direct dial: +1 512 555 ••••
Verified email: r.m@[company].com
Pre-call brief: R.M. is VP of Sales at [Company A], a Series B Revenue Intelligence company that just closed $22M. They have 8 SDR roles posted and an intent signal on prospecting data at score 74. Strong ICP fit — matches your best customers on industry, size, and funding stage. Call today — the timing window is open.
Open lead in Salesforce →
And the Lead record in Salesforce looks like this:
| Salesforce field | Value |
|---|
| Title | VP of Sales ✓ Lusha verified |
| Seniority | VP |
| Direct dial | +1 512 555 •••• |
| Industry | Revenue Intelligence / SaaS |
| Employees | 280–320 |
| Funding stage | Series B |
| Lusha ICP score | High |
| Lusha top signal | Series B closed — $22M — 11 days ago |
| Lusha pre-call brief | VP of Sales, Series B, 8 SDR roles posted, intent score 74 on prospecting data. Call today. |
| Lead owner | [AE name] — auto-assigned |
| Agent run time | 47 seconds |
| Lusha enriched | [date] ✓ |
Build it
Step 1 — Complete Workflows 1 and 2 first
This agent builds on the foundations established in the first two workflows in the series. Before building the full agent, confirm that the custom fields from Workflow 1 and Workflow 2 are in place on your Lead and Contact objects. The agent uses those fields as its output targets.
Step 2 — Add pre-call brief field to the Lead object
In Salesforce Setup, go to Object Manager → Lead → Fields & Relationships. Add one additional custom field:
| Field label | Field type | API name |
|---|
| Lusha — Pre-call brief | Long Text Area | Lusha_Pre_Call_Brief__c |
| Lusha — Top signal | Text | Lusha_Top_Signal__c |
| Lusha — Agent run time | Number (seconds) | Lusha_Agent_Run_Time__c |
Step 3 — Create the Agentforce agent in Salesforce
In Salesforce Setup, go to Agentforce → Agents → New Agent. Configure as follows:
- Agent name: Lusha Inbound Lead Agent
- Agent type: Autonomous
- Primary object: Lead
- Trigger: Record created
- Entry condition: LeadSource is not null (or remove condition to run on all new leads)
Step 4 — Add Agent Actions
In the Agent Builder, add the following actions in sequence:
| Step | Action type | Configuration |
|---|
| 1 | HTTP Callout | POST /v2/contacts/search — input: Lead.Email — output: contact profile fields |
| 2a | HTTP Callout (parallel) | POST /v2/companies/search — input: Lead.Company — output: firmographic fields |
| 2b | HTTP Callout (parallel) | GET /v2/companies/signals — input: company domain — output: signal array |
| 3 | Decision | Contact status = Departed → flag for manual review and stop. Contact confirmed → continue |
| 4 | Prompt Template | ICP scoring logic — evaluate enriched fields against ICP criteria, return score and reasons |
| 5 | Assignment | Map ICP score to lead owner using territory and seniority routing table |
| 6 | Prompt Template | Pre-call brief generation — combine contact profile, company data, score, and top signal into a brief |
| 7 | Update Records | Write all enriched fields, ICP score, top signal, and pre-call brief to Lead record |
| 8 | Slack Notification | Send formatted message to assigned rep with lead summary and Salesforce link |
Step 5 — Configure the ICP scoring Prompt Template
In Salesforce Setup, go to Prompt Builder → New Prompt Template. Create a template that takes the enriched lead fields as inputs and returns an ICP score and reason. A starting template:
You are an ICP scoring agent. Score the following lead against
the ICP criteria below and return a JSON object with score
(High/Medium/Low), criteria_met (array), criteria_failed
(array), and reason (one sentence).
ICP criteria:
- Industry must be: {ICP_INDUSTRIES}
- Employee count must be between: {ICP_MIN_EMPLOYEES} and
{ICP_MAX_EMPLOYEES}
- Funding stage must be: {ICP_FUNDING_STAGES}
- Seniority must be: {ICP_SENIORITY_LEVELS}
- Geography must be: {ICP_GEOGRAPHIES}
Lead data:
- Industry: {Lead.Industry}
- Employees: {Lead.Lusha_Employee_Count__c}
- Funding stage: {Lead.Lusha_Funding_Stage__c}
- Seniority: {Lead.Lusha_Seniority__c}
- Country: {Lead.Country}
Return only valid JSON. No preamble.
Step 6 — Configure the pre-call brief Prompt Template
Create a second Prompt Template that generates the pre-call brief:
Write a pre-call brief for a sales rep in under 60 words.
Use only the data provided. Be specific. No generic phrases.
Contact: {Lead.FirstName} {Lead.LastName},
{Lead.Lusha_Seniority__c} at {Lead.Company}
Company: {Lead.Industry}, {Lead.Lusha_Employee_Count__c}
employees, {Lead.Lusha_Funding_Stage__c}
ICP score: {Lead.Lusha_ICP_Score__c}
Top signal: {Lead.Lusha_Top_Signal__c}
Score reason: {Lead.Lusha_Score_Reason__c}
Return the brief as plain text only.
Step 7 — Configure the Slack notification
In the Agent Builder, add a Slack Notification action as the final step. Configure the message template to include the lead name, company, ICP score, top signal, direct dial, verified email, pre-call brief, and a deep link to the Salesforce Lead record. Send to the assigned rep’s Slack user ID, retrieved from the Lead.Owner field.
Step 8 — Test end to end
Create a test lead with a known email address. Monitor the agent run in Agentforce → Agent Runs to confirm each action completes successfully. Verify the Lead record is fully enriched, the ICP score is correct, the pre-call brief reads naturally, and the Slack notification arrives with all fields populated. Target run time under 60 seconds. Full troubleshooting guidance at docs.lusha.com/guides.
What this agent replaces
| Manual step | Time saved per lead | Agent action |
|---|
| Rep manually enriches contact in Lusha | 3–5 minutes | Automatic on lead creation |
| Rep researches company in CRM and LinkedIn | 5–10 minutes | Automatic on lead creation |
| Manager triages and routes lead manually | 2–5 minutes | Automatic ICP scoring and routing |
| Rep checks for account signals before calling | 3–8 minutes | Automatic signal check and brief |
| Rep writes pre-call notes before first call | 5–10 minutes | Automatic brief generation |
| Total per lead | 18–38 minutes | Under 60 seconds |
The full Lusha for Salesforce series
This agent is the seventh and final workflow in the series. Each workflow stands alone — build one or build all seven.
Together they give you a fully autonomous Lusha-powered Salesforce stack:
- Auto-enrich new leads with Lusha inside Salesforce Agentforce →
- Score and route leads by ICP fit →
- Alert reps when a key contact changes roles →
- Surface buying signals on open deals →
- Enrich and score accounts on a scheduled cadence →
- Enrich contacts before a Salesforce campaign goes out →
Example outputs in this workflow are illustrative — they reflect the structure, fields, and format of real Lusha API output, but were not pulled from a live session. Build this workflow with your own Lusha API key and Salesforce org to see live results.