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

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

Needs changes

by Onur ✓ · 3,060 views · created 2025-09-10 · Lead Generation, AI Summarization

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: Function (legacy). 1 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 15 nodes and runs manually, when you click “Execute workflow”. Along the way it connects OpenAI Chat Model and Google Sheets. It also calls places.googleapis.com and api.scrape.do over HTTP.

How it runs

Trigger: Manually, when you click “Execute workflow”.

  1. 1. Set Search Parameters (Edit Fields (Set)): sets or maps fields
  2. 2. Find Businesses (Google Places) (HTTP Request): calls places.googleapis.com (POST)
  3. 3. Parse & Score Leads (Function): runs custom JavaScript (legacy Function node)
  4. 4. Filter High-Quality Leads (If): checks a condition and branches into true / false
  5. 5. Loop Through Each Lead (Loop Over Items (Split in Batches)): loops over the items in batches
  6. Generate Report (Function): runs custom JavaScript (legacy Function node)
  7. Error Logging (Function): runs custom JavaScript (legacy Function node)
  8. 6a. Scrape Website with Scrape.do (HTTP Request): calls api.scrape.do
  9. 6b. Check if Scrape Was Successful (If): checks a condition and branches into true / false
  10. 6c. Extract Footer from HTML (HTML): parses or builds HTML

…plus 2 more steps. See the full node list below.

Services it uses

OpenAI Chat ModelGoogle Sheets

HTTP calls to: places.googleapis.com, api.scrape.do

Scraping pages by hand? Firecrawl is a simpler option (10% off for new users).

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • Function (legacy) in Generate Report, Error Logging, 3. Parse & Score Leads: replace with Code node, mode 'Run Once for All Items'.

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Removed in 3.0Replace with
Function (legacy)
Generate Report, Error Logging, 3. Parse & Score Leads
Code node, mode 'Run Once for All Items'

Nodes used (11)

From the author

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…

Excerpt from Onur's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.