Templates / Extract marketing agency emails from Google Maps with GPT-4o-mini and Google Sheets

Extract marketing agency emails from Google Maps with GPT-4o-mini and Google Sheets

Ready for 3.0

by Shahrukh Majeed ✓ · 0 views · created 2026-10-20 · Lead Generation, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This AI workflow has 15 nodes and runs manually, when you click “Execute workflow”. Along the way it connects OpenAI Chat Model and Google Sheets.

How it runs

Trigger: Manually, when you click “Execute workflow”.

  1. Set search parameters (Edit Fields (Set)): sets 6 fields: businessType, city, maxSearchQueries…
  2. Generate neighborhood search queries (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI Chat Model; output parser: Parse query list
  3. Split queries into items (Split Out): splits a list into separate items
  4. Limit: keeps the first few items
  5. Search Google Maps (HTTP Request): calls an HTTP API
  6. Extract business websites (Code): runs custom JavaScript code
  7. Limit: keeps the first few items
  8. Fetch business website (HTTP Request): calls an HTTP API
  9. Extract email addresses (Code): runs custom JavaScript code
  10. Keep sites with emails (Filter): keeps only the items that match a condition

…plus 2 more steps. See the full node list below.

Services it uses

OpenAI Chat ModelGoogle Sheets

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (11)

From the author

Quick overview This workflow programmatically generates exhaustive Google Maps search queries for a business type and city using OpenAI, scrapes Google Maps search results to collect business websites, visits each site, extracts unique emails, and appends…

Excerpt from Shahrukh Majeed's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.