✨ Scrape LinkedIn leads with Apify and draft GPT-4.1 Mini Gmail cold emails

⚡ 143 views · ✨ AI & LLMs

💡 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

This n8n workflow fully automates the outbound lead generation process using LinkedIn, Apify, OpenAI, Google Sheets, and Gmail.

The workflow:


Workflow Architecture

Schedule Trigger
      ↓
Find LinkedIn Leads (Apify)
      ↓
Enrich Leads using LinkedIn URL (Apify)
      ↓
Store Leads in Google Sheets
      ↓
Filter High-Quality Emails
      ↓
Generate Personalized AI Cold Emails
      ↓
Create Gmail Drafts

Explanation

1. Schedule Trigger

This node automatically starts the workflow at a predefined schedule.

Current Configuration

Purpose


2. Find LinkedIn Leads (Apify)

This node uses the Apify LinkedIn scraping actor to search for targeted LinkedIn profiles.

Current Search Filters

What It Does


3. Enrich Leads using LinkedIn URL

This node enriches every LinkedIn profile using the Apify LinkedIn Profile Scraper.

Extracted Information


4. Store Leads (Google Sheets)

This node appends all enriched lead information into Google Sheets automatically.

Stored Data

Benefits


5. Filter High-Quality Emails

This node filters leads based on email quality score.

Current Filter Condition

Email Score >= 70

Purpose

Only high-quality leads proceed to the AI outreach stage.


6. Draft Cold Email (OpenAI GPT-4.1 Mini)

This node uses OpenAI GPT-4.1 Mini to generate personalized cold emails.

AI Uses the Following Data

Generated Output


7. Create a Draft (Gmail)

This node automatically creates a Gmail draft using the AI-generated email content.

Included in Draft

🔗 Nodes Used

Google Sheets, Gmail, Schedule Trigger, Filter, OpenAI

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup