Hyper-Personalized LinkedIn Outreach with Claude Code

Find leads, score them with AI, and send value-driven messages that start real conversations. A 3-part system for non-technical people.

1

Find Leads

Sales Navigator + Apify scraping

2

Score Leads

Claude Code ranks by fit

3

Send Value

Personalized outreach with free deliverables

Part 1: Find & Collect Leads

Use LinkedIn Sales Navigator to build a targeted lead list, then scrape it with Apify.

1
Set Up LinkedIn Sales Navigator
  1. You need a LinkedIn Sales Navigator subscription. It's the only reliable way to do advanced lead searches on LinkedIn.
  2. Create a Lead Search with your ideal client profile (ICP). For example:
    • Location: United States
    • Title: Founder, CEO, Owner
    • Industry: Marketing
  3. Refine until you have a focused list of 100–500 leads that match your ICP.
2
Connect with Your Leads
  1. Start sending connection requests to your leads from Sales Navigator.
  2. Pro tip: Use Claude Cowork to automate sending personalized connection requests — we have a full guide on setting that up.
  3. Keep connection requests under 20–30 per day to stay within LinkedIn's safe zone.
  4. Wait for people to accept. You'll typically get a 20–40% acceptance rate with personalized requests.
3
Filter & Export Your Connections
  1. Once you have accepted connections, go back to Sales Navigator and create a new search.
  2. Filter by 1st-degree connections + your ICP criteria (location, title, industry). This gives you only the people who accepted your connection request and match your target.
  3. Copy the URL of this Sales Navigator search — you'll need it for the next step.
4
Scrape Leads with Apify
  1. Go to apify.com and create a free account. You get $5/month in free credits.
  2. Open the LinkedIn Sales Navigator Scraper actor.
  3. You'll need your LinkedIn cookies from Sales Navigator. Here's how to get them:
    • Open Sales Navigator in Chrome
    • Press F12 to open Developer Tools
    • Go to the Application tab → Cookieslinkedin.com
    • Copy the li_at cookie value
  4. Paste your Sales Navigator search URL and cookie into the Apify actor, then run it.
  5. Download the results as a CSV file — this is your lead list with names, titles, companies, and LinkedIn URLs.

Part 2: Score Your Leads with AI

Use Claude Code to automatically analyze and rank your leads so you focus on the highest-value prospects first.

5
Install Claude Code
  1. Download Visual Studio Code (free) if you don't have it.
  2. Open the terminal in VS Code: press Ctrl + ` (or Cmd + ` on Mac).
  3. Install Claude Code:
    npm install -g @anthropic-ai/claude-code
  4. If you don't have Node.js, download it first from nodejs.org (choose LTS).
  5. Type claude in the terminal and follow the prompts to log in with your Anthropic account.
6
Connect Apify to Claude Code

Claude Code needs access to Apify to scrape detailed profile data for scoring. Set up the MCP connection:

  1. In your Apify account, go to Settings → Integrations and copy your Personal API Token.
  2. Create a new project folder for your outreach system. Open it in VS Code.
  3. Inside the project folder, create a file called .mcp.json with this content:
    {
      "mcpServers": {
        "apify": {
          "command": "npx",
          "args": [
            "-y",
            "@apify/actors-mcp-server",
            "--actors",
            "curious_coder/linkedin-profile-scraper"
          ],
          "env": {
            "APIFY_TOKEN": "your_apify_token_here"
          }
        }
      }
    }
  4. Replace your_apify_token_here with your actual Apify API token.
  5. Start Claude Code by typing claude in the terminal. It will automatically detect the Apify MCP connection.
7
Add Your Anthropic API Key

Claude Code uses your Anthropic account to process and score leads. If you don't have an API key yet:

  1. Go to console.anthropic.com
  2. Create an account and go to API Keys.
  3. Generate a new key and add some credits ($5–10 is enough to score hundreds of leads).
  4. When you run claude in the terminal for the first time, it will ask for your API key. Paste it in.
8
Score Your Leads
  1. Drop the CSV file you downloaded from Apify into your project folder.
  2. Tell Claude Code to score the leads. Example prompt:
    Read the leads CSV file. For each lead, use the Apify LinkedIn
    profile scraper to get their full profile data. Then score each
    lead 1-10 on these criteria:
    
    - Buying power (founder/CEO = high, manager = medium)
    - LinkedIn activity (posts frequently = high, rarely = low)
    - Seniority level (C-suite = high, mid-level = lower)
    
    Save the results to a new CSV with all original data plus scores
    and a total score. Sort by total score descending.
  3. Claude Code will go through each lead, scrape their full LinkedIn profile, analyze the data, and produce a ranked list.
  4. Customize the scoring criteria for your business. The example above is for selling a B2B service to founders — adjust the metrics based on who your ideal client is.

Part 3: Generate Value-Driven Outreach

Instead of sending generic cold messages, lead with free value. Give people something useful — that's how you start real conversations.

9
Set Up Kie.ai for Image Generation

To send truly personalized value, you can generate improved LinkedIn visuals (banner, profile picture, headline) for each lead. This is the "lead with value" approach.

  1. Go to kie.ai and create an account.
  2. Kie.ai uses the Nana Banana Pro model for high-quality image generation. Get your API key from your account settings.
  3. Create a .env file in your project folder:
    KIE_API_KEY=your_kie_api_key_here
10
Generate Personalized Outreach for Each Lead
  1. With your scored leads and tools connected, ask Claude Code to generate personalized outreach. Example prompt:
    Take the top 20 leads from the scored CSV. For each person:
    
    1. Read their LinkedIn profile data
    2. Generate an improved LinkedIn headline for them
    3. Use Kie.ai to create an improved LinkedIn banner
       that matches their personal brand
    4. Write a short, friendly LinkedIn message that says:
       "Hey [name], I put together an improved headline
       and banner for your LinkedIn profile — totally free,
       no strings attached. Here they are: [attach].
       Hope you find it useful!"
    
    Save each person's assets in a separate folder.
  2. Claude Code will generate custom deliverables for each lead — an improved headline, a professional banner, and a personalized message.
  3. The key principle: you're leading with genuine free value. You're not pitching — you're helping. That's what starts conversations.
11
Send Your Messages
  1. Review the generated messages and assets for each lead. Make sure they look good and feel personal.
  2. Send the messages manually on LinkedIn, or use Claude Cowork to help you send them at scale (with your approval on each message).
  3. Keep it natural: send 10–20 messages per day. Personalization means nothing if you blast 200 people at once.
  4. When someone responds positively, continue the conversation naturally. The free value opened the door — now build the relationship.
12
Adapt This System to Your Business

The example above generates LinkedIn profile improvements — that works if you sell LinkedIn services. But the framework works for any business:

  • SEO agency: generate a free mini SEO audit for each lead's website
  • Design studio: create a quick mockup improving their landing page
  • Sales training: record a personalized video reviewing their outreach
  • Marketing consultant: write 3 sample social media posts for their brand
  • SaaS company: build a custom demo or ROI calculation for their use case

The principle is always the same: lead with value, not a pitch. Claude Code can generate whatever free deliverable makes sense for your offer.

For B2B business owners

Want inbound leads from organic LinkedIn content?

See How It Works