# Extract Google Maps business leads with Apify and OpenAI: n8n workflow

> Started by an event in a connected app, and works across Google Sheets, Slack and Telegram. It hands the judgement calls to OpenAI.

Source: https://millionrounds.com/workflow/extract-google-maps-business-leads-with-apify-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)

# Extract Google Maps business leads with Apify and OpenAI

Started by an event in a connected app, and works across Google Sheets, Slack and Telegram. It hands the judgement calls to OpenAI. 26 steps, 2 branches, 5 loops or waits: large, and worth reading before you trust it with anything live.

Large Calls a model: OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fextract-google-maps-business-leads-with-apify-and-openai)

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

**2** Branches: places the flow splits

**5** Loops or waits

**3** Services it connects to

## The flow

Starts it 1 Model 2 Logic 12 Service 11

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

- 1 **Start by clicking** Manual trigger *Starts it*
- 2 **Get list of actors** Apify *Service*
- 3 **Split Out** Split Out *Logic*
- 4 **Loop Over Items (actor)** Split In Batches *Logic*
- 5 **If (Check specific actor)** If *Logic*
- 6 **Get list of tasks** Apify *Service*
- 7 **Split Out1** Split Out *Logic*
- 8 **Loop Over Items (task)** Split In Batches *Logic*
- 9 **If (Check specific task)** If *Logic*
- 10 **HTTP (Run Scraper Task)** Http Request *Service*
- 11 **Wait 20s for run successfully and get data** Wait *Logic*
- 12 **HTTP (Get Specific Task Result)** Http Request *Service*
- 13 **Remove Duplicates** Remove Duplicates *Logic*
- 14 **Loop Over Items (lead)** Split In Batches *Logic*
- 15 **Code (Count Toral Incoming Data)** Code *Logic*
- 16 **AI Company Description Generator** Open Ai *Model*
- 17 **Notification message** Telegram *Service*
- 18 **Rapiwa** Rapiwa *Service*
- 19 **Create message** Microsoft Teams *Service*
- 20 **Send a message** Slack *Service*
- 21 **Sheet (Store google maps/lead data)** Google Sheets *Service*
- 22 **Get Website URLs** Set *Logic*
- 23 **Https (Get Raw HTML Content from Business Website)** Http Request *Service*
- 24 **Extract Business Email from Website HTML (GPT-4)** Open Ai *Model*
- 25 **Sheet (Update Email form website)** Google Sheets *Service*
- 26 **Wait 5s** Wait *Logic*

## How it's built

- **Starts on:** An event in a connected app
- **Steps:** 26, with 2 branches, 5 loops or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Google Sheets, Slack, Telegram
- **Model:** OpenAI

## Questions

What does it need to run?

An n8n account, plus your own Google Sheets, Slack and Telegram 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 26 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 26 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%2Fextract-google-maps-business-leads-with-apify-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.

[Google Sheets](https://millionrounds.com/workflows?service=Google+Sheets#library)[Slack](https://millionrounds.com/workflows?service=Slack#library)[Telegram](https://millionrounds.com/workflows?service=Telegram#library)

## Workflows like it

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

- [**Leads generation workflow with OpenAI and Google Sheets** 26 steps · calls a model · Google Sheets, Pinecone](https://millionrounds.com/workflow/leads-generation-workflow-with-openai-and-google-sheets)
- [**US medical leads finder – GPT + Serper + Findymail + Sheets** 26 steps · calls a model · Google Sheets](https://millionrounds.com/workflow/us-medical-leads-finder-gpt-serper-findymail-sheets)
- [**Automate gym lead nurturing with WhatsApp and Google Sheets** 26 steps · Google Sheets](https://millionrounds.com/workflow/automate-gym-lead-nurturing-with-whatsapp-and-google-sheets)
- [**Manage lead follow-ups with Google Sheets and SMTP** 26 steps · Email, Google Sheets](https://millionrounds.com/workflow/manage-lead-follow-ups-with-google-sheets-and-smtp)
- [**Qualify and score WhatsApp Pune real estate leads with Claude** 26 steps · Google Sheets](https://millionrounds.com/workflow/qualify-and-score-whatsapp-pune-real-estate-leads-with-claud)
- [**Scrape Google Maps businesses and contacts with CoreClaw** 26 steps · Google Sheets](https://millionrounds.com/workflow/scrape-google-maps-businesses-and-contacts-with-coreclaw)
