# Generate B2B leads from any city & business type with Jina.AI: n8n workflow

> Started by someone submitting a form, and works across Airtable and Slack. It puts OpenAI behind a retrieval step, so answers are drawn from documents you...

Source: https://millionrounds.com/workflow/generate-b2b-leads-from-any-city-and-business-type-with-jina (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 B2B leads from any city & business type with Jina.AI

Started by someone submitting a form, and works across Airtable and Slack. It puts OpenAI behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 30 steps, 3 branches, 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-b2b-leads-from-any-city-and-business-type-with-jina)

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

**3** Branches: places the flow splits

**3** Loops or waits

**2** Services it connects to

## The flow

Starts it 1 Model 7 Logic 16 Service 6

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

- 1 **Structured Output Parser** Output Parser Structured *Model*
- 2 **Window Buffer Memory** Memory Buffer Window *Model*
- 3 **Structured Output Parser1** Output Parser Structured *Model*
- 4 **Input Form** Form trigger *Starts it*
- 5 **GPT-5-mini** Lm Chat Open Ai *Model*
- 6 **GPT-5-mini1** Lm Chat Open Ai *Model*
- 7 **web_scraper_tool** Jina Ai Tool *Service*
- 8 **Places Query Agent** Agent *Model*
- 9 **Web Scraping Agent** Agent *Model*
- 10 **Form** Form *Service*
- 11 **If** If *Logic*
- 12 **Merge** Merge *Logic*
- 13 **Places_API_Key** Set *Logic*
- 14 **Error** Stop And Error *Logic*
- 15 **Google Places Search** Http Request *Service*
- 16 **If1** If *Logic*
- 17 **Format Input** Set *Logic*
- 18 **Split Out** Split Out *Logic*
- 19 **Create a record** Airtable *Service*
- 20 **Wait 8 Sec1** Wait *Logic*
- 21 **Loop Over Items** Split In Batches *Logic*
- 22 **Wait 8 Sec** Wait *Logic*
- 23 **Filter** Filter *Logic*
- 24 **Have URL and OPERATIONAL** If *Logic*
- 25 **All Registers** Set *Logic*
- 26 **Convert to File** Convert To File *Service*
- 27 **Main Info** Set *Logic*
- 28 **Domain and Sitemap** Code *Logic*
- 29 **Finish message** Slack *Service*
- 30 **URLs** Set *Logic*

## How it's built

- **Starts on:** Someone submitting a form
- **Steps:** 30, with 3 branches, 3 loops or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Airtable, Slack
- **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 Slack accounts, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on someone submitting a form.

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-b2b-leads-from-any-city-and-business-type-with-jina)
- **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)[Slack](https://millionrounds.com/workflows?service=Slack#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 and research sales leads with Jina AI and OpenAI** 30 steps · calls a model · Airtable, Gmail](https://millionrounds.com/workflow/generate-and-research-sales-leads-with-jina-ai-and-openai)
- [**AI-Powered Cold Calling Automation with Google Sheets** 30 steps · Google Sheets, Slack](https://millionrounds.com/workflow/ai-powered-cold-calling-automation-with-google-sheets)
- [**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)
- [**Automated lead generation & AI research with Apollo** 31 steps · calls a model · Google Sheets, Slack](https://millionrounds.com/workflow/automated-lead-generation-and-ai-research-with-apollo)
- [**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)
