LinkedIn Lead Generation with GPT-4o, Apify Scraping, and Automated Outreach
π LinkedIn Lead-Gen Flywheel β Apify β GPT-4o β Google Sheets β Phantombuster
What this workflow does Collect audience specs β simple web-form asks for your ideal company profile. Generate a laser-targeted Apollo search URL with GPT-4o (no manual filtering). Scrape the matching leads via an Apify actor (returns clean JSON). Craft hyper-personalized icebreakers for each lead using GPT-4o (ultra-short, human-sounding). Log everything to Google Sheets β name, LinkedIn URL, company site, summary, and the icebreaker. (Optional) Auto-launch Phantombuster to fire off those connection requests at scale.
Why it matters
Zero grunt work:** audience research, scraping, copy-writing, and outreach all run hands-free.
Punchy personalization:** micro-icebreakers outperform canned intros, boosting accept rates.
Scales with you:** flip a switch to go from 10 to 1 000+ connections/day.
Node rundown | Step | Node | Key Inputs | Key Outputs | |------|------|-----------|-------------| | 1 | Form Trigger | Audience description | description_of_company | | 2 | OpenAI (GPT-4o) | Audience text | SearchUrl | | 3 | HTTP Request β Apify | SearchUrl, APIFY_TOKEN | Lead JSON | | 4 | OpenAI (GPT-4o) | Lead JSON | Icebreaker | | 5 | Google Sheets | Lead + Icebreaker | Row append/update | | 6 | Aggregate | Sheet rows | Batched output | | 7 | HTTP Request β Phantombuster | PHANTOM_KEY, AGENT_ID | Launch status |
Prerequisites
OpenAI API key** (GPT-4o access recommended)
Apify API token** with access to actor id
Google Service Account creds** shared with your target sheet
Phantombuster API key** and Agent ID for your LinkedIn connector
Active Apollo account to open the generated search URL (only required for debugging)
Setup (5-minute sprint)
Import the workflow into n8n.
Add the required credentials in Credentials β OpenAI, Apify, Google Sheets, Phantombuster.
Paste your Phantombuster Agent ID into the HTTP Request node URL.
Publish the Form Trigger URLβthis is where you (or your SDRs) describe the target audience.
Hit Execute Workflow once to verify data flows end-to-end.
Customization tips
Titles & keywords:** tweak the prompt in the first GPT-4o node to lock in different roles or industries.
Icebreaker style:** adjust the second GPT-4o prompt to match your brand voice.
Data columns:** map extra fields from Apify into Google Sheets as needed.
Skip outreach:** disable the Phantombuster node if you only want the leads + icebreakers.
Related Templates
Use OpenRouter in n8n versions <1.78
What it is: In version 1.78, n8n introduced a dedicated node to use the OpenRouter service, which lets you to use a lot...
Task Deadline Reminders with Google Sheets, ChatGPT, and Gmail
Intro This template is for project managers, team leads, or anyone who wants to automatically remind teammates of tasks ...
π€ Build Resilient AI Workflows with Automatic GPT and Gemini Failover Chain
This workflow contains community nodes that are only compatible with the self-hosted version of n8n. How it works This...
π Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments