Automation library · Lead generation

Automated lead research – from LinkedIn to ready-to-send report

Started by an event in a connected app, and works across Google Docs and Google Sheets. It hands the judgement calls to OpenAI. 28 steps, 1 branch, 3 loops or waits: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAI

28 stepsLarge: read it before trusting it with anything live
1Branch: places the flow splits
3Loops or waits
2Services it connects to

The flow

Starts it 1Model 7Logic 10Service 10

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

  1. 1When clicking ‘Test workflow’Manual triggerStarts it
  2. 2OpenAI Chat Model2Lm Chat Open AiModel
  3. 3OpenAI Chat ModelLm Chat Open AiModel
  4. 4Structured Output ParserOutput Parser StructuredModel
  5. 5OpenAI Chat Model1Lm Chat Open AiModel
  6. 6Get All DataGoogle SheetsService
  7. 7check perplexity researchChain LlmModel
  8. 8Analyst of prospectChain LlmModel
  9. 9Generate ReportChain LlmModel
  10. 10Set DataSetLogic
  11. 11IfIfLogic
  12. 12Perplexity Competitor ResearchHttp RequestService
  13. 13Create docGoogle DocsService
  14. 14Loop Over ItemsSplit In BatchesLogic
  15. 15Set if TRUESetLogic
  16. 16Set if WRONGSetLogic
  17. 17Add report to docGoogle DocsService
  18. 18Company LinkedIn Account POSTHttp RequestService
  19. 19Perplexity SearchHttp RequestService
  20. 20Personal LinkedIn Account POSTHttp RequestService
  21. 21MergeMergeLogic
  22. 22Add to sheetsGoogle SheetsService
  23. 23Wait1WaitLogic
  24. 24WaitWaitLogic
  25. 25Company LinkedIn Account GETHttp RequestService
  26. 26Personal LinkedIn Account GETHttp RequestService
  27. 27Set Results CompanySetLogic
  28. 28Set Results PersonalSetLogic

How it's built

Starts on
An event in a connected app
Steps
28, with 1 branch, 3 loops or waits
Size
Large: read it before trusting it with anything live
Connects to
Google Docs, Google Sheets
Model
OpenAI

Questions

What does it need to run?

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

What starts it?

It starts on an event in a connected app.

Does it use AI?

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

How long does it take to set up?

Take your time. At 28 steps it is large: read it before trusting it with anything live.

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 28 steps before you point it at anything that matters.