Lesson 1 of 10
Introduction to Automated Lead Generation
📖 2 min✨ 20 XP
Lead generation is the lifeblood of any B2B business. But manually searching Google Maps, visiting websites, and collecting contact information is tedious and time-consuming. In this module, you'll build an n8n workflow that automates the entire process.
What We're Building
An automated lead generation pipeline that takes search queries (like "dental clinic London"), finds businesses on Google Maps, scrapes their websites for email addresses, and saves validated leads to Google Sheets.
- Takes a list of search queries as input
- Searches Google Maps for each query
- Extracts website URLs from search results
- Visits each website and scrapes email addresses
- Deduplicates and validates found emails
- Saves clean leads to Google Sheets
[Execute Workflow Trigger]
│
▼
[Split in Batches: Loop over queries]
│
▼
[HTTP Request: Google Maps API search]
│
▼
[Code Node: Extract URLs from results]
│
▼
[Filter: Remove irrelevant URLs]
│
▼
[Remove Duplicates: URL dedup]
│
▼
[Split in Batches: Loop over URLs]
│
▼
[HTTP Request: Fetch webpage]
│
▼
[Code Node: Regex email extraction]
│
▼
[Aggregate: Collect all emails]
│
▼
[Remove Duplicates: Email dedup]
│
▼
[Filter: Remove invalid emails]
│
▼
[Google Sheets: Save leads]The complete Google Maps lead generation pipeline
Ethical Lead Generation
This workflow only collects publicly available business contact information from websites that businesses have published themselves. Always respect robots.txt, rate limits, and applicable data protection regulations (GDPR, CAN-SPAM).
Lesson 1 / 10