Automate lead generation by scraping website contact details from Google Sheets URLs and enriching the data. This robust n8n workflow uses nested loops for deep email extraction.
Download this n8n workflow template and start using it instantly.
Sales and Marketing Teams: Individuals needing to rapidly enrich raw lead lists (e.g., from Google Maps) with verified contact information. Data Analysts: Users who need a reliable, repeatable n8n workflow for large-scale data cleansing and augmentation.* n8n Users: Developers looking for advanced n8n templates demonstrating nested looping and resilient web scraping techniques.
Manually visiting hundreds or thousands of business websites to find contact emails is an inefficient use of time. This powerful n8n workflow template automates this crucial lead enrichment process. It retrieves a list of URLs from a Google Sheet (typically output from a Google Maps scraping tool), systematically scrapes each website for an email address, and handles common errors like broken links or missing contact pages.
This resilient n8n automation leverages multiple HTTP Request n8n nodes and custom logic to first search the main domain. If no email is found, it automatically identifies potential internal contact pages (like '/contact' or '/about') and initiates a secondary, deeper scrape using nested loops. This ensures maximum data capture efficiency. By using this n8n workflow, users can turn raw lead data into actionable sales intelligence directly within their Google Sheets.
This n8n workflow is designed to run as a scheduled or manual batch process, starting with the Manual n8n trigger.
To deploy this comprehensive n8n workflow template, follow these steps:
This n8n workflow template utilizes several powerful n8n nodes:
Manual Trigger n8n trigger: Serves as the starting point for batch processing. This is a common setup for n8n templates that handle large data imports.
Google Sheets n8n node (Get row(s) in sheet, Email Updated, etc.): Used extensively for both retrieving the initial list of lead data and for writing back the results (found email, or status 'Not Found'). Key configurations include the 'Operation' (Get or Update) and mapping the column names.
Split In Batches n8n node (Loop Over Items & Loop Over Items1): Essential for managing large datasets by breaking them into manageable chunks and facilitating the primary and secondary looping structures of the n8n workflow.
HTTP Request n8n node (Primary and Internal Fetch): The core scraping component. This n8n node fetches the HTML content of the target URL. The primary request is configured with robust error handling (onError: continueErrorOutput) to prevent the entire n8n workflow from crashing on a single bad URL.
Code n8n node (Extract Email, Extract Pages): Custom JavaScript is used here for advanced data manipulation, specifically applying regex or parsing techniques to reliably extract email addresses and identify internal page links from the raw HTML content.
If n8n node: Used throughout the n8n workflow to conditionally route the data based on whether an email was successfully found, determining whether to update the sheet immediately or proceed to the deeper scraping loop.
Use this advanced n8n workflow to automate comprehensive Google Classroom tasks like managing topics, assignments (coursework), teachers, and students using natural language via Google Gemini AI agents. Explore more n8n templates for education.

Use this powerful n8n workflow to monitor Google Business Profile reviews, generate AI-powered responses, alert teams via Slack, and log all data to Google Sheets instantly. Deployable via n8n templates.

Automate Google Ads search term analysis with this advanced n8n workflow. Identify non-brand keyword wastage using Gemini AI and deliver actionable negative keyword reports to Slack instantly.

Use this powerful n8n workflow to extract leads from Google Maps using Serper API, enrich contact data via Perplexity AI, and ensure data quality with email verification. Find reliable n8n templates here.

Use this powerful n8n workflow to automatically generate and post replies to new Google My Business reviews using Gemini AI. Features include multi-location routing, Google Sheets logging, and a scheduled n8n trigger.

I partner with businesses to streamline processes and accelerate growth through intelligent AI automation and Web/mobile Development. Leveraging deep expertise in GPT-4, LangChain, and n8n, I develop AI-powered agents and sophisticated LLM pipelines.







































