Lead scraper with batch processing
Building Marketing Workflows with n8n
Yaron Been
Marketing Automation Architect
From feedback loops to batch processing
$$
👈
Previous workflow
: Self-improving optimizer with feedback loop
👉
New workflow
: Processing multiple items at scale
🧠
New patterns:
batch loops and parallel streams
The lead generation problem
$$
Goal:
Need to find potential customers (e.g., plumbers in Miami)
Manual search takes hours per business
Solution
: Automate the entire process
External API integration
$$
Call
Apify REST API
via HTTP request
Send search query + location
Receive business listings from Google Maps
Batch processing with Split In Batches
$$
Split In Batches
processes items one at a time
Wait node
for rate limiting (1 second)
Regex
extracts emails from HTML
Parallel data streams
$$
Stream A
: business details (names, addresses, phones)
Stream B
: extracted emails (filter, dedupe)
Both aggregate into single items
Merging and final output
Merge node
combines both streams
Code node
matches emails to businesses
Output:
complete lead list with contacts
New patterns you'll learn
$$
🌐 Integrate
external APIs
with HTTP Request
🗂 Master
batch processing
with Split In Batches
🔀 Build
parallel streams
that merge
Let's practice!
Building Marketing Workflows with n8n
Preparing Video For Download...