n8n B2B Lead Enrichment Workflow: Domain to Decision-Makers
Copy or download the complete 6-node n8n workflow blueprint below and paste it directly onto any self-hosted or n8n Cloud canvas (Cmd/Ctrl + V). Every inbound signup or HubSpot webhook automatically resolves corporate firmographics via GET /v1/company (10 credits · $0.40–$1.00/1K), discovers VP/C-suite buyers via GET /v1/people/search (2 credits/person · $0.08–$0.20/1K), and posts rich deal alerts to Slack while upserting HubSpot CRM—with zero LinkedIn cookies or proxy maintenance.
Webhook / HubSpot
Extracts domain from work email or form payload.
GET /v1/company
Enriches size, industry, HQ & slug ($0.40–$1.00/1K).
GET /v1/people/search
Finds top 5 VPs/Founders ($0.08–$0.20/1K; 0 on empty).
Slack + HubSpot CRM
Alerts reps & upserts enriched company fields.
Copy or download workflow.json
{
"name": "B2BProfile API — Inbound Domain to Company & Decision-Makers (Slack + CRM)",
"nodes": [
{
"parameters": {
"httpMethod": "POST",
"path": "b2b-inbound-lead",
"responseMode": "onReceived",
"options": {}
},
"id": "c1a01001-4b2b-4c00-8001-000000000001",
"name": "Inbound Lead Webhook (HubSpot / Signup)",
"type": "n8n-nodes-base.webhook",
"typeVersion": 2,
"position": [
220,
300
]
},
{
"parameters": {
"method": "GET",
"url": "https://api.b2bprofileapi.com/v1/company",
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"sendQuery": true,
"queryParameters": {
"parameters": [
{
"name": "domain",
"value": "={{ ($json.body?.domain || $json.domain || $json.email?.split('@')[1] || '').toLowerCase().trim() }}"
}
]
},
"options": {
"timeout": 15000,
"retry": {
"maxTries": 2,
"waitBetweenTries": 1500
}
}
},
"id": "c1a01002-4b2b-4c00-8002-000000000002",
"name": "Step 1: Enrich Company (/v1/company)",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
480,
300
],
"onError": "continueRegularOutput"
},
{
"parameters": {
"conditions": {
"options": {
"caseSensitive": false,
"leftValue": "",
"typeValidation": "loose"
},
"conditions": [
{
"id": "cond-status-ok",
"leftValue": "={{ $json.status }}",
"rightValue": "ok",
"operator": {
"type": "string",
"operation": "equals"
}
},
{
"id": "cond-has-slug",
"leftValue": "={{ $json.data?.slug }}",
"rightValue": "",
"operator": {
"type": "string",
"operation": "notEmpty"
}
}
],
"combinator": "and"
}
},
"id": "c1a01003-4b2b-4c00-8003-000000000003",
"name": "Company Resolved?",
"type": "n8n-nodes-base.if",
"typeVersion": 2,
"position": [
720,
300
]
},
{
"parameters": {
"method": "GET",
"url": "https://api.b2bprofileapi.com/v1/people/search",
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"sendQuery": true,
"queryParameters": {
"parameters": [
{
"name": "company",
"value": "={{ $node['Step 1: Enrich Company (/v1/company)'].json.data.slug }}"
},
{
"name": "company_domain",
"value": "={{ $node['Step 1: Enrich Company (/v1/company)'].json.data.domain }}"
},
{
"name": "title",
"value": "={{ $('Inbound Lead Webhook (HubSpot / Signup)').item.json.body?.target_title || 'VP' }}"
},
{
"name": "country_code",
"value": "US"
},
{
"name": "limit",
"value": "5"
}
]
},
"options": {
"timeout": 15000
}
},
"id": "c1a01004-4b2b-4c00-8004-000000000004",
"name": "Step 2: Find Decision-Makers (/v1/people/search)",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
980,
220
],
"onError": "continueRegularOutput"
},
{
"parameters": {
"method": "POST",
"url": "https://hooks.slack.com/services/YOUR/SLACK/WEBHOOK",
"sendBody": true,
"specifyBody": "json",
"jsonBody": "={\n \"text\": \"🎯 Qualified Inbound Account: \" + $node['Step 1: Enrich Company (/v1/company)'].json.data.name + \" (\" + ($node['Step 1: Enrich Company (/v1/company)'].json.data.company_size || 'Size N/A') + \" · \" + ($node['Step 1: Enrich Company (/v1/company)'].json.data.industry || 'B2B') + \")\\nTop Decision-Maker: \" + ($json.data?.items?.[0]?.full_name || 'N/A') + \" — \" + ($json.data?.items?.[0]?.current_title || '') + \" (\" + ($json.data?.items?.[0]?.profile_url || '') + \")\"\n}",
"options": {}
},
"id": "c1a01005-4b2b-4c00-8005-000000000005",
"name": "Post Enriched ICP Alert to Slack",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
1260,
140
]
},
{
"parameters": {
"method": "POST",
"url": "https://api.hubapi.com/crm/v3/objects/companies/batch/upsert",
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"sendBody": true,
"specifyBody": "json",
"jsonBody": "={\n \"inputs\": [\n {\n \"idProperty\": \"domain\",\n \"id\": $node['Step 1: Enrich Company (/v1/company)'].json.data.domain,\n \"properties\": {\n \"name\": $node['Step 1: Enrich Company (/v1/company)'].json.data.name,\n \"industry\": $node['Step 1: Enrich Company (/v1/company)'].json.data.industry,\n \"description\": $node['Step 1: Enrich Company (/v1/company)'].json.data.tagline,\n \"linkedin_company_page\": \"https://www.linkedin.com/company/\" + $node['Step 1: Enrich Company (/v1/company)'].json.data.slug\n }\n }\n ]\n}",
"options": {}
},
"id": "c1a01006-4b2b-4c00-8006-000000000006",
"name": "Upsert Enriched Company to HubSpot CRM",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
1260,
320
]
}
],
"connections": {
"Inbound Lead Webhook (HubSpot / Signup)": {
"main": [
[
{
"node": "Step 1: Enrich Company (/v1/company)",
"type": "main",
"index": 0
}
]
]
},
"Step 1: Enrich Company (/v1/company)": {
"main": [
[
{
"node": "Company Resolved?",
"type": "main",
"index": 0
}
]
]
},
"Company Resolved?": {
"main": [
[
{
"node": "Step 2: Find Decision-Makers (/v1/people/search)",
"type": "main",
"index": 0
}
],
[]
]
},
"Step 2: Find Decision-Makers (/v1/people/search)": {
"main": [
[
{
"node": "Post Enriched ICP Alert to Slack",
"type": "main",
"index": 0
},
{
"node": "Upsert Enriched Company to HubSpot CRM",
"type": "main",
"index": 0
}
]
]
}
},
"settings": {
"executionOrder": "v1"
}
}Create n8n Header Auth credential
Sign up at /signup for 3,000 Free Credits ($0.30). In n8n, create a Header Auth credential with Name X-API-Key and Value b2b_live_....
Import JSON & bind credentials
Click Copy Workflow JSON above, open any n8n workflow canvas, press Cmd/Ctrl + V, and attach your X-API-Key credential to both HTTP Request nodes.
404 & personal email protection
Both HTTP nodes enable continueRegularOutput, and the Company Resolved? IF node halts downstream calls when a domain returns 404 (0 credits charged).