DEV Community

Alex Spinov
Alex Spinov

Posted on

How to Build an Automated B2B Lead Generation System with n8n and Web Scraping

Need to find qualified B2B leads automatically? Here's how I built a system that finds, qualifies, and enriches leads using n8n workflows and web scrapers.

The Problem

Manual lead research costs $15-30/hour per SDR. An average SDR finds 20-30 qualified leads per day. That's $500+/day in labor costs.

I automated it: 500+ qualified leads per day for $0.03 each.

Architecture

Data Sources → Web Scrapers → n8n Workflow → AI Qualification → CRM/Sheets
Enter fullscreen mode Exit fullscreen mode

Step 1: Data Collection (Web Scrapers)

I built scrapers for the sources that matter:

  • Company directories — Extract company name, website, employee count, industry
  • Job boards — Companies hiring = companies growing = companies buying
  • Review platforms — Trustpilot/G2 reviews reveal pain points
  • Social media — Reddit/HN discussions show what people need
  • News — Google News for funding rounds, launches, expansions

All scrapers available free on Apify Store (77 scrapers covering these sources).

Step 2: n8n Workflow

Schedule Trigger (daily)
  → HTTP Request (run scraper via Apify API)
  → Extract results
  → AI Function (GPT-4/Claude for lead scoring)
  → Filter (score > 70)
  → Google Sheets (add qualified leads)
  → Email notification (daily summary)
Enter fullscreen mode Exit fullscreen mode

Step 3: AI Lead Scoring

Use Claude or GPT-4 to score each lead:

{
  "company": "TechCorp",
  "employees": 150,
  "industry": "SaaS",
  "hiring_signal": true,
  "recent_funding": true,
  "score": 87,
  "reason": "Growing SaaS company, recently funded, actively hiring — high likelihood of needing our services"
}
Enter fullscreen mode Exit fullscreen mode

Step 4: Enrichment

For qualified leads (score > 70), enrich with:

  • Decision-maker contacts (LinkedIn scraping)
  • Technology stack (BuiltWith/Wappalyzer)
  • Social media presence
  • Recent news mentions

Results

  • 500+ leads/day processed automatically
  • 70+ qualified leads/day after AI scoring
  • Cost: ~$0.03/lead (API costs only)
  • ROI: 10x-50x vs manual research

Want This Built For You?

I build custom lead generation systems:

  • Custom scrapers for your specific target market
  • n8n workflows with AI qualification
  • Google Sheets/Airtable/CRM output
  • Ongoing maintenance and optimization

Price: $199-499 for a complete system. Email me: Spinov001@gmail.com

Or try my scrapers free: 77 scrapers on Apify


What data sources would be most valuable for YOUR lead generation? Comment below!

Top comments (0)