# Generate and research sales leads with Jina AI and OpenAI: n8n workflow

> 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...

Source: https://millionrounds.com/workflow/generate-and-research-sales-leads-with-jina-ai-and-openai (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Lead generation](https://millionrounds.com/workflows?category=Lead+generation#library)

# 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.

Large Calls a model: OpenAI Retrieval

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fgenerate-and-research-sales-leads-with-jina-ai-and-openai)

**30 steps** Large: read it before trusting it with anything live

**1** Branch: places the flow splits

**3** Loops or waits

**2** Services it connects to

## The flow

Starts it 2 Model 15 Logic 9 Service 4

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

- 1 **Structured Output Parser** Output Parser Structured *Model*
- 2 **Structured Output Parser3** Output Parser Structured *Model*
- 3 **Structured Output Parser4** Output Parser Structured *Model*
- 4 **Window Buffer Memory** Memory Buffer Window *Model*
- 5 **Structured Output Parser2** Output Parser Structured *Model*
- 6 **OpenAI Gpt-5-mini** Lm Chat Open Ai *Model*
- 7 **OpenAI - Gpt-5-mini-hi** Lm Chat Open Ai *Model*
- 8 **OpenAI-Gpt-5-mini-low** Lm Chat Open Ai *Model*
- 9 **OpenAI - Gpt-5-mini-low** Lm Chat Open Ai *Model*
- 10 **OpenAI - Gpt-5-mini-low1** Lm Chat Open Ai *Model*
- 11 **Execute workflow** Manual trigger *Starts it*
- 12 **Schedule Trigger** Schedule trigger *Starts it*
- 13 **Lead Analyzer** Agent *Model*
- 14 **Email Content Creator** Agent *Model*
- 15 **Email Content Re-writer** Agent *Model*
- 16 **Evaluator** Agent *Model*
- 17 **Format HTML** Agent *Model*
- 18 **Business_Info** Set *Logic*
- 19 **Wait-5-sec** Wait *Logic*
- 20 **If** If *Logic*
- 21 **Create a draft** Gmail *Service*
- 22 **Jina_API_Key** Set *Logic*
- 23 **Feedback** Set *Logic*
- 24 **Merge-loop** Merge *Logic*
- 25 **Get input records** Airtable *Service*
- 26 **Update record** Airtable *Service*
- 27 **Loop Over Items** Split In Batches *Logic*
- 28 **Wait-8-sec** Wait *Logic*
- 29 **Lead Person Research** Http Request *Service*
- 30 **Merge-Search** Merge *Logic*

## 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.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fgenerate-and-research-sales-leads-with-jina-ai-and-openai)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Airtable](https://millionrounds.com/workflows?service=Airtable#library)[Gmail](https://millionrounds.com/workflows?service=Gmail#library)

## Workflows like it

Also lead generation, with the same services where possible, closest in size first.

- [**AI-powered YouTube meta generator with Gemini** 30 steps · calls a model · Airtable, YouTube](https://millionrounds.com/workflow/ai-powered-youtube-meta-generator-with-gemini)
- [**Generate B2B leads from any city & business type with Jina.AI** 30 steps · calls a model · Airtable, Slack](https://millionrounds.com/workflow/generate-b2b-leads-from-any-city-and-business-type-with-jina)
- [**Lead generation and qualification with OpenAI** 30 steps · calls a model · Gmail, Google Calendar](https://millionrounds.com/workflow/lead-generation-and-qualification-with-openai)
- [**Lead workflow: Yelp & Trustpilot scraping + OpenAI analysis** 30 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/lead-workflow-yelp-and-trustpilot-scraping-openai-analysis)
- [**Triage Gmail, draft replies and log leads with OpenAI** 30 steps · Gmail, Google Sheets](https://millionrounds.com/workflow/triage-gmail-draft-replies-and-log-leads-with-openai)
- [**Extract sales leads from Google Jobs, LinkedIn & Indeed** 31 steps · calls a model · Apify, Gmail](https://millionrounds.com/workflow/extract-sales-leads-from-google-jobs-linkedin-and-indeed)
