🎣 Automated B2B lead generation: Google Places, Scrape.do & AI enrichment

2,284 views · 🎣 Lead Generation & Enrichment

💡 Pro Tip — HTTP Request scraping tends to break when sites update their markup. If you’re scraping a major platform, check if ScraperNode covers it — it has maintained scrapers for LinkedIn, Instagram, TikTok, YouTube, and 20+ other platforms that return structured data.

View All Scrapers

Description

Automated B2B Lead Generation: Google Places, Scrape.do & AI Enrichment

This workflow is a powerful, fully automated B2B lead generation engine. It starts by finding businesses on Google Maps based on your criteria (e.g., “dentists” in “Istanbul”), assigns a quality score to each, and then uses Scrape.do to reliably access their websites. Finally, it leverages an AI agent to extract valuable contact information like emails and social media profiles. The final, enriched data is then neatly organized and saved directly into a Google Sheet.

This template is built for reliability, using Scrape.do to handle the complexities of web scraping, ensuring you can consistently gather data without getting blocked.


🚀 What does this workflow do?

🎯 Who is this for?

✨ Benefits

⚙️ How it Works

  1. Schedule Trigger: The workflow starts automatically at your chosen interval (e.g., daily).
  2. Set Parameters: You define the business type (searchCategory) and location (locationName) in a central Set node.
  3. Find Businesses: It calls the Google Places API to get a list of businesses matching your criteria.
  4. Score & Filter: A custom Function node scores each lead. An IF node then separates high-quality leads from low-quality ones.
  5. Loop & Enrich: The workflow processes each high-quality lead one by one.
    • It uses a scraping service (Scrape.do) to reliably fetch the lead’s website content.
    • An AI Agent (OpenAI) analyzes the website’s footer to find contact and social media links.
  6. Save Data: The final, enriched lead information is appended as a new row in your Google Sheet.

📋 n8n Nodes Used

🔑 Prerequisites

🛠️ Setup

  1. Import the workflow into your n8n instance.
  2. Configure Credentials: Create and/or select your credentials for:
    • Google Places API: In the 2. Find Businesses (Google Places) node, select your Header Auth credential containing your API key.
    • Scrape.do: In the 6a. Scrape Website HTML node, configure credentials for your Scrape.do account.
    • OpenAI: In the OpenAI Chat Model node, select your OpenAI credentials.
    • Google Sheets: In the 7. Save to Google Sheets node, select your Google Sheets OAuth2 credentials.
  3. Define Your Search: In the 1. Set Search Parameters node, update the searchCategory and locationName values to match your target market.
  4. Link Your Google Sheet: In the 7. Save to Google Sheets node, select your Spreadsheet and Sheet Name from the dropdown lists. Map the incoming data to the correct columns in your sheet.
  5. Set Your Schedule: Adjust the Schedule Trigger to run as often as you like (e.g., once a day).
  6. Activate the workflow! Your automated lead generation will begin on the next scheduled run.

🔗 Nodes Used

Function, Google Sheets, HTTP Request, AI Agent, OpenAI Chat Model, Structured Output Parser

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup