Guide

Enrich and score accounts on a scheduled cadence — Lusha in Salesforce Agentforce

Time to build: 45 min
Difficulty: Medium
Tools: Lusha ▪ Salesforce

This Salesforce Scheduled Flow refreshes your accounts with the Lusha API every week. It updates firmographics, verifies each account’s primary contact, flags meaningful changes, and recalculates the ICP score, so reps, campaigns, and AI agents work from current data.

Requires: Lusha API key · Salesforce Flow Builder · Salesforce admin access

Why refresh Salesforce account data on a schedule?

Account data goes stale fast. Companies grow, raise new rounds, and move, and contacts change roles or leave. None of that reaches Salesforce unless someone updates it by hand, and that rarely happens.

This workflow does it on a weekly schedule. Every account gets current firmographics, a verified primary contact, and an up-to-date ICP score, and your team only reviews the accounts where something important changed.

What this workflow does

  • Runs every Monday as a Salesforce Scheduled Flow
  • Picks accounts that were never enriched or were last enriched more than 30 days ago
  • Refreshes industry, employee count, revenue range, funding stage, HQ, and tech stack from Lusha
  • Flags significant changes, like a big headcount shift or a new funding stage, and logs them on the account
  • Verifies each account’s primary contact and flags departures and title changes
  • Recalculates the ICP score with the updated data

Example: what you’ll get back

These example outputs are illustrative. They follow the structure and fields of real Lusha API output, but weren’t pulled from a live session.

Account record — before weekly enrichment

Salesforce fieldValue
IndustryTechnology (manually entered, unverified)
Employees85 (entered 14 months ago)
Revenue rangeblank
Funding stageSeries A (entered 14 months ago)
Lusha ICP scoreMedium (scored 14 months ago)
Lusha enriched date14 months ago
Primary contact statusUnknown

Account record — after weekly enrichment

Salesforce fieldValue
IndustryRevenue Intelligence / SaaS ✓ Lusha verified
Employees280–320 ⚑ changed from 85
Revenue range$10M–$50M ✓ Lusha verified
Funding stageSeries B ⚑ changed from Series A
Tech stackSalesforce, Outreach, Gong
HQAustin, TX ✓ Lusha verified
Lusha ICP scoreHigh ⚑ upgraded from Medium
Lusha change logEmployees 85→280 · Funding A→B · ICP Medium→High · [date]
Lusha enriched date[today] ✓
Primary contact status✓ Confirmed in seat

Weekly enrichment summary

MetricThis week
Accounts processed142
Firmographic updates applied38
ICP score changes12 — 8 upgraded, 4 downgraded
Contacts verified142
Departures detected6
Title changes detected9
Accounts flagged for rep review14

How to set it up

01

Add enrichment tracking fields to Salesforce

In Salesforce Setup, go to Object Manager → Account → Fields & Relationships. Add the following custom fields:

Field labelField typeAPI name
Lusha — Enriched dateDate/TimeLusha_Enriched_Date__c
Lusha — Employee countNumberLusha_Employee_Count__c
Lusha — Revenue rangeTextLusha_Revenue_Range__c
Lusha — Funding stageTextLusha_Funding_Stage__c
Lusha — Tech stackLong Text AreaLusha_Tech_Stack__c
Lusha — ICP scorePicklist (High / Medium / Low)Lusha_ICP_Score__c
Lusha — Change logLong Text AreaLusha_Change_Log__c
Lusha — Flagged for reviewCheckboxLusha_Flagged__c

On the Contact object, also add Lusha — Last verified (Date/Time, Lusha_Last_Verified__c).

02

Connect Salesforce to the Lusha API

In Salesforce Setup, create a Named Credential for https://api.lusha.com and send your Lusha API key in the api_key header. The Flow’s HTTP Callout actions use it to call Lusha.

03

Build the Scheduled Flow

In Salesforce Flow Builder, create a new Scheduled Flow:

  • Schedule: Weekly, Monday at 5am
  • Get Records: Account records where Lusha_Enriched_Date__c is empty or earlier than 30 days ago (use the formula TODAY() - 30)
  • Loop: iterate through each account in batches of 200
  • For each account: HTTP Callout to POST https://api.lusha.com/v3/companies/search-and-enrich with the account’s website domain or company name
  • Compare the response with the existing Salesforce fields and flag significant changes
  • Update Records: write the refreshed firmographics, update the ICP score, append to the change log, and set Lusha_Enriched_Date__c to now. If Lusha finds no match, write “no match” to the change log and still set the date.
  • Second callout: POST https://api.lusha.com/v3/contacts/search-and-enrich to verify the primary contact, then set Lusha_Last_Verified__c on the contact
  • Decision: if a significant change is detected, set Lusha_Flagged__c = true for rep review
  • Save the Flow, and activate it after you test it in step 6
04

Build a flagged accounts list view

In Salesforce, create a new Account list view filtered by Lusha_Flagged__c = true. Add the Lusha change log and ICP score fields to the view columns. This gives reps and managers a weekly review queue — accounts where something meaningful changed and human review is warranted before the next outreach or call.

05

Set up a weekly enrichment summary report

In Salesforce Reports, create a summary report on the Account object grouped by Lusha_ICP_Score__c and filtered by Lusha_Enriched_Date__c in the last 7 days. Add columns for employee count change, funding stage, and flagged status. Schedule the report to run Monday morning after the Flow completes and email it to the RevOps team — a weekly data quality digest without any manual effort.

06

Test with a sample batch

Before activating at full scale, test the Flow on a filtered subset — accounts in a specific territory or industry. Confirm the enrichment fields populate correctly, the change log appends without overwriting, and the ICP score recalculates based on updated data. Full troubleshooting guidance at docs.lusha.com/guides.

FAQ

  • Use this Salesforce Scheduled Flow. It runs every week, refreshes each account with the Lusha API, flags significant changes, and recalculates the ICP score.

  • Accounts that have never been enriched by Lusha or were last enriched more than 30 days ago. Accounts enriched more recently are skipped.

  • You set the thresholds in the Flow Decision element. A good starting point is an employee count change of more than 20%, a new funding stage, a changed ICP score, or a departed primary contact.

  • The Flow writes “no match” to the change log and updates the enriched date, so the account isn’t retried every week. Existing Salesforce fields aren’t changed.

  • The 30-day rule skips accounts that were enriched recently. For large databases, run the first pass on accounts with open opportunities, then on named accounts, then on the rest.

Ready to run this?

One data connection. Works in Claude, ChatGPT, your CRM, or any agent you build.