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

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

Ready for 3.0

by Dinakar Selvakumar ✓ · 42 views · created 2026-01-04 · Lead Generation, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 13 nodes and runs from “Generate LinkedIn Search Queries” (no trigger node, so run it manually or call it from another workflow). Along the way it connects Google Sheets and Google Gemini.

How it runs

Trigger: From “Generate LinkedIn Search Queries” (no trigger node, so run it manually or call it from another workflow).

  1. Generate LinkedIn Search Queries (Code): runs custom JavaScript code
  2. Load Unenriched Profiles (Google Sheets): uses Google Sheets
  3. Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
  4. Process Each Profile (Loop Over Items (Split in Batches)): loops over the items in batches
  5. Search in Apify (HTTP Request): calls an HTTP API
  6. Scrape LinkedIn Profile Data (HTTP Request): calls an HTTP API
  7. Flatten Apify Results (Code): runs custom JavaScript code
  8. Generate Connection Message (Google Gemini): uses Google Gemini
  9. Save in Database (Google Sheets): uses Google Sheets
  10. Save Enriched Lead Data (Google Sheets): uses Google Sheets

…plus 3 more steps. See the full node list below.

Services it uses

Google SheetsGoogle Gemini

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (5)

From the author

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…

Excerpt from Dinakar Selvakumar's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.