Skip to main content

Auto-collect business leads from Google Maps with APIFY and Gmail

Workflow preview

Workflow preview
100%
Auto-collect business leads from Google Maps with APIFY and Gmail preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Who is this for? Marketers, lead generation agencies, freelancers, consultants, and sales teams who need to collect business leads from Google Maps. Small business owners looking to build targeted ...

Best for

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

Tools used

n8n-nodes-base.httprequest, n8n-nodes-base.filter, n8n-nodes-base.converttofile, n8n-nodes-base.formtrigger, n8n-nodes-base.stickynote, n8n-nodes-base.gmail

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Santhej Kallada.

Original n8n.io source

1.1 Workflow description

Title
Auto-collect business leads from Google Maps with APIFY and Gmail
Workflow name
Auto-collect business leads from Google Maps with APIFY and Gmail

Who is this for?

  • Marketers, lead generation agencies, freelancers, consultants, and sales teams who need to collect business leads from Google Maps.
  • Small business owners looking to build targeted local business lists.
  • Anyone interested in automating web scraping without coding skills. What problem is this workflow solving?

Manually scraping business data from Google Maps is time-consuming and repetitive. This automation simplifies the process by:

  • Collecting business details based on search terms and location.
  • Filtering out irrelevant results.
  • Delivering qualified leads directly to your inbox. What this workflow does

This workflow automates Google Maps lead scraping using APIFY and sends the gathered leads via email. The steps include:

  • Collecting user input through a simple form (business type, location, recipient email).
  • Sending an HTTP request to APIFY to run a Google Maps scraper (actor).
  • Filtering results to include only businesses with email addresses.
  • Converting results to CSV format.
  • Sending an automated email with the leads as a CSV attachment via Gmail. Setup
  1. Create an APIFY Account:
  1. Get Your API Key:
  • Copy your API key from APIFY
  1. Prepare n8n:
  • Create a new workflow.
  • Add an HTTP Request node to interact with APIFY.
  • Configure authentication with your API key.
  1. Customize the Form:
  • Build a simple form inside n8n to collect user inputs: Business Type, City, Country, Recipient Email.
  1. Filter Results:
  • Use IF and Filter nodes to remove entries without email addresses.
  1. Convert to CSV:
  • Use a "Spreadsheet File" node to generate a CSV from the filtered leads.
  1. Send Email:
  • Use the Gmail node (or any email node) to send the CSV file to the provided recipient. How to customize this workflow to your needs

  • Change search parameters to target different business niches or locations.

  • Add filters to only include businesses with websites.

  • Customize the email subject and body.

  • Integrate with CRM or marketing platforms for direct lead injection.

  • Expand filtering logic for more refined targeting. Notes

  • This template uses APIFY (paid service after free credits).

  • You will need an APIFY API key and a Gmail account (or SMTP credentials) to run this automation.

  • For self-hosted n8n users: ensure you have internet access and proper credentials set up for external HTTP requests.

Want A Video Tutorial on How To Setup This Automation : https://www.youtube.com/watch?v=Kz_Gfx7OH6o

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 - Call APIFY Actor

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

Block 2 - Filter Entries With Emails

Type / Role
n8n-nodes-base.filter - filter
Config choices
Version 2.2

Block 3 - Convert to File

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

Block 4 - On form submission

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

Block 5 - Sticky Note

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

Block 6 - Send Email

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

3. Summary Table

Workflow Auto-collect business leads from Google Maps with APIFY and Gmail
Complexity intermediate
Nodes 6
Categories Lead Generation
Author Santhej Kallada
Published 18 Jun 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/5020/5020.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 Auto-collect business leads from Google Maps with APIFY and Gmail do?

Who is this for? Marketers, lead generation agencies, freelancers, consultants, and sales teams who need to collect business leads from Google Maps. Small business owners looking to build targeted ...

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.