Skip to main content

AI-powered lead generation with Apollo, LinkedIn research & 4-step personalized emails

Workflow preview

Workflow preview
100%
AI-powered lead generation with Apollo, LinkedIn research & 4-step personalized emails preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

This workflow finds potential customers, gathers detailed info about them and their companies, and then uses AI to research them in detail and write personalized messages for LinkedIn and a series ...

Best for

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

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.set, n8n-nodes-base.code, n8n-nodes-base.filter, n8n-nodes-base.googlesheets, n8n-nodes-base.httprequest, @n8n/n8n-nodes-langchain.openai, n8n-nodes-base.scheduletrigger

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Gain FLow AI.

Original n8n.io source

1.1 Workflow description

Title
AI-powered lead generation with Apollo, LinkedIn research & 4-step personalized emails
Workflow name
AI-powered lead generation with Apollo, LinkedIn research & 4-step personalized emails

Overview

This workflow finds potential customers, gathers detailed info about them and their companies, and then uses AI to research them in detail and write personalized messages for LinkedIn and a series of four cold emails. All this data is organized in Google Sheets for easy tracking and use.

Use Case

This tool is perfect for salespeople, marketers, and business owners. It saves you a lot of time by automating lead finding, research, and email writing. This helps you send many personalized messages quickly, leading to more replies and better sales.

How It Works

You start by telling the workflow who you want to reach (e.g., "Marketing Agencies," "New York," "COOs"). The workflow then uses scrapers (from Apify) to find these people on Apollo.io and LinkedIn, collecting their contact details and company information.

Next, an AI analyzes all this data. It creates a detailed report on each company, including what they do, their strengths, recent news, and possible challenges they face. This report helps the AI then write a friendly LinkedIn message opener and a 4-part hyper-personalised cold email series specifically for each person. These emails cover problems you can solve, success stories, and a clear next step. Finally, all the prospect details and generated messages are saved neatly in your Google Sheets.

How to Set It Up

  1. Scrapers: Go to Apify, get your API Token from "API & Integrations," and put it into the scraper nodes in the workflow.
  2. Google Sheets: Copy the provided Google Sheet template. Then, add your email addresses to the "Assign Sender Email" node so the workflow can choose who sends the emails.
  3. AI (OpenAI): Add your OpenAI API Key. In the "About You" node, fill in information about your company and your skills so the AI can write super relevant messages.
  4. Test: Run the workflow using the "Enter Target Audience" form. You can set how often it runs. If you need help, check the detailed guide or email [email protected].

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 - Sticky Note2

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

Block 2 - Generate Query

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 3 - Create Apollo URL

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 4 - Filter

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

Block 5 - Save Prospects

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

Block 6 - Sticky Note3

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

Block 7 - Sticky Note4

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

Block 8 - Sticky Note

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

Block 9 - Apollo Scraper (paid)

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 10 - Apollo Scraper

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 11 - Extract Info

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 12 - Edit Fields

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 13 - Check Time Zone

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 14 - Assign Sender Email

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 15 - Add Opt Out Token

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 16 - Save Emails

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

Block 17 - Save Analysis

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

Block 18 - Generate LinkedIn Opener

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

Block 19 - Analyse Data

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

Block 20 - Genrate Emails

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

Block 21 - Schedule Trigger

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

Block 22 - If Linkedin Exists?

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

Block 23 - Get Prospects

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

Block 24 - Loop Over Items

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Showing the first 24 of 30 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow AI-powered lead generation with Apollo, LinkedIn research & 4-step personalized emails
Complexity advanced
Nodes 30
Categories Lead Generation, Multimodal AI
Author Gain FLow AI
Published 17 Jul 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/6101/6101.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 AI-powered lead generation with Apollo, LinkedIn research & 4-step personalized emails do?

This workflow finds potential customers, gathers detailed info about them and their companies, and then uses AI to research them in detail and write personalized messages for LinkedIn and a series ...

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 Lead Generation, Multimodal AI use case.