Enrich a Lead and Log It in Salesforce

For a rep who gets a name or a LinkedIn URL and needs that record in Salesforce with context — not 10 minutes of copy-paste. One prompt pulls the profile, checks for an existing Contact or Account, creates the Lead (or links the Contact to the right Opportunity), and logs an Activity with a real hook.

LinkedIn logoLinkedIn
Salesforce logoSalesforce
THE GRIND

Ten tabs per lead

Researching a lead by hand means jumping between LinkedIn, Google, and Salesforce — and half the time the Account it should attach to is the one someone else already created.

LinkedIn → tab → Salesforce search → copy-paste → back to LinkedIn

Duplicate Leads and Contacts because nobody checked first

Activities and recent signals never get logged, so follow-ups land cold

Composio collapses all of this into one prompt — here's what that looks like.

THE FLOW
5 steps · 2 toolkits

Your agent runs it end-to-end.

  1. 01
    Fetch the LinkedIn profile — name, role, company
    linkedin logo
  2. 02
    Pull the 2–3 most recent posts or activity as context hooks
    linkedin logo
  3. 03
    Search Salesforce for an existing Lead, Contact, or Account match
    salesforce logo
  4. 04
    Create the Lead (or Contact on the Account) with enriched firmographics
    salesforce logo
  5. 05
    Log an Activity on the Opportunity with the recent-signal hook
    salesforce logo
THE PAYOFF

Lead logged, warm, and linked

Every lead lands in Salesforce clean — linked to the right Account, tied to an Opportunity if there is one, with an Activity that gives your next rep the thread to pull.

Paste this into Claude, Cursor, or Codex. It'll install the CLI, connect your apps, and run the task — end to end.