Skip to main content

LinkedIn lead finder & Gemini-powered personalized outreach with Google Sheets

Workflow preview

Workflow preview
100%
LinkedIn lead finder & Gemini-powered personalized outreach with Google Sheets preview
Open on n8n.io

Important notice

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

1. Workflow Overview

What this workflow does This workflow automates the process of finding LinkedIn leads and writing personalized outreach messages. It takes user input (keywords + purpose), generates a Boolean Li...

Best for

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

Tools used

n8n-nodes-base.splitout, n8n-nodes-base.splitinbatches, n8n-nodes-base.formtrigger, @n8n/n8n-nodes-langchain.googlegemini, n8n-nodes-base.httprequest, n8n-nodes-base.googlesheets, n8n-nodes-base.emailsend, 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 Cong Nguyen.

Original n8n.io source

1.1 Workflow description

Title
LinkedIn lead finder & Gemini-powered personalized outreach with Google Sheets
Workflow name
LinkedIn lead finder & Gemini-powered personalized outreach with Google Sheets

📄 What this workflow does

This workflow automates the process of finding LinkedIn leads and writing personalized outreach messages. It takes user input (keywords + purpose), generates a Boolean LinkedIn search query with Gemini, fetches up to 20 results via Google Custom Search API, logs them into Google Sheets, and then drafts custom outreach messages for each lead. Finally, the workflow updates the sheet and optionally sends you an email notification with the results.

👤 Who is this for

  • Sales and business development teams who want to automate LinkedIn prospecting.
  • Recruiters searching for candidates and generating outreach at scale.
  • Marketers or founders looking for potential partners, clients, or collaborators.
  • Anyone tired of manual LinkedIn searches and copy-pasting outreach messages.

✅ Requirements

  • Google Sheets account (with a sheet for storing LinkedIn leads + messages).
  • Google Custom Search Engine (CSE) enabled with "Search the entire web" and valid cx.
  • Gemini API access (for Boolean query generation + outreach message drafting).
  • SMTP credentials for optional email notifications.

⚙️ How to set up

  • Connect your Google Sheets account and select the sheet to store results.
  • Configure Gemini API credentials in n8n for both search query + outreach message generation.
  • Create a Google Custom Search Engine and note down the key and cx.
  • Update the HTTP Request node with your credentials (key, cx, hl, gl).
  • Set up SMTP credentials if you want email notifications.
  • Publish the Form trigger and test with sample keywords + purposes.

🔁 How it works

  1. Form Submit → Collects user input: keywords + purpose of contact.
  2. Gemini (Boolean Generator) → Creates a LinkedIn-specific search query (site:linkedin.com).
  3. Google Custom Search API → Fetches up to 20 matching profiles or company pages.
  4. Append to Google Sheets → Saves name, LinkedIn URL, description.
  5. Split & Loop → Processes each LinkedIn entry one by one.
  6. Gemini (Message Writer) → Generates personalized outreach messages using Purpose + company info.
  7. Update Google Sheets → Adds outreach message to the matching LinkedIn row.
  8. Optional Email Notification → Sends you a link to the updated sheet.

💡 About Margin AI

Margin AI is an AI-services agency that acts as your AI Service Companion. We design intelligent, human-centric automation solutions—turning your team’s best practices into scalable, automated workflows and tools. Industries like marketing, sales, and operations benefit from our tailored AI consulting, automation tools, chatbot development, and more.

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 - Split Out

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

Block 2 - Loop Over Items

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

Block 3 - Form submit

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

Block 4 - Create boolean search strings

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

Block 5 - Get Linkedin Company

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

Block 6 - Writing message

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

Block 7 - Update sheet

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

Block 8 - Send email

Type / Role
n8n-nodes-base.emailSend - emailSend
Config choices
Version 2.1

Block 9 - Append row in sheet

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

Block 10 - Sticky Note3

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

Block 11 - Sticky Note4

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

Block 12 - Sticky Note5

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

Block 13 - Sticky Note6

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

3. Summary Table

Workflow LinkedIn lead finder & Gemini-powered personalized outreach with Google Sheets
Complexity intermediate
Nodes 13
Categories Lead Generation, Multimodal AI
Author Cong Nguyen
Published 28 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/7983/7983.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 LinkedIn lead finder & Gemini-powered personalized outreach with Google Sheets do?

What this workflow does This workflow automates the process of finding LinkedIn leads and writing personalized outreach messages. It takes user input (keywords + purpose), generates a Boolean Li...

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.