Templates / LinkedIn scraping, structuring, and messaging using PhantomBuster and GPT-4

LinkedIn scraping, structuring, and messaging using PhantomBuster and GPT-4

Needs changes

by Rahul Joshi ✓ · 386 views · created 2025-06-20 · Lead Generation, AI Summarization

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.

What to replace before upgrading

Removed in 3.0Replace with
AI Agent v1 (old agent modes)
Extract URL from Output using GPT-4 (v1.9)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (8)

Azure OpenAI Chat ModelStructured Output ParserGoogle SheetsAI AgentBasic LLM Chain

What it does

Description This template automates the end-to-end process of extracting professional data from LinkedIn and converting it into a usable format—ideal for recruiters, SDRs, marketers, and growth teams. With a few simple configurations, you’ll be able to trigger the flow, scrape profiles, and use AI to extract name, headline, company, role, industry, and more—without writing a single line of code. Key Features 🔗 Launch PhantomBuster Agent using a profile URL ⏳ Wait 45 seconds for PhantomBuster to complete scraping 📥 Fetch and parse scraped data (download URL to JSON) 🤖 Use GPT-4 (OpenAI/Azure) to extract structured information 📄 Output fields: Name, Headline, Company, Job Title, Industry, Experience, etc. 🧰 Optional: Personalize messages using extracted data 📊 Send structured output to Google Sheets, Airtable, or CRM Setup Instructions PhantomBuster Configuration - Sign up for PhantomBuster - Use the LinkedIn Profile Scraper Phantom - Obtain your API Key and Agent ID - Provide a valid LinkedIn session cookie (from browser dev tools) OpenAI or Azure Setup - Add your GPT-4 or GPT-4o API credentials - Can be from either OpenAI or Azure OpenAI Google Sheet (Optional) Add a sheet with LinkedIn profile URLs to process in batch mode Environment Cleanup - This version uses n8n credentials manager - All hardcoded tokens and API keys are removed for security compliance Customization Tips - You can adjust the wait duration depending on PhantomBuster execution time - Replace or extend the AI parsing prompt to include more fields (e.g., education, location, skills) - Add additional automations: Slack notifications, CRM sync, or enrichment tools like Clearbit or Hunter.io Perfect For 🚀 Growth hackers and SDRs automating lead generation 🧠 Recruiters scraping profiles for outreach 📊 Marketing teams enriching data for campaigns 🛠️ SaaS builders building LinkedIn intelligence tools

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.