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

⚑ 3,332 views · 🎣 Lead Generation & Enrichment

πŸ’‘ Pro Tip β€” HTTP Request scraping tends to break when sites update their markup. If you’re scraping a major platform, check if ScraperNode covers it β€” it has maintained scrapers for LinkedIn, Instagram, TikTok, YouTube, and 20+ other platforms that return structured data.

View All Scrapers

Description

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:


πŸ”§ Tools & APIs Used


🧠 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:


πŸ“ˆ Use Cases


πŸ“© 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:

πŸ“§ msaidwolfltd@gmail.com

πŸ”— Nodes Used

Google Sheets, HTTP Request, Execute Sub-workflow, Execute Workflow Trigger, Schedule Trigger, Filter

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup