{
"name": "Lead Email Verification & Enrichment",
"nodes": [
{
"parameters": {
"formTitle": "Contact Us",
"formFields": {
"values": [
{
"fieldLabel": "first_name"
},
{
"fieldLabel": "last_name"
},
{
"fieldLabel": "email",
"fieldType": "email"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.formTrigger",
"typeVersion": 2.5,
"position": [
0,
-96
],
"id": "35b90e5f-f137-469e-b184-221cad877b1c",
"name": "On form submission",
"webhookId": "a6e32d06-e836-4df8-ad0f-c3a2f1f06276"
},
{
"parameters": {
"url": "https://api.millionverifier.com/api/v3",
"authentication": "genericCredentialType",
"genericAuthType": "httpQueryAuth",
"sendQuery": true,
"queryParameters": {
"parameters": [
{
"name": "email",
"value": "={{ $json.email }}"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.4,
"position": [
224,
-96
],
"id": "bc5dc8c7-ec3b-49f4-9257-0fc637486180",
"name": "Email Verification - MillionVerifier",
"credentials": {
"httpQueryAuth": {
"id": "Py8VbhlBORMnACwN",
"name": "MillionVerifier3"
}
}
},
{
"parameters": {
"url": "https://api.apollo.io/api/v1/people/match",
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"sendQuery": true,
"queryParameters": {
"parameters": [
{
"name": "first_name",
"value": "={{ $('On form submission').item.json.first_name }}"
},
{
"name": "last_name",
"value": "={{ $('On form submission').item.json.last_name }}"
},
{
"name": "email",
"value": "={{ $('On form submission').item.json.email }}"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.4,
"position": [
672,
-96
],
"id": "5802bef1-20de-43a7-a27a-077a2afaaa48",
"name": "Enrich Lead - Apollo",
"credentials": {
"httpHeaderAuth": {
"id": "L4CP5EJT6FFejKRN",
"name": "Header Auth account 4"
}
}
},
{
"parameters": {
"method": "POST",
"url": "https://api.instantly.ai/api/v2/leads",
"authentication": "genericCredentialType",
"genericAuthType": "httpBearerAuth",
"sendBody": true,
"specifyBody": "json",
"jsonBody": "={\n "campaign": "",\n "email": "{{ $json.person.email }}",\n "first_name": "{{ $('Enrich Lead - Apollo').item.json.person.first_name }}",\n "last_name": "{{ $('Enrich Lead - Apollo').item.json.person.last_name }}",\n "company_name": "{{ $('Enrich Lead - Apollo').item.json.person.organization.name }}",\n "job_title": "{{ $('Enrich Lead - Apollo').item.json.person.title }}",\n "website": "{{ $('Enrich Lead - Apollo').item.json.person.organization.website_url }}",\n "phone": "{{ $('Enrich Lead - Apollo').item.json.person.organization.phone }}",\n "skip_if_in_workspace": true,\n "skip_if_in_campaign": true,\n "custom_variables": {\n "apollo_id": "{{ $('Enrich Lead - Apollo').item.json.person.id }}",\n "industry": "{{ $('Enrich Lead - Apollo').item.json.person.organization.industry }}",\n "employee_count": "{{ $('Enrich Lead - Apollo').item.json.person.organization.estimated_num_employees }}",\n "linkedin_url": "{{ $('Enrich Lead - Apollo').item.json.person.linkedin_url }}"\n }\n}",
"options": {}
},
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.4,
"position": [
896,
-96
],
"id": "897710e3-1410-47a1-b5d0-0d0bacc1ea64",
"name": "Add Lead to Campaign - Instantly",
"credentials": {
"httpBearerAuth": {
"id": "jwhe6rr5T5TVyECC",
"name": "Bearer Auth account 3"
}
}
},
{
"parameters": {
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 3
},
"conditions": [
{
"id": "94213a21-7696-4f3d-849d-76fe72f24aad",
"leftValue": "={{ $json.quality }}",
"rightValue": "good",
"operator": {
"type": "string",
"operation": "equals"
}
}
],
"combinator": "and"
},
"options": {}
},
"type": "n8n-nodes-base.if",
"typeVersion": 2.3,
"position": [
448,
-96
],
"id": "0a491bc1-ed1b-497e-b323-a380142bbdef",
"name": "Email Quality = Good"
}
],
"pinData": {},
"connections": {
"On form submission": {
"main": [
[
{
"node": "Email Verification - MillionVerifier",
"type": "main",
"index": 0
}
]
]
},
"Email Verification - MillionVerifier": {
"main": [
[
{
"node": "Email Quality = Good",
"type": "main",
"index": 0
}
]
]
},
"Enrich Lead - Apollo": {
"main": [
[
{
"node": "Add Lead to Campaign - Instantly",
"type": "main",
"index": 0
}
]
]
},
"Email Quality = Good": {
"main": [
[
{
"node": "Enrich Lead - Apollo",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1",
"binaryMode": "separate"
},
"versionId": "6a821734-2e91-49d2-a131-d9792219fc20",
"meta": {
"instanceId": "315c10d28f6d49b09fb0ca61e5c3f9689f1e3fb976e371202c39e17a8e201db8"
},
"id": "priWFec22D3AF9b3",
"tags": []
}