Skip to main content

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

Workflow preview

Workflow preview
100%
Scrape LinkedIn leads with Apify and draft GPT-4.1 Mini Gmail cold emails preview
Open on n8n.io

1. Workflow Overview

This n8n workflow fully automates the outbound lead generation process using LinkedIn, Apify, OpenAI, Google Sheets, and Gmail. The workflow: Finds targeted LinkedIn leads automatically Enriches pr...

Best for

  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.gmail, n8n-nodes-base.googlesheets, @n8n/n8n-nodes-langchain.openai, n8n-nodes-base.filter, @apify/n8n-nodes-apify.apify, n8n-nodes-base.scheduletrigger, n8n-nodes-base.stickynote

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Jitesh Dugar.

Original n8n.io source

1.1 Workflow description

Title
Scrape LinkedIn leads with Apify and draft GPT-4.1 Mini Gmail cold emails
Workflow name
Scrape LinkedIn leads with Apify and draft GPT-4.1 Mini Gmail cold emails

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

The workflow:

  • Finds targeted LinkedIn leads automatically
  • Enriches profiles with verified email addresses
  • Stores lead data inside Google Sheets
  • Filters high-quality email addresses
  • Generates personalized AI cold emails using GPT-4.1 Mini
  • Creates Gmail drafts ready for manual review and sending

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

  • Runs daily at 11:06 AM

Purpose

  • Fully automates lead generation
  • Removes manual workflow execution
  • Keeps your outreach pipeline continuously active

2. Find LinkedIn Leads (Apify)

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

Current Search Filters

  • Job Role: CEO
  • Location: New York
  • Experience: 5+ years

What It Does

  • Searches LinkedIn profiles matching the criteria
  • Extracts LinkedIn profile URLs
  • Returns targeted prospects for enrichment

3. Enrich Leads using LinkedIn URL

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

Extracted Information

  • First name
  • Last name
  • Verified email addresses
  • Email deliverability score
  • LinkedIn profile URL
  • Company website
  • Company LinkedIn URL
  • About section
  • Job headline

4. Store Leads (Google Sheets)

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

Stored Data

  • First Name
  • Last Name
  • Email
  • Deliverability status
  • Email quality score
  • LinkedIn URL
  • Company website
  • Job title
  • About section
  • Company LinkedIn URL

Benefits

  • Creates a centralized lead database
  • Makes lead management easier
  • Enables campaign tracking and organization

5. Filter High-Quality Emails

This node filters leads based on email quality score.

Current Filter Condition

Email Score >= 70

Purpose

  • Removes low-confidence emails
  • Reduces bounce rates
  • Improves outreach deliverability
  • Increases campaign effectiveness

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

  • Lead name
  • Job title
  • About section
  • Company LinkedIn profile

Generated Output

  • Personalized subject line
  • Curiosity-driven hook
  • Concise outreach message
  • HTML-formatted email body

7. Create a Draft (Gmail)

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

Included in Draft

  • Personalized subject line
  • HTML email body
  • Recipient email address

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Create a draft

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.2

Block 2 - Store Leads

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 3 - Draft Cold Email

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 2.1

Block 4 - Filter

Type / Role
n8n-nodes-base.filter - filter
Config choices
Version 2.3

Block 5 - Enrich Leads using LinkedIn URL

Type / Role
@apify/n8n-nodes-apify.apify - apify
Config choices
Version 1

Block 6 - Find LinkedIn Leads

Type / Role
@apify/n8n-nodes-apify.apify - apify
Config choices
Version 1

Block 7 - Schedule Trigger

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.3

Block 8 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 9 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 10 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 13 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - Sticky Note6

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 15 - Sticky Note7

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Scrape LinkedIn leads with Apify and draft GPT-4.1 Mini Gmail cold emails
Complexity advanced
Nodes 15
Categories Multimodal AI
Author Jitesh Dugar
Published 11 May 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/15624/15624.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Scrape LinkedIn leads with Apify and draft GPT-4.1 Mini Gmail cold emails do?

This n8n workflow fully automates the outbound lead generation process using LinkedIn, Apify, OpenAI, Google Sheets, and Gmail. The workflow: Finds targeted LinkedIn leads automatically Enriches pr...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Multimodal AI use case.