A technical deep-dive into the 5-phase orchestration engine we deployed for a B2B marketplace — combining headless browser automation, multi-API data enrichment, and Claude NLP intent classification to eliminate manual prospecting entirely.


B2B lead generation has always been labor-intensive. The conventional model relies on Sales Development Representatives (SDRs) performing four distinct tasks: identifying target companies, finding decision-maker contact details, crafting personalized outreach, and triaging inbound replies. Each step is manual, error-prone, and expensive.
Our client — a B2B analytics platform — was spending over $18,000/month on a 3-person SDR team. Their pipeline was generating leads, but the unit economics were unsustainable: roughly $75 per qualified conversation. They needed to scale outbound volume by 4x without proportionally scaling headcount.
Rather than optimizing the existing manual process, we redesigned it from first principles. The result is a closed-loop system where every phase operates autonomously, with human involvement only at the point of qualified conversation.
The first challenge was acquiring target company data at scale. Industry directories and competitor platforms employ sophisticated bot detection — CAPTCHAs, browser fingerprinting, rate limiting, and JavaScript challenges.
We deployed headless Chromium instances via Apify Cloud, orchestrated through Playwright. The critical design decision was implementing a rotating residential proxy pool that distributes requests across thousands of IP addresses, making automated access indistinguishable from organic browsing. Each scraping session automatically handles:
Raw scraped data is inherently incomplete. A typical listing might include a company name and address, but no email, phone number, or decision-maker name. The conventional approach is to use a single enrichment provider (e.g., Apollo.io) and accept its coverage gaps.
We engineered an intelligent waterfall routing system in n8n that cascades each incomplete record through multiple providers in order of cost-effectiveness:
The waterfall logic is deterministic: if Hunter.io returns a verified email, the record skips Apollo. If Apollo fills remaining fields, Clearbit is skipped. This minimizes API spend while maximizing data completeness. The result: 85%+ contact fill rates compared to ~35% with any single provider.
With enriched, validated contact records, the system triggers personalized email sequences via SendGrid on dedicated IP addresses. The outreach engine handles:
Using dedicated IPs (rather than shared SendGrid pools) is critical for deliverability at scale. We warm each IP gradually over 2-3 weeks before increasing volume, maintaining sender reputation scores above 95.
This is where the system becomes genuinely autonomous. Traditional outbound operations require a human to read every reply and categorize it: is this person interested? Are they asking a question? Do they want to be removed?
We replaced this entirely with Claude AI as an NLP intent classifier. The system polls reply inboxes hourly and passes each message through a structured prompt that outputs a JSON classification:
{
"intent": "hot_lead" | "question" | "opt_out" | "out_of_office" | "irrelevant",
"confidence": 0.92,
"suggested_action": "route_to_sales" | "auto_respond" | "suppress"
}
Each classification triggers a downstream action automatically:
The sales team only ever interacts with prospects who have demonstrated genuine buying intent. Everything else is handled autonomously.
An autonomous system is only as good as its monitoring. We built a comprehensive observability layer that tracks:
After 90 days of production operation:
This architecture is not universally applicable. It works best when:
For account-based selling with fewer than 100 target accounts, manual research and personalized outreach will typically outperform automated systems. The economics only favor automation at scale.
Platforms like Apollo.io, Outreach, and Salesloft offer partial automation. The difference with a custom-built pipeline is control and cost:
The tradeoff is upfront engineering investment (~4 weeks) versus ongoing SaaS subscriptions. For organizations processing 1,000+ leads/month, the custom approach typically breaks even within 60 days.
Want to explore whether an autonomous pipeline makes sense for your sales operation? Book a free architecture consultation — we'll map your current process and identify automation opportunities.

Founder & CEO at Alfa Analytics
Helping enterprises turn data into revenue. Expert in data engineering, BI dashboards, and analytics strategy across 18+ industries.
Our team has delivered 400+ analytics projects across 18 industries. Book a free 30-minute consultation to discuss how we can help.