๐ฃ LinkedIn scraping, structuring, and messaging using PhantomBuster and GPT-4
โก 309 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.
Description
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
๐ Nodes Used
Google Sheets, HTTP Request, Schedule Trigger, AI Agent, Basic LLM Chain, Structured Output Parser
๐ฅ Import
Download workflow.json and import into n8n:
Workflow menu โ Import from File