LinkedIn Profile Scraper & Personalized Outreach using PhantomBuster + GPT-4

Go to Workflow
97 views
Built by Rahul Joshi Rahul Joshi
Created on June 05, 2026

Description

Description

This plug-and-play n8n workflow template helps you automate LinkedIn profile data extraction and transform it into structured, enriched outputs using PhantomBuster and GPT-4. Perfect for lead generation, recruiting, or growth marketing teams, this pipeline handles scraping, structuring, and messagingโ€”all in one flow.

Requirements

PhantomBuster Setup
Create a PhantomBuster account.
Use the LinkedIn Profile Scraper Phantom (or your custom one).
Get your API Key and Agent ID from PhantomBuster dashboard.
Configure your LinkedIn Phantom with an active LinkedIn session cookie (available from your browserโ€™s developer tools).

OpenAI or Azure OpenAI

Provide your GPT-4 / GPT-4o API Key.
You can use OpenAI or Azure's hosted model.

(Optional) Google Sheets

Use Sheets for batch profile inputs or output logging.

What This Template Does

Step-by-Step Flow:

๐Ÿ” Manual Trigger / Google Sheets input โ€“ Accepts LinkedIn profile URLs.

๐Ÿš€ Launch PhantomBuster Agent โ€“ Starts the scraping job with provided LinkedIn URLs.

โณ Wait Node (45 sec) โ€“ Allows PhantomBuster to finish execution.

๐Ÿ“ฅ Download Scraped Output โ€“ Fetches the download URL for JSON/CSV from the container.

๐Ÿ“‚ Temp File Management โ€“ Deletes temp URLs or intermediate data as needed.

AI Parser (GPT-4) โ€“ Parses and extracts:

Name
Headline
Company
Designation
Industry
Location
Recent roles

(Optional) Create personalized outreach messages using structured output.

Output Structured JSON or CSV โ€“ Send to CRM, Google Sheets, Airtable, etc.

Best For

๐Ÿ“ˆ Sales/BDRs building high-quality prospect lists

๐Ÿง‘โ€๐Ÿ’ผ Recruiters extracting enriched candidate info

๐Ÿ’ผ Founders & Marketers creating targeted lead magnets

๐Ÿงฉ Tool builders building products using LinkedIn profile data

Nodes Used (6)

AI Agent
@n8n/n8n-nodes-langchain.agent
Azure OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatAzureOpenAi
Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm
Google Sheets
n8n-nodes-base.googleSheets
HTTP Request
n8n-nodes-base.httpRequest
Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured