How to build an n8n Google Maps lead generation workflow

A node-by-node build for an n8n pipeline that searches Google Maps, removes duplicates, uses AI to find emails and owner names, verifies them, and sends clean leads to your sheet, CRM or sequencer.

Updated Nov 18, 2026 · 13 min read

Illustration of an automated pipeline flowing from map location pins through filtering, website enrichment and verification nodes into organized contact cards

Most n8n Google Maps lead generation templates stop once the raw listings land in a spreadsheet. You end up with business names, phone numbers and websites, but no emails, no owner names and nothing a sequencer can send to.

This guide covers the full pipeline node by node: search, dedupe, AI enrichment, verification and routing. It also explains where homemade versions tend to break and what they cost to run.

What an n8n Google Maps lead generation workflow actually does

It turns a keyword and a location, such as "roofers in Tampa," into a list of local businesses you can contact, without any copy-pasting. A complete workflow has five stages, and most public templates only cover the first one.

StageWhat happensMain n8n nodesOutput
1. SearchQuery Google Maps for each keyword and cityGoogle Sheets, Loop Over Items, HTTP RequestRaw listings
2. CleanRemove duplicates and off-niche resultsRemove Duplicates, Filter, IFUnique, relevant businesses
3. EnrichRead each website and pull emails, owner names and socialsHTTP Request, HTML, AI/LLM node, CodeContact data
4. VerifyCheck every email before sendingHTTP Request, SwitchSafe-to-send emails
5. RoutePush leads to their destinationGoogle Sheets, HighLevel, HTTP RequestLeads in your sheet, CRM or campaign

You need all five stages if you want a list you can actually send to.

The nodes and accounts you need before you start

You need an n8n instance, a few API keys and a Google Sheet to hold your inputs. Set up all of these before you build so you aren't stopping halfway to create credentials.

Accounts and keys:

  • n8n, either n8n Cloud or self-hosted. Self-hosting removes execution limits, but you take on the maintenance.
  • Google Cloud project with the Places API (New) enabled and billing turned on. Billing is required even if you stay inside free usage.
  • Google Sheets OAuth credential in n8n, connected to the same Google account that owns your sheet.
  • LLM API key from OpenAI, Anthropic or another provider. You'll use it for the enrichment step.
  • Email verification API key from whichever verifier you prefer.
  • Destination API key, such as a GoHighLevel location key or an Instantly or Smartlead API key.

Nodes you will use: Manual or Schedule Trigger, Google Sheets, Loop Over Items, HTTP Request, Code, Remove Duplicates, Filter, IF, Switch, HTML, Wait and an AI node (Basic LLM Chain or the OpenAI node) with a structured output parser.

Build and test everything against one keyword in one city first. A single small run will show most of your bugs at a fraction of the cost of a full one.

Step 1: Pull Google Maps listings by keyword and location

Read your keyword and city pairs from a sheet, loop over them, and send each pair to the Places API text search endpoint with an HTTP Request node. Then flatten the response into one item per business.

  1. Create an input sheet with the columns keyword, city and status. Ten keywords across ten cities gives you 100 rows, and each row is one search.
  2. Add a Google Sheets node that reads rows where status is empty. Your workflow can then resume where it left off if something fails.
  3. Add Loop Over Items with a batch size of 1. One search at a time keeps you under rate limits.
  4. Add an HTTP Request node with method POST and URL https://places.googleapis.com/v1/places:searchText. Put your API key in the X-Goog-Api-Key header.
  5. Set a field mask in the X-Goog-FieldMask header. Ask only for the fields you need, for example: places.id,places.displayName,places.formattedAddress,places.nationalPhoneNumber,places.websiteUri,places.rating,places.userRatingCount,places.types,places.businessStatus,nextPageToken. Google bills the API by the fields you request, so a lean mask keeps costs down.
  6. Send a body like {"textQuery": "{{$json.keyword}} in {{$json.city}}"}.
  7. Handle pagination. If the response includes nextPageToken, call the endpoint again with pageToken in the body. Add a short Wait node between pages.
  8. Flatten the results with a Code node.

Here is a minimal Code node for step 8:

const out = [];
for (const item of $input.all()) {
  for (const p of item.json.places || []) {
    out.push({ json: {
      place_id: p.id,
      name: p.displayName?.text || '',
      address: p.formattedAddress || '',
      phone: p.nationalPhoneNumber || '',
      website: p.websiteUri || '',
      rating: p.rating || null,
      reviews: p.userRatingCount || 0,
      types: (p.types || []).join(','),
      status: p.businessStatus || ''
    }});
  }
}
return out;

The official API returns results in pages of 20 and caps how many it gives you per query. That cap is lower than what you see when you scroll the Maps app. The trade-offs are covered in Google Maps API vs a scraper for lead generation.

The API also never returns email addresses, because Google Business Profiles don't store them. That is why Step 3 exists.

Step 2: Deduplicate and filter out listings outside your niche

Remove duplicates by place_id first, then by website domain. After that, filter out closed businesses and listings that don't match your niche.

Duplicates are common. Searching "dentist" and "dental clinic" in the same city, or neighboring cities, returns many of the same practices.

  • Remove Duplicates node on place_id. Newer versions of the node can also skip items processed in previous executions, so a weekly scheduled run won't send the same lead twice.
  • Domain dedupe. Add a Code node that pulls the root domain from website, then dedupe on it. Multi-location businesses often share one website and one inbox, and one email per domain is usually enough.
  • Closed businesses. Filter on status equals OPERATIONAL.
  • Niche match. Text search pulls in neighbors. A search for "roofers" can return gutter suppliers and home improvement stores. Use a Filter node on the types field or the name, or add a cheap AI classification step that answers yes or no. More on this in why Google Maps leads miss your niche.
  • No website. Send these to a separate branch with an IF node instead of deleting them. You can't enrich them from a site, but if you sell web design they are your best prospects.
  • Size signals. A minimum review count, such as 10 or more, removes many inactive or brand-new listings. Set the number to match your ICP.

Expect this step to cut your raw count noticeably. That's intended, because every lead you remove here is one you don't pay to enrich.

Step 3: Use an AI node to extract emails, owner names and socials from each website

Fetch the homepage and the contact or about page, strip the HTML down to plain text, and ask an LLM to return structured JSON. Then use a Code node to check that the AI didn't invent anything.

Laptop next to a pinned city map with glowing lines linking business locations to blank contact cards and envelopes

  1. Fetch the homepage with an HTTP Request node. Set a 10 to 15 second timeout and turn on "Continue On Fail" so one dead site doesn't stop the whole run.
  2. Find the contact and about pages. Use the HTML node to pull every href, then a Code node to keep links containing contact, about, team or our-story. Fetch up to two of them.
  3. Strip to text. Remove scripts, styles and navigation, collapse whitespace and cut the result to a fixed length. Most contact details sit in the footer or on the contact page, so keep those parts.
  4. Run regex first. A simple email pattern and a search for mailto: links will catch most visible emails for free. Save the AI for what regex can't do.
  5. Call the AI node with a structured output parser and the prompt below.
  6. Validate. In a Code node, keep an email only if that exact string appears in the page text you fetched. Drop any owner name that doesn't appear in the text.

A prompt template that works well:

You are extracting contact data from a local business website.
Business: {{name}} in {{city}}.
Return JSON with: emails (array), owner_name, owner_title,
facebook, instagram, linkedin, youtube.
Rules:
- Only return values that appear in the text below.
- owner_name must be a person described as owner, founder,
  principal, president or similar. Otherwise return null.
- Prefer personal emails over info@ or contact@ when both exist.
- If unsure, return null. Never guess an email pattern.
Text:
{{page_text}}

The validation step in point 6 matters. LLMs will sometimes produce a plausible email like john@smithroofing.com that appears nowhere on the site. Sending to guessed addresses leads to bounces.

Set realistic expectations. Some sites only have a contact form, some load their content with JavaScript that a plain HTTP Request can't read, and some hide emails as images. You will get blanks. For ways to fill the gaps, see how to get emails from Google Maps businesses.

Step 4: Verify emails before they reach your outreach tool

Send every email to a verification API and only pass on addresses that come back valid. Unverified lists bounce, and high bounce rates damage the sending domains you spent weeks warming up.

  1. Add an HTTP Request node that calls your verifier with the email.
  2. Add a Switch node on the result status. Verifiers usually return something like valid, invalid, catch-all and unknown.
  3. Route by status:
    • Valid: continue to Step 5.
    • Catch-all: send to a separate, smaller campaign or a low-volume inbox. The server accepts everything, so the address can't be confirmed.
    • Invalid or unknown: write back to the sheet with a reason, and keep the phone number for calling.
  4. Flag role-based addresses. info@ and office@ are valid but reach a shared inbox. Tag them so your copy can say "could you pass this to the owner?"

Turn on "Retry On Fail" for the verification node with a few seconds between tries, because verifiers time out on slow mail servers. The full reasoning is in why you should verify emails before sending.

Step 5: Route leads to Google Sheets, GoHighLevel, Instantly or Smartlead

Use a Switch node to send each verified lead to the right place. Write every lead to Google Sheets as your record, then push it to your CRM or sequencer.

  • Google Sheets: use "Append or Update" keyed on place_id so reruns update rows instead of duplicating them. Mark the input row's status as done here too.
  • GoHighLevel: n8n has a HighLevel node that can create or update contacts. Add tags for niche and city so your GHL workflows can trigger on them.
  • Instantly or Smartlead: call their APIs with an HTTP Request node to add leads to a specific campaign. Pass custom variables so your copy can use them. Walkthrough: how to send Google Maps leads to Instantly.

Map your fields deliberately. These are the ones worth passing to a sequencer:

Field from the workflowSequencer variableUse in copy
owner_name (first word)firstName"Hi Maria,"
namecompanyName"...at Bayview Dental"
citycity"other practices in Tampa"
rating, reviewscustom fields"4.9 stars across 212 reviews"
websitewebsiteReference a specific page
is_role_basedcustom fieldSwitch to "pass this to the owner" copy

If owner_name is empty, give it a fallback such as "there" so the email doesn't open with a blank greeting.

Where DIY n8n Google Maps workflows break: result caps, rate limits and API costs

The workflow above runs fine on a 50-lead test. At scale, it breaks in four predictable places.

The result cap

One Google Maps search never returns every business in a city. The official API stops well short of what you see in the app, and the app itself stops at around 120 results per search. The full explanation is in why a Google Maps search stops at around 120 results.

The usual fix is to search by ZIP code or neighborhood instead of by city. That works, but it multiplies your requests and the duplicates you have to remove. A metro area with 40 ZIP codes and 5 keywords means 200 searches instead of 5.

Rate limits and retries

Both the Places API and LLM providers return 429 errors when you go too fast. Add "Retry On Fail" on every external node, put Wait nodes inside your loops, and for large runs build exponential backoff, where each retry waits longer than the last. Also set up an error workflow that alerts you, because otherwise failed runs go unnoticed.

Websites that resist scraping

Plain HTTP requests can't render JavaScript-heavy sites. Some hosts block automated requests, and some sites take 20 seconds to respond. Each problem needs its own fix, such as a headless browser service, a longer timeout or a skip rule. Each fix adds another node to maintain.

API costs add up across four meters

You pay for Places API requests, LLM tokens, verification checks and n8n hosting or executions. Here is a worked example of the volume, not the price. Check each provider's current pricing yourself.

  • 200 searches with up to 3 pages each: up to 600 Places requests.
  • 2,000 raw listings, falling to roughly 1,200 after dedupe and filtering.
  • Around 1,000 with websites, at 2 to 3 page fetches each: about 2,500 HTTP requests.
  • 1,000 LLM calls, at a few thousand tokens per trimmed page.
  • However many emails you found, each needing one verification check.

The less obvious cost is your time. Google changes API fields, LLM providers retire models, and sequencers change their APIs. Someone has to notice and fix the workflow each time.

Swapping the scraping and enrichment nodes for a single Prospect Cheap API call

You can replace Steps 1 to 3 with one HTTP Request node that calls the Prospect Cheap REST API. You then keep n8n for what it does best: logic, routing and connecting your other tools.

Prospect Cheap collects live leads from Google Maps and uses AI to read each business's website. It returns emails, the owner's name and title, phone numbers and social profiles. On paid plans you can also verify emails in one click, which covers most of Step 4.

Before: Sheets → Loop → Places HTTP Request → pagination → Code → Remove Duplicates → Filter → website fetch → HTML → Code → AI node → validation Code → verifier → Switch → destinations.

After: Sheets → Loop → Prospect Cheap HTTP Request → Filter (your own rules) → Switch → destinations.

The nodes you no longer maintain are the ones that fail most often: pagination, website fetching, HTML cleanup, prompt tuning and hallucination checks.

Pricing is one credit per lead found, with monthly plans from $29 and 150 free credits to start. Check the pricing page for current plan sizes.

You may not need n8n at all for delivery. Prospect Cheap can send leads directly to GoHighLevel, Instantly, Smartlead or lemlist, or export a CSV. There's also an MCP server if you'd rather run searches from an AI assistant.

Build or buy: when a homemade workflow is worth maintaining

Build it yourself if the workflow is the product or you need unusual logic. Buy if you just need leads every week and your time is better spent on outreach.

FactorDIY n8n workflowAPI call to a lead tool
Setup timeDays of building and testingAn hour or less
Ongoing maintenanceYours, every time an API or site changesThe vendor's
Cost modelFour separate meters plus your timePer lead found
Owner names and socialsDepends on your prompt and validationIncluded
Custom logicUnlimitedDone in n8n after the call
Learning valueHighLow

Building makes sense when:

  • You sell automation services and the workflow itself is something you deliver to clients.
  • You need a custom extraction, such as reading menu prices or booking platforms from each site.
  • You run small volumes and enjoy the tinkering.

Buying makes sense when:

  • You're an agency or sales team that needs a steady supply of leads across several niches.
  • You've already lost a week to a broken pagination loop or blank AI outputs.
  • You'd rather spend your hours writing offers and booking calls.

Many teams end up with a hybrid: a lead tool for search and enrichment, with n8n handling scoring, routing and CRM updates.

Next steps

  1. Build your input sheet with 5 keywords and 3 cities, and run Steps 1 and 2 only.
  2. Add enrichment for 25 leads and check every extracted email against the source page by hand.
  3. Add verification and routing to a test campaign before you connect a live one.
  4. Track your cost per verified lead across all four meters for one full run.
  5. Compare that number, and the hours spent, with a per-lead API call, then decide which parts of the workflow to keep.

Frequently asked questions

Search Google Maps for a business type in a specific area, collect the listings, then find contact details from each business's website, since listings don't include emails. You can do this by hand, with an automation tool like n8n, or with a dedicated Google Maps lead tool that handles search and enrichment together. Filter for your niche and verify emails before sending any outreach.

AI-powered Google Maps lead generation

Live local business leads from Google Maps — AI finds the owner, emails and socials for every one. Start with free credits.

More from Blog

See all