8
n8n 中文网amn8n.com

HubSpot 联系人邮箱验证与 Hunter.io

中级

这是一个Sales领域的自动化工作流,包含 11 个节点。主要使用 Wait, Hunter, Hubspot, EmailSend, HttpRequest 等节点。 使用 Hunter.io 进行 HubSpot 联系人邮箱验证

前置要求
  • HubSpot API Key
  • 可能需要目标 API 的认证凭证

分类

工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "7d8066d2f56a07000fe7d753d3eeabf0ecdf68413466f30d10afe0906f058427",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "3dbe2e56-9d74-4dfd-849a-9eac65fec4bb",
      "name": "HubSpot",
      "type": "n8n-nodes-base.hubspot",
      "position": [
        240,
        60
      ],
      "parameters": {
        "operation": "search",
        "returnAll": true,
        "authentication": "appToken",
        "filterGroupsUi": {
          "filterGroupsValues": [
            {
              "filtersUi": {
                "filterValues": [
                  {
                    "operator": "HAS_PROPERTY",
                    "propertyName": "email|string"
                  },
                  {
                    "operator": "NOT_HAS_PROPERTY",
                    "propertyName": "hunter_email_validation_status|enumeration"
                  }
                ]
              }
            }
          ]
        },
        "additionalFields": {}
      },
      "credentials": {
        "hubspotAppToken": {
          "id": "IpprhyuB3yZtaB5z",
          "name": "HubSpot App Token account"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "567de405-6968-465b-a9f1-87e8bd3b54b5",
      "name": "点击“测试工作流”时",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        20,
        60
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "a8edfdfd-aa93-47a6-8f84-a44846781d35",
      "name": "遍历项目",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        460,
        60
      ],
      "parameters": {
        "options": {
          "reset": false
        }
      },
      "typeVersion": 3
    },
    {
      "id": "4399eae5-3e3c-4080-96ef-c13bc388d836",
      "name": "替换我",
      "type": "n8n-nodes-base.noOp",
      "position": [
        1340,
        35
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "45794b7b-f92b-43bc-879c-6d5bb16c2c3c",
      "name": "Hunter",
      "type": "n8n-nodes-base.hunter",
      "position": [
        680,
        -140
      ],
      "parameters": {
        "email": "={{ $json.properties.email }}",
        "operation": "emailVerifier"
      },
      "credentials": {
        "hunterApi": {
          "id": "SiPpLw5hMjh2gNnE",
          "name": "Hunter account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "35c9bd9a-e683-437c-82c7-d70a4a80edb7",
      "name": "添加Hunter详细信息(联系人)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        900,
        -140
      ],
      "parameters": {
        "url": "=https://api.hubapi.com/crm/v3/objects/contacts/{{ $('Loop Over Items').item.json.id }}",
        "method": "PATCH",
        "options": {},
        "jsonBody": "={\n  \"properties\": {\n    \"hunter_email_validation_status\": \"{{ $json.status }}\",\n    \"hunter_verification_date\": \"{{ $now.format('yyyy-MM-dd') }}\"\n  }\n} ",
        "sendBody": true,
        "sendHeaders": true,
        "specifyBody": "json",
        "authentication": "predefinedCredentialType",
        "headerParameters": {
          "parameters": [
            {
              "name": "Content-Type",
              "value": "application/json"
            }
          ]
        },
        "nodeCredentialType": "hubspotAppToken"
      },
      "credentials": {
        "hubspotAppToken": {
          "id": "IpprhyuB3yZtaB5z",
          "name": "HubSpot App Token account"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "851a4869-0d1a-4b3c-8bb5-a8c1b2c34425",
      "name": "等待",
      "type": "n8n-nodes-base.wait",
      "position": [
        1120,
        -140
      ],
      "webhookId": "a073a564-adc5-479d-aa12-f71eccf909b9",
      "parameters": {
        "amount": 1
      },
      "typeVersion": 1.1
    },
    {
      "id": "462a0b4a-aa6f-423b-9a5d-56d1d71d917f",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        820,
        -300
      ],
      "parameters": {
        "width": 260,
        "height": 140,
        "content": "## ⚠️ 自定义字段"
      },
      "typeVersion": 1
    },
    {
      "id": "659dfe01-b6aa-437e-bf72-367e5d34fe6a",
      "name": "便签 1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1100,
        -300
      ],
      "parameters": {
        "color": 4,
        "height": 140,
        "content": "## 🕛 等待"
      },
      "typeVersion": 1
    },
    {
      "id": "bbaf2991-4c66-4f4d-bde8-26b24d2074db",
      "name": "便签 2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        160,
        -80
      ],
      "parameters": {
        "width": 280,
        "height": 120,
        "content": "## ⚠️ 自定义字段"
      },
      "typeVersion": 1
    },
    {
      "id": "f1f1581c-b502-4181-a9e2-8d4a57d98b0e",
      "name": "发送邮件",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        680,
        60
      ],
      "webhookId": "601e6cb0-ea98-4d00-ad0d-82a84f8d117e",
      "parameters": {
        "html": "=<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n  <meta charset=\"UTF-8\" />\n  <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"/>\n  <title>Verification Complete</title>\n  <style>\n    body {\n      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;\n      background-color: #f9f9fb;\n      margin: 0;\n      padding: 0;\n      color: #333;\n    }\n    .container {\n      max-width: 600px;\n      margin: 40px auto;\n      background-color: #fff;\n      border-radius: 8px;\n      box-shadow: 0 2px 8px rgba(0,0,0,0.05);\n      overflow: hidden;\n    }\n    .header {\n      background-color: #3f84e5;\n      color: #fff;\n      padding: 20px;\n      text-align: center;\n    }\n    .content {\n      padding: 30px;\n    }\n    .footer {\n      text-align: center;\n      font-size: 12px;\n      color: #aaa;\n      padding: 20px;\n    }\n    .btn {\n      display: inline-block;\n      background-color: #3f84e5;\n      color: white;\n      padding: 12px 20px;\n      text-decoration: none;\n      border-radius: 5px;\n      margin-top: 20px;\n    }\n  </style>\n</head>\n<body>\n  <div class=\"container\">\n    <div class=\"header\">\n      <h1>✅ Email Verification Complete</h1>\n    </div>\n    <div class=\"content\">\n      <p>Hello,</p>\n      <p>We’ve finished verifying all the email addresses pulled from your HubSpot contact list.</p>\n\n      <p>All verified contacts are now ready for further processing or campaign activities.</p>\n    </div>\n    <div class=\"footer\">\n      &copy; {{ new Date().getFullYear() }} Your Company. All rights reserved.\n    </div>\n  </div>\n</body>\n</html>\n",
        "options": {
          "appendAttribution": false
        },
        "subject": "Email Verification Completed for Your HubSpot Contacts",
        "toEmail": "akhilgadiraju@gmail.com",
        "fromEmail": "test@gmail.com"
      },
      "credentials": {
        "smtp": {
          "id": "vCexcphurglwGBfk",
          "name": "SMTP account"
        }
      },
      "typeVersion": 2.1
    }
  ],
  "pinData": {},
  "connections": {
    "Wait": {
      "main": [
        [
          {
            "node": "Replace Me",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Hunter": {
      "main": [
        [
          {
            "node": "Add Hunter Details (Contact)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HubSpot": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Replace Me": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [
          {
            "node": "Send Email",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Hunter",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add Hunter Details (Contact)": {
      "main": [
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Test workflow’": {
      "main": [
        [
          {
            "node": "HubSpot",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。

这个工作流适合什么场景?

中级 - 销售

需要付费吗?

本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。

工作流信息
难度等级
中级
节点数量11
分类1
节点类型9
难度说明

适合有一定经验的用户,包含 6-15 个节点的中等复杂度工作流

作者
Akhil Varma Gadiraju

Akhil Varma Gadiraju

@akhilv7

I'm a full stack developer passionate about building intelligent, scalable solutions that automate workflows and enhance productivity. I love working at the intersection of AI, APIs, and automation—using tools like n8n to streamline processes, integrate data, and unlock smarter decision-making. Whether it's crafting custom backend services or designing intuitive frontends, I’m always exploring ways to build more with less manual effort.

外部链接
在 n8n.io 查看

分享此工作流