This n8n workflow triggers when a new lead is captured (form, CRM, or webhook), enriches it with company data from multiple APIs, uses AI to score the lead, and pushes the enriched data to your CRM with a recommended next action.
TL;DR — Key Takeaways
- AI-Powered Lead Enrichment Pipeline with n8n — Intermediate level
- Tool: n8n
- 5 steps with detailed instructions
- Prerequisites: n8n, CRM API access (HubSpot/Salesforce), Clearbit/Apollo API key, OpenAI API key, Slack webhook
Use Case
B2B sales teams receiving 50+ leads per day who need prioritization and enrichment before first contact.
Prerequisites
n8n, CRM API access (HubSpot/Salesforce), Clearbit/Apollo API key, OpenAI API key, Slack webhook
Workflow Diagram
AI-Powered Lead Enrichment Pipeline with n8n
Step-by-Step Guide
-
Lead Capture Trigger
Use a Webhook node connected to your lead form or CRM webhook. Map incoming fields: name, email, company, title. Add basic validation in a Code node.
-
Company Enrichment
Add an HTTP Request node to call Clearbit/Apollo API with the company domain. Extract: company size, industry, revenue range, tech stack. Add a 5-second timeout and fallback to manual review if enrichment fails.
-
Social Profile Lookup
Add an HTTP Request node to search LinkedIn/Apollo for the person's profile. Extract: role, tenure, mutual connections, recent activity. Store social links for the sales team.
-
AI Lead Scoring
Use an HTTP Request node to call OpenAI with a structured prompt: 'Score this lead from 1-100 based on: company size, industry fit, role seniority, tech stack match. Provide a 2-sentence rationale.' Include your ICP definition in the prompt.
-
CRM Update and Notification
Push the enriched lead to your CRM (HubSpot/Salesforce) with all enrichment data. If the AI score is 80+, send a Slack notification to the sales team with a one-click 'Book a meeting' link. If below 40, add to nurture campaign automatically.
Tags
This workflow answers:
- How to set up ai-powered lead enrichment pipeline with n8n
- What tools and access you need
- How to troubleshoot common issues