Skip to main content

Discover LinkedIn leads and draft outreach using Apify, Google Sheets, and Gemini

Workflow preview

Workflow preview
100%
Discover LinkedIn leads and draft outreach using Apify, Google Sheets, and Gemini preview
Open on n8n.io

1. Workflow Overview

LinkedIn Lead Discovery & AI Outreach System This n8n template helps you discover LinkedIn profiles using Google Search, enrich them with public data, and generate personalized outreach messages — ...

Best for

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

Tools used

n8n-nodes-base.httprequest, n8n-nodes-base.code, n8n-nodes-base.googlesheets, n8n-nodes-base.stickynote, n8n-nodes-base.splitinbatches, @n8n/n8n-nodes-langchain.googlegemini

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Discover LinkedIn leads and draft outreach using Apify, Google Sheets, and Gemini
Workflow name
Discover LinkedIn leads and draft outreach using Apify, Google Sheets, and Gemini

LinkedIn Lead Discovery & AI Outreach System

This n8n template helps you discover LinkedIn profiles using Google Search, enrich them with public data, and generate personalized outreach messages — all without unsafe browser automation.


What this template demonstrates

  • Safe LinkedIn lead discovery without direct scraping
  • Scalable batch processing using Split In Batches
  • Google Sheets as a lightweight lead database
  • Responsible AI usage with strict prompt constraints
  • Clear separation between data collection and messaging

Use cases

  • B2B lead research for agencies and consultants
  • Founder-led outbound without expensive SaaS tools
  • Market research and prospect list building
  • Personal LinkedIn outreach systems
  • Pre-sales research workflows

How it works

  1. Role and location keywords are generated automatically
  2. Apify runs Google searches to find LinkedIn profile URLs
  3. Results are stored in Google Sheets
  4. Profiles are enriched one-by-one
  5. AI generates a connection message
  6. A follow-up message is generated after connection
  7. Lead status is updated to avoid duplicates

How to use

  1. Make a copy of the Google Sheet 👉 https://docs.google.com/spreadsheets/d/1UXwFkCGgQKrfOiDgohQLy7WsqUw5TL3unPBgRi4npBQ/copy

  2. Add your Apify API token

  3. Connect your Google Sheets credentials

  4. Review or customise role keywords

  5. Run the workflow in test mode

  6. Monitor results inside Google Sheets


Requirements

  • n8n (Cloud or Self-hosted)
  • Apify account (free tier works for testing)
  • Google Sheets access
  • Gemini / LLM API key (for messaging)

Customising this workflow

  • Change target roles or locations in the query generator
  • Replace Google Sheets with a database if needed
  • Adjust AI prompts to match your brand tone
  • Disable follow-up generation if not required
  • Add rate limits or delays for larger runs

Good to know

  • This template does NOT send LinkedIn messages automatically
  • It focuses on research, enrichment, and message drafting
  • Designed to be compliant, stable, and production-ready
  • Ideal foundation for custom outreach systems

Who this is for

  • n8n users building lead generation systems
  • Freelancers and agencies avoiding expensive SaaS tools
  • Founders running manual or semi-automated outreach
  • Anyone who wants control, transparency, and ownership

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 - Search in Apify

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

Block 2 - Flatten Apify Results

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

Block 3 - Save in Database

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

Block 4 - Sticky Note

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

Block 5 - Generate LinkedIn Search Queries

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

Block 6 - Loop Over Items

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

Block 7 - Sticky Note1

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

Block 8 - Sticky Note2

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

Block 9 - Sticky Note4

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

Block 10 - Sticky Note5

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

Block 11 - Sticky Note6

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

Block 12 - Load Unenriched Profiles

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

Block 13 - Process Each Profile

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

Block 14 - Scrape LinkedIn Profile Data

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

Block 15 - Generate Connection Message

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

Block 16 - Save Enriched Lead Data

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

Block 17 - Generate Follow-Up Message

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

Block 18 - Update Follow-Up in Sheet

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

Block 19 - Mark Profile as Enriched

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

3. Summary Table

Workflow Discover LinkedIn leads and draft outreach using Apify, Google Sheets, and Gemini
Complexity advanced
Nodes 19
Categories Lead Generation, AI Summarization
Author Dinakar Selvakumar
Published 04 Jan 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/12459/12459.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 Discover LinkedIn leads and draft outreach using Apify, Google Sheets, and Gemini do?

LinkedIn Lead Discovery & AI Outreach System This n8n template helps you discover LinkedIn profiles using Google Search, enrich them with public data, and generate personalized outreach messages — ...

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, AI Summarization use case.