Automated local business lead generation with Google Maps & GPT-4
Ready for 3.0What 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”.
- Edit Fields (Edit Fields (Set)): sets 2 fields: City, Business
- Basic LLM Chain: sends a prompt to an LLM, with model: OpenAI Chat Model; output parser: Structured Output Parser
- Split Out: splits a list into separate items
- Edit Fields (Edit Fields (Set)): sets 2 fields: output, location
- Limit: keeps the first few items
- Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
- Scrape Google Maps (HTTP Request): calls an HTTP API
- Extract URLs (Code): runs custom JavaScript code
- Filter: keeps only the items that match a condition
- Remove Duplicates: removes duplicate items
…plus 10 more steps. See the full node list below.
Services it uses
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (13)
- Manual Trigger
n8n-nodes-base.manualTrigger - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Split Out
n8n-nodes-base.splitOut - Edit Fields (Set)
n8n-nodes-base.set - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Limit
n8n-nodes-base.limit - Wait
n8n-nodes-base.wait - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - Filter
n8n-nodes-base.filter - Remove Duplicates
n8n-nodes-base.removeDuplicates
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.…