Automation library · Lead generation

Generate and research sales leads with Jina AI and OpenAI

Started by a clock, and works across Airtable and Gmail. It puts OpenAI behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 30 steps, 1 branch, 3 loops or waits: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAIRetrieval

30 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 2Model 15Logic 9Service 4

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

  1. 1Structured Output ParserOutput Parser StructuredModel
  2. 2Structured Output Parser3Output Parser StructuredModel
  3. 3Structured Output Parser4Output Parser StructuredModel
  4. 4Window Buffer MemoryMemory Buffer WindowModel
  5. 5Structured Output Parser2Output Parser StructuredModel
  6. 6OpenAI Gpt-5-miniLm Chat Open AiModel
  7. 7OpenAI - Gpt-5-mini-hiLm Chat Open AiModel
  8. 8OpenAI-Gpt-5-mini-lowLm Chat Open AiModel
  9. 9OpenAI - Gpt-5-mini-lowLm Chat Open AiModel
  10. 10OpenAI - Gpt-5-mini-low1Lm Chat Open AiModel
  11. 11Execute workflowManual triggerStarts it
  12. 12Schedule TriggerSchedule triggerStarts it
  13. 13Lead AnalyzerAgentModel
  14. 14Email Content CreatorAgentModel
  15. 15Email Content Re-writerAgentModel
  16. 16EvaluatorAgentModel
  17. 17Format HTMLAgentModel
  18. 18Business_InfoSetLogic
  19. 19Wait-5-secWaitLogic
  20. 20IfIfLogic
  21. 21Create a draftGmailService
  22. 22Jina_API_KeySetLogic
  23. 23FeedbackSetLogic
  24. 24Merge-loopMergeLogic
  25. 25Get input recordsAirtableService
  26. 26Update recordAirtableService
  27. 27Loop Over ItemsSplit In BatchesLogic
  28. 28Wait-8-secWaitLogic
  29. 29Lead Person ResearchHttp RequestService
  30. 30Merge-SearchMergeLogic

How it's built

Starts on
A clock
Steps
30, with 1 branch, 3 loops or waits
Size
Large: read it before trusting it with anything live
Connects to
Airtable, Gmail
Model
OpenAI
Retrieval
Answers are drawn from documents you supply, not from the model alone

Questions

What does it need to run?

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

What starts it?

It starts on a clock.

Does it use AI?

Yes. It calls OpenAI. Its answers draw on documents you give it, not on the model alone. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 30 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 30 steps before you point it at anything that matters.