Overview
This lesson is part of the n8n AI Automation - Zero to Hero course, Section: 5. Hands-On Projects.
Watch the video above for the full tutorial, or read the written guide below.
What is the n8n Lead Enrichment Capstone and what does it automate?
The Lead Enrichment Capstone is a three-part n8n workflow that automates the entire inbound lead lifecycle: form capture, dual-stage email validation, company enrichment, lead scoring, CRM deduplication, team routing, PDF summary generation, and follow-up scheduling. It replaces a multi-person manual process involving interns, business analysts, sales teams, and managers with a single n8n workflow that processes each lead without human intervention at every routine step.
How to set up the n8n Form Trigger and two-stage email validation pipeline
The n8n Form Trigger node generates a hosted web form inside your n8n workspace, producing a test URL for development and a production URL that activates only after the workflow is set to active. Configure the form with six fields: name (text, required), email (required), company name (required), website (optional), job title (optional), and interest area (dropdown with multi-select, required). Pin the test submission data immediately after the first successful submit so you avoid re-filling the form on every subsequent build step.
The IF node named "basic email validation" runs two n8n built-in functions as AND-joined conditions: .isEmail() confirms the field contains a structurally valid email format, and .extractDomain() extracts the domain so it can be checked against an array of blacklisted disposable-email services such as fake-mail and temp-mail. Any lead failing this gate is logged to a Google Sheets node configured to append a row to the "All Leads Log" sheet with the timestamp (using the now expression), full name, email, company name, status set to "discarded," and reason set to "basic email validation failed."
The Hunter.io node, available natively in n8n, runs the "email verifier" operation against the lead's email address and returns a status field and a numeric confidence score. A second IF node named "third party email validation" then checks that status equals "valid" (with case-insensitive comparison and type conversion enabled) AND that score is greater than 20. Leads failing either condition are appended to the same "All Leads Log" sheet with reason "third party email validation failed, invalid status of the email and/or low email deliverability score," keeping a complete audit trail before the workflow continues to company enrichment in parts two and three.
Key Takeaways
- The n8n Form Trigger node replaces a Google Forms plus webhook setup during development; switch to the production URL and activate the workflow when connecting to a live website form.
- The IF node's built-in
.isEmail()and.extractDomain()functions perform format checking and domain blacklisting without any custom code or external HTTP calls. - Hunter.io's native n8n node returns both a
statusfield (the primary signal, replacing the deprecatedresultfield) and a numericscore; the capstone usesstatus = "valid"ANDscore > 20as the minimum combined threshold. - Every discarded lead at any validation stage gets appended to the Google Sheets "All Leads Log" with a timestamped reason string, creating a durable rejection record that prevents the same bad lead from consuming pipeline resources again.
- Part one of the capstone completes automation of steps one and two from the original manual process (form intake and email validation), eliminating the intern and sales-ops roles responsible for those tasks.
Related Lessons
Next Steps
Continue your n8n journey with the full n8n AI Automation - Zero to Hero course.