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
Building Marketing Workflows with n8n

The lead generation problem

recraft: half: Person at computer searching for business contacts on a map interface

$$

  • Goal: Need to find potential customers (e.g., plumbers in Miami)
  • Manual search takes hours per business
  • Solution: Automate the entire process
Building Marketing Workflows with n8n

External API integration

API Integration

$$

  • Call Apify REST API via HTTP request
  • Send search query + location
  • Receive business listings from Google Maps
Building Marketing Workflows with n8n

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

Batch Processing

Building Marketing Workflows with n8n

Parallel data streams

Parallel Streams

$$

  • Stream A: business details (names, addresses, phones)
  • Stream B: extracted emails (filter, dedupe)
  • Both aggregate into single items
Building Marketing Workflows with n8n

Merging and final output

Merge Output

  • Merge node combines both streams
  • Code node matches emails to businesses
  • Output: complete lead list with contacts
Building Marketing Workflows with n8n

New patterns you'll learn

$$

  • 🌐 Integrate external APIs with HTTP Request
  • 🗂 Master batch processing with Split In Batches
  • 🔀 Build parallel streams that merge
Building Marketing Workflows with n8n
Building Marketing Workflows with n8n

Let's practice!

Building Marketing Workflows with n8n

Preparing Video For Download...