🎣 🎯 Precision prospecting: Automate LinkedIn lead gen with Bright Data

⚑ 2,841 views · 🎣 Lead Generation & Enrichment

πŸ’‘ Pro Tip β€” If you’re pulling LinkedIn data through HTTP requests or dealing with API restrictions, there’s a community node called ScraperNode that handles this natively. It has dedicated scrapers for profiles, companies, jobs, and people search β€” you just pass a URL and get structured data back.

View All Scrapers

Description

image.png

🎯 Precision Prospecting: Automate LinkedIn Lead Gen with n8n & Bright Data

πŸ“ Overview This workflow turns n8n into an AI-powered prospector, automatically searching Google for LinkedIn profiles, scraping profile data via Bright Data, and summarizing key details. Ideal for sales and recruitment teams seeking targeted lead lists without manual research.

πŸŽ₯ Workflow in Action Want to see this workflow in action? You have a chat window output below: image.png

πŸ”‘ Key Features

πŸš€ How It Works (Step-by-Step)

  1. Prerequisites:

    • n8n β‰₯ v1.0 with community nodes: install n8n-nodes-brightdata (not verified community node).
    • API credentials: OpenAI, Bright Data (web unlocker zone β€œweb_unlocker1”).
    • Webhook endpoint for chat trigger.
  2. Node Configuration:

    • When chat message received (chatTrigger): Fires on user prompt.
    • Simple Memory1 (memoryBufferWindow): Stores the last 20 chat messages.
    • AI Prospector Agent (agent): Orchestrates search logic.
    • Get 1 Google Result (brightData): Performs a Google search with site:linkedin.com/in.
    • Get Links from Body (html): Extracts all <a> hrefs from the search result page.
    • Extract Links (splitOut): Splits out individual link entries.
    • Filter only LinkedIn Profiles (filter): Ensures the URL contains β€œlinkedin.com/” and starts with β€œhttps://”.
    • Limit (limit): Restricts output to the first valid profile URL.
    • Search LinkedIn URI (toolWorkflow): Passes the URL to a secondary workflow to fetch the first link.
    • Get LinkedIn Profile Data (brightDataTool): Scrapes the profile JSON.
    • OpenAI Chat Model (lmChatOpenAi): Summarizes and formats the scraped data.
  3. Workflow Logic:

    • User asks for a person by company & name, company & position, or LinkedIn URL.
    • Agent builds a Google query (e.g., site:linkedin.com/in bright data cmo) and calls β€œGet 1 Google Result.”
    • Extracted links are filtered and limited to the top valid profile.
    • If user provided a direct LinkedIn URL, Agent skips search and scrapes immediately.
    • Scraped profile JSON is passed to GPT-4o-mini to generate a concise summary.
  4. Testing & Optimization:

    • Trigger via Execute Workflow for dry runs.
    • Inspect intermediate node outputs in n8n’s Execution panel.
    • Adjust maxIterations or memory window length for performance.
    • Tune Bright Data zone or country settings to optimize scraping speed.
  5. Deployment & Monitoring:

    • Activate the workflow and expose its webhook URL.
    • Use n8n’s built-in Alerts or external monitoring (e.g., Slack notifications) on failures.
    • Rotate credentials via n8n’s Credential Vault when needed.
    • Version-control workflow via duplicates or Git-backed n8n instances.

βœ… Pre-requisites

πŸ‘€ Who Is This For?

πŸ“ˆ Benefits & Use Cases

Workflow created and verified by Miquel Colomer https://www.linkedin.com/in/miquelcolomersalas/ and N8nHackers https://n8nhackers.com

πŸ”— Nodes Used

Execute Workflow Trigger, Filter, AI Agent, OpenAI Chat Model, Simple Memory, Call n8n Workflow Tool

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup