Skip to main content

AI-powered Google Maps business scraper with enrichment & export to sheets

Workflow preview

Workflow preview
100%
AI-powered Google Maps business scraper with enrichment & export to sheets preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Overview This workflow automates the discovery, extraction, enrichment, and storage of business information from Google Maps search queries using AI tools, scrapers, and Google Sheets. It is ideal ...

Best for

  • Lead Generation automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.removeduplicates, n8n-nodes-base.splitinbatches, n8n-nodes-base.httprequest, n8n-nodes-base.code, n8n-nodes-base.filter, n8n-nodes-base.executeworkflowtrigger, n8n-nodes-base.wait, n8n-nodes-base.executeworkflow

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Msaid Mohamed el hadi.

Original n8n.io source

1.1 Workflow description

Title
AI-powered Google Maps business scraper with enrichment & export to sheets
Workflow name
AI-powered Google Maps business scraper with enrichment & export to sheets

Overview

This workflow automates the discovery, extraction, enrichment, and storage of business information from Google Maps search queries using AI tools, scrapers, and Google Sheets.

It is ideal for:

  • Lead generation agencies
  • Local business researchers
  • Digital marketing firms
  • Automation & outreach specialists

🔧 Tools & APIs Used

  • Google Maps Search (via HTTP)
  • Custom JavaScript Parsing
  • URL Filtering & De-duplication
  • Google Sheets (Read/Write)
  • APIFY Actor for business scraping
  • LangChain AI Agent (OpenRouter - Gemini 2.5)
  • n8n Built-in Logic (Loops, Conditions, Aggregators)

🧠 Workflow Summary

  1. Trigger The automation starts via schedule (every hour).

  2. Read Queries from Google Sheet Loads unprocessed keywords from a Google Sheet tab named keywords.

  3. Loop Through Keywords Each keyword is used to search Google Maps for relevant businesses.

  4. Extract URLs JavaScript parses HTML to find all external website URLs from the search results.

  5. Clean URLs Filters out irrelevant domains (e.g., Google-owned, example.com, etc.), and removes duplicates.

  6. Loop Through URLs For each URL:

    • Checks if it already exists in the Google Sheet (to prevent duplication).

    • Calls the APIFY Actor to extract full business data.

    • Optionally uses AI Agent (Gemini) to provide detailed insight on the business, including:

      • Services, About, Market Position, Weaknesses, AI suggestions, etc.
    • Converts the AI result (text) to a structured JSON object.

  7. Save to Google Sheet Adds all extracted and AI-enriched business information to a separate tab (Sheet1).

  8. Mark Queries as Processed Updates the original row in keywords to avoid reprocessing.


🗃️ Output Fields Saved

The following information is saved per business:

  • Business Name, Website, Email, Phone
  • Address, City, Postal Code, Country, Coordinates
  • Category, Subcategory, Services
  • About Us, Opening Hours, Social Media Links
  • Legal Links (Privacy, Terms)
  • Logo, Languages, Keywords
  • AI-Generated Description
  • Google Maps URL

📈 Use Cases

  • Build a prospect database for B2B cold outreach.
  • Extract local SEO insights per business.
  • Feed CRMs or analytics systems with enriched business profiles.
  • Automate market research for regional opportunity detection.

📩 Want a Similar Workflow?

If you’d like a custom AI-powered automation like this for your business or agency, feel free to contact me:

📧 [email protected]

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Remove Duplicate URLs

Type / Role
n8n-nodes-base.removeDuplicates - removeDuplicates
Config choices
Version 1.1

Block 2 - Loop over queries

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 3 - Search Google Maps with query

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 4 - Scrape URLs from results

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 5 - Filter irrelevant URLs

Type / Role
n8n-nodes-base.filter - filter
Config choices
Version 2.2

Block 6 - Loop over URLs

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 7 - Starts scraper workflow

Type / Role
n8n-nodes-base.executeWorkflowTrigger - executeWorkflowTrigger
Config choices
Version 1

Block 8 - Wait between executions

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 9 - Execute scraper for query

Type / Role
n8n-nodes-base.executeWorkflow - executeWorkflow
Config choices
Version 1.1

Block 10 - AI Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2

Block 11 - OpenRouter Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenRouter - lmChatOpenRouter
Config choices
Version 1

Block 12 - Code

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 13 - Aggregate

Type / Role
n8n-nodes-base.aggregate - aggregate
Config choices
Version 1

Block 14 - Schedule Trigger

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 15 - Get row(s) in sheet

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.6

Block 16 - Update row in sheet

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.6

Block 17 - If

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 18 - Merge

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 19 - convert string to json object

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 20 - Save DATA to Google Sheet1

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.5

Block 21 - use APIFY

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 22 - get records if exist

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.6

Block 23 - Code1

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 24 - Aggregate1

Type / Role
n8n-nodes-base.aggregate - aggregate
Config choices
Version 1

Showing the first 24 of 25 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow AI-powered Google Maps business scraper with enrichment & export to sheets
Complexity advanced
Nodes 25
Categories Lead Generation, AI Summarization
Author Msaid Mohamed el hadi
Published 25 Jul 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/6439/6439.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does AI-powered Google Maps business scraper with enrichment & export to sheets do?

Overview This workflow automates the discovery, extraction, enrichment, and storage of business information from Google Maps search queries using AI tools, scrapers, and Google Sheets. It is ideal ...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Lead Generation, AI Summarization use case.