Category: Automations › Lead Generation & CRM · Best for: Cold outreach teams building email lists · Platform: n8n · Steps: 18
What it does
It visits businesses found on Google Maps and collects their email addresses for you.
- Choose a sheet to populate with data in the Google Sheets node
Works with: Google Sheets
What you get
- The n8n workflow file (
workflow.json), ready to import - This setup guide
- The list of fields to change for your own accounts (see Install below)
- Email support if you get stuck
Before you start
-
An n8n account. Easiest: n8n Cloud (free trial). Self-host for free with Docker:
docker run -it --rm -p 5678:5678 -v n8n_data:/home/node/.n8n docker.n8n.io/n8nio/n8n, then open http://localhost:5678. -
Accounts and API keys for these services:
- None. This workflow only uses built-in n8n nodes and public URLs.
Install
- In n8n, click Create workflow (top right).
- Click the ⋯ menu → Import from file and choose
workflow.json. Or open the file, copy everything and paste it onto the empty canvas with Ctrl/Cmd + V. - Open each node with a red warning triangle and pick or create the matching credential from the list above.
- Click Save.
Test it
- Click Test workflow (or Execute workflow). Starts scraper workflow starts it. Trigger it once with real sample data.
- Click each node to check its output. A green tick means the step worked.
- Fix any red node: it's almost always a credential or a field that still points at a sheet or chat that isn't yours.
Go live
Toggle Active (top right). From now on it runs on its own. Check Executions in the left sidebar to see every run.
How it works, step by step
- Starts scraper workflow starts the workflow (Execute Workflow).
- Run workflow starts the workflow (Manual).
- Search Google Maps with query calls an external API (=https://www.google.com/maps/search/{{ $json.query }}).
- Loop over queries uses Split In Batches.
- Scrape URLs from results reshapes the data for the next step.
- Execute scraper for query uses Execute Workflow.
- Filter irrelevant URLs checks a condition and routes items accordingly.
- Wait between executions pauses before continuing.
- Remove Duplicate URLs uses Remove Duplicates.
- Loop over URLs uses Split In Batches.
- Loop over pages uses Split In Batches.
- Request web page for URL calls an external API (={{ $json.url }}).
- Aggregate arrays of emails uses Aggregate.
- Scrape emails from page reshapes the data for the next step.
- Split out into default data structure uses Split Out.
- Remove duplicate emails uses Remove Duplicates.
- Filter irrelevant emails checks a condition and routes items accordingly.
- Save emails to Google Sheet uses Google Sheets to append.
India & US notes
India: Zoho CRM and WhatsApp follow-ups are the most common combo; you can swap the CRM node for Zoho CRM. US: HubSpot free CRM is the usual starting point.
Extra setup notes
These notes are also on the canvas as yellow sticky notes:
Setup
- Setup your list of queries in the "Run workflow" manual trigger node. Watch this video on how to generate the queries with ChatGPT.
- Choose a sheet to populate with data in the Google Sheets node
- Run the workflow and start getting leads into your Google Sheets document
Optional Set wait time between each query workflow execution. Default is 2 seconds.
Scraper
This workflow will be executed in the background for each query. Click the All executions tab in the left sidebar to see the executions running.
-
Setup your credentials. Here's a video tutorial on how to do that.
-
Choose which document and sheet to save the scraped emails to.
Note
A video tutorial for this workflow guide is available on my Youtube channel
Google Maps Automatic Email Scraper
This workflow automatically scrapes emails from businesses on Google Maps based on a list of queries that you provide.
Optional Add or change the regex for filtering irrelevant URLs.
Optional Add or change the regex for filtering irrelevant/incorrect email addresses.
Troubleshooting
- "Credentials not found": open the node and select your credential again.
- Google "access blocked": in Google Cloud, add your email as a test user on the OAuth consent screen.
- Webhook not firing: copy the node's Production URL (not Test URL) into the other app, and make sure the workflow is Active.
- AI node errors: check your API key has billing enabled and the model name exists on your plan.
- Nothing happens on schedule: the workflow must be Active, and self-hosted n8n must stay running.
Need help?
Reply to your Morning Method order email and we'll help you get it running.
© Morning Method