Skip to main content

Generate city-based business leads with Google Maps and Google Sheets

Workflow preview

Workflow preview
100%
Generate city-based business leads with Google Maps and Google Sheets preview
Open on n8n.io

1. Workflow Overview

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 e...

Best for

  • Lead Generation automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.formtrigger, n8n-nodes-base.set, n8n-nodes-base.httprequest, n8n-nodes-base.splitout, n8n-nodes-base.wait, n8n-nodes-base.aggregate, n8n-nodes-base.splitinbatches, n8n-nodes-base.googlesheets

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Abdullah Al Shishani.

Original n8n.io source

1.1 Workflow description

Title
Generate city-based business leads with Google Maps and Google Sheets
Workflow name
Generate city-based business leads with Google Maps and Google Sheets

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, ratings) to a Google Sheets spreadsheet.

How it works

  1. Receives a form submission with a search term, target city, max results value, and a Google Maps API key.
  2. Calls the Google Geocoding API to convert the target city into latitude/longitude coordinates.
  3. Generates a 4-point coordinate grid around the city center and searches Google Places Nearby Search for the keyword at each grid point, paging through up to three result pages with delays to allow page tokens to activate.
  4. Merges results from all pages, collects the returned Place IDs, and iterates through them in batches.
  5. Fetches each business’s details from the Google Places Details API and maps the response into standardized lead fields (name, address, phone numbers, website, rating, review count, status, types).
  6. Appends each lead as a new row into a Google Sheets tab, including the original search term as the category.

Setup

  1. Enable the Google Maps Geocoding API and Places API (Places Nearby Search and Place Details) in a Google Cloud project and generate an API key.
  2. Connect a Google Sheets OAuth2 credential in n8n and select (or replace) the target spreadsheet and sheet tab where leads are appended.
  3. Open the workflow’s form trigger, run a test execution to get the form URL, and submit your keyword, city, and Google Maps API key to start populating the sheet.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - On form submission

Type / Role
n8n-nodes-base.formTrigger - formTrigger
Config choices
Version 2.5

Block 2 - Set Initial Parameters

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 3 - Geocode Target City

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 4 - Generate Dynamic Grid

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 5 - Split Locations

Type / Role
n8n-nodes-base.splitOut - splitOut
Config choices
Version 1

Block 6 - Search Page 1

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 7 - Save Page 1

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 8 - Wait for Page 2

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 9 - Search Page 2

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 10 - Save Page 2

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 11 - Wait for Page 3

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 12 - Search Page 3

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 13 - Merge All Pages

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 14 - Split All Results

Type / Role
n8n-nodes-base.splitOut - splitOut
Config choices
Version 1

Block 15 - Collect All Place IDs

Type / Role
n8n-nodes-base.aggregate - aggregate
Config choices
Version 1

Block 16 - Split Places

Type / Role
n8n-nodes-base.splitOut - splitOut
Config choices
Version 1

Block 17 - Loop Over Places

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 18 - Get Place Details

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 19 - Map Fields

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 20 - Append row in sheet

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 21 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 22 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 23 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 24 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Showing the first 24 of 25 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Generate city-based business leads with Google Maps and Google Sheets
Complexity advanced
Nodes 25
Categories Lead Generation
Author Abdullah Al Shishani
Published 26 May 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/15960/15960.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Generate city-based business leads with Google Maps and Google Sheets do?

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 e...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Lead Generation use case.