Hi everyone,
When running bulk outbound or agency lead pipelines, a persistent issue is data decay: 15% to 30% of scraped domains are typically parked, expired, or belong to dead companies. Passing entire raw lists straight into paid enrichment tools or verification APIs burns credits needlessly on leads that cannot receive email.
To eliminate this overhead, I put together a lean waterfall architecture directly inside n8n:
Workflow Architecture
-
Pre-Flight MX Validation (Zero External API Fees)
Instead of paying per-row verification credits, an HTTP Request node calls Google’s Public DNS over HTTPS endpoint:
https://dns.google/resolve?name={{ $json.domain }}&type=MX -
Logic Gate (If Node)
The workflow inspects the DNS response:
- If
Status !== 0(NXDOMAIN or DNS resolution failure) or theAnswerarray is empty, the record is flagged invalid and discarded immediately. - If valid MX records exist, it passes downstream.
-
Lightweight Metadata Scraper
For valid domains, an HTTP node fetches the root HTML with a strict 3-second timeout and passes it to a Code node using standard regex to extract the<title>and<meta name="description">. No headless browser or third-party scraping subscription needed. -
Structured Opener Compilation
The extracted metadata is passed to an LLM node to output structured personalization variables, keeping operational cost strictly to raw token usage.
Open Source Repo & Assets
I open-sourced the standalone Python CLI and the complete n8n workflow JSON file on GitHub:
Would love feedback from the community on handling high-throughput DNS throttling (e.g., rotating between Google DNS and Cloudflare’s 1.1.1.1/dns-query) or any edge cases you’ve run into with multi-tenant agency setups.