Templates / Automated local business lead generation with Google Maps & GPT-4

Automated local business lead generation with Google Maps & GPT-4

Ready for 3.0

by Shahrukh ✓ · 2,676 views · created 2025-07-05 · Lead Generation, Multimodal AI

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 23 nodes and runs manually, when you click “Execute workflow”. Along the way it connects OpenAI Chat Model.

How it runs

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

  1. Edit Fields (Edit Fields (Set)): sets 2 fields: City, Business
  2. Basic LLM Chain: sends a prompt to an LLM, with model: OpenAI Chat Model; output parser: Structured Output Parser
  3. Split Out: splits a list into separate items
  4. Edit Fields (Edit Fields (Set)): sets 2 fields: output, location
  5. Limit: keeps the first few items
  6. Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
  7. Scrape Google Maps (HTTP Request): calls an HTTP API
  8. Extract URLs (Code): runs custom JavaScript code
  9. Filter: keeps only the items that match a condition
  10. Remove Duplicates: removes duplicate items

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

Services it uses

OpenAI Chat Model

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 (13)

From the author

AI-Powered Local Lead Generation Workflow with n8n This workflow solves one of the biggest pain points for freelancers, agencies, and SaaS founders—finding accurate local business leads at scale without manual copy-pasting or unreliable scraping tools.…

Excerpt from Shahrukh'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.