Automation library · Lead generation

LinkedIn leads and draft outreach with Apify and Google Sheets

Runs on demand, and works across Google Sheets. It hands the judgement calls to Gemini. 13 steps, 2 loops or waits: a working afternoon to understand properly.

MediumCalls a model: Gemini

13 stepsMedium: a working afternoon
0Branches: places the flow splits
2Loops or waits
1Service it connects to

The flow

Model 2Logic 4Service 7

The steps in the order they run, from what starts it.

  1. 1Generate LinkedIn Search QueriesCodeLogic
  2. 2Load Unenriched ProfilesGoogle SheetsService
  3. 3Loop Over ItemsSplit In BatchesLogic
  4. 4Process Each ProfileSplit In BatchesLogic
  5. 5Search in ApifyHttp RequestService
  6. 6Scrape LinkedIn Profile DataHttp RequestService
  7. 7Flatten Apify ResultsCodeLogic
  8. 8Generate Connection MessageGoogle GeminiModel
  9. 9Save in DatabaseGoogle SheetsService
  10. 10Save Enriched Lead DataGoogle SheetsService
  11. 11Generate Follow-Up MessageGoogle GeminiModel
  12. 12Update Follow-Up in SheetGoogle SheetsService
  13. 13Mark Profile as EnrichedGoogle SheetsService

How it's built

Starts on
Nothing automatic; you run it
Steps
13, 2 loops or waits
Size
Medium: a working afternoon
Connects to
Google Sheets
Model
Gemini

Questions

What does it need to run?

An n8n account, plus your own Google Sheets account, and a key for Gemini. You connect your own accounts after importing it; none are included.

What starts it?

Nothing starts it automatically. You run it by hand.

Does it use AI?

Yes. It calls Gemini. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Plan an afternoon. 13 steps is enough that you should read each one before running it.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

Before you run it

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 13 steps before you point it at anything that matters.