Generate city-based business leads with Google Maps and Google Sheets
Ready for 3.0What this workflow does
This workflow has 20 nodes and runs when someone submits an n8n form (“Dynamic Business Leads Generator”). Along the way it connects Google Sheets. It also calls maps.googleapis.com over HTTP.
How it runs
Trigger: When someone submits an n8n form (“Dynamic Business Leads Generator”).
- Set Initial Parameters (Edit Fields (Set)): sets 3 fields: api_key, keyword, targetCity
- Geocode Target City (HTTP Request): calls maps.googleapis.com
- Generate Dynamic Grid (Edit Fields (Set)): sets 1 field: locations
- Split Locations (Split Out): splits a list into separate items
- Search Page (HTTP Request): calls maps.googleapis.com
- Save Page (Edit Fields (Set)): sets 3 fields: page1_results, next_page_token_1, api_key
- Wait: waits 2 seconds
- Search Page (HTTP Request): calls maps.googleapis.com
- Save Page (Edit Fields (Set)): sets 4 fields: page1_results, page2_results, next_page_token_2…
- Wait: waits 2 seconds
…plus 9 more steps. See the full node list below.
Services it uses
HTTP calls to: maps.googleapis.com
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.
Nodes used (8)
- n8n Form Trigger
n8n-nodes-base.formTrigger - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - Split Out
n8n-nodes-base.splitOut - Wait
n8n-nodes-base.wait - Aggregate
n8n-nodes-base.aggregate - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Google Sheets
n8n-nodes-base.googleSheets
From the author
Quick overview This workflow collects business leads from Google Maps by geocoding a user-provided city, searching across a small coordinate grid with Places Nearby Search pagination, and writing enriched business details (name, address, phone, website,…