{
"name": "Apollo Workflow -> Email Verification, enrichment, add to campaign",
"nodes": [
{
"parameters": {
"httpMethod": "POST",
"path": "c0a8c603-d452-4bd4-9e52-2561a6dbda55",
"options": {}
},
"type": "n8n-nodes-base.webhook",
"typeVersion": 2.1,
"position": [
-32,
0
],
"id": "71db5929-5415-496a-aab2-3fcc0b5cbc17",
"name": "Webhook",
"webhookId": "c0a8c603-d452-4bd4-9e52-2561a6dbda55"
},
{
"parameters": {
"url": "https://api.apollo.io/api/v1/people/match",
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"sendQuery": true,
"queryParameters": {
"parameters": [
{
"name": "first_name",
"value": "={{ $('Webhook').item.json.body.first_name }}"
},
{
"name": "last_name",
"value": "={{ $('Webhook').item.json.body.last_name }}"
},
{
"name": "email",
"value": "={{ $('Webhook').item.json.body.email }}"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.4,
"position": [
608,
-48
],
"id": "8ef1b3d7-8ed8-4e8e-a4e9-a747879fc4aa",
"name": "Enrich Lead - Apollo",
"credentials": {
"httpHeaderAuth": {
"id": "L4CP5EJT6FFejKRN",
"name": "Header Auth account 4"
}
}
},
{
"parameters": {
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 3
},
"conditions": [
{
"id": "b5aac029-6ac3-4fcd-be46-b0baa330df1a",
"leftValue": "={{ $json.quality }}",
"rightValue": "good",
"operator": {
"type": "string",
"operation": "equals"
}
}
],
"combinator": "and"
},
"options": {}
},
"type": "n8n-nodes-base.if",
"typeVersion": 2.3,
"position": [
384,
0
],
"id": "ad8d3a5d-d4df-425d-aade-356b6ba00a54",
"name": "Email Quality = Good"
},
{
"parameters": {
"url": "https://api.millionverifier.com/api/v3",
"authentication": "genericCredentialType",
"genericAuthType": "httpQueryAuth",
"sendQuery": true,
"queryParameters": {
"parameters": [
{
"name": "email",
"value": "={{ $json.body.email }}"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.4,
"position": [
176,
0
],
"id": "aaa8a2be-6d6e-49b4-9e01-197fdeb2848d",
"name": "Email Verification - MillionVerifier",
"credentials": {
"httpQueryAuth": {
"id": "lFFuWUIEzISCYOCw",
"name": "Query Auth account 2"
}
}
},
{
"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": [
816,
-48
],
"id": "de441584-aacd-4042-8e0c-ffad60a7a335",
"name": "Add Lead to Campaign - Instantly",
"credentials": {
"httpBearerAuth": {
"id": "sk5NdjcvLKcOAZ4X",
"name": "Bearer Auth account 4"
}
}
}
],
"pinData": {},
"connections": {
"Webhook": {
"main": [
[
{
"node": "Email Verification - MillionVerifier",
"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
}
]
]
},
"Email Verification - MillionVerifier": {
"main": [
[
{
"node": "Email Quality = Good",
"type": "main",
"index": 0
}
]
]
}
},
"active": true,
"settings": {
"executionOrder": "v1",
"binaryMode": "separate"
},
"versionId": "04df8901-091f-4002-acf7-9be60de28287",
"meta": {
"instanceId": "315c10d28f6d49b09fb0ca61e5c3f9689f1e3fb976e371202c39e17a8e201db8"
},
"id": "1gLrr1TrfM2YocnI",
"tags": []
}