HubSpot 联系人 AI 增强
中级
这是一个CRM, AI Summarization领域的自动化工作流,包含 12 个节点。主要使用 Filter, Hubspot, Agent, ScheduleTrigger, ToolSerpApi 等节点。 HubSpot 联系人 AI 增强
前置要求
- •HubSpot API Key
- •Google Gemini API Key
使用的节点 (12)
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"meta": {
"instanceId": "09423a3357ff64bdcc082268b9d577001317edbe377a3ccfb0b131ffb9554b30",
"templateCredsSetupCompleted": true
},
"nodes": [
{
"id": "830fac2b-14a4-4249-aa96-901ae8119a6a",
"name": "获取最近创建/更新的联系人",
"type": "n8n-nodes-base.hubspot",
"position": [
720,
160
],
"parameters": {
"limit": 1,
"operation": "getRecentlyCreatedUpdated",
"authentication": "oAuth2",
"additionalFields": {}
},
"credentials": {
"hubspotOAuth2Api": {
"id": "Vxqd8oQJmbtNmpRz",
"name": "HubSpot account"
}
},
"notesInFlow": true,
"typeVersion": 2.1
},
{
"id": "43048b3a-174b-458e-b616-424195444066",
"name": "使用 SerpAPI 搜索网络",
"type": "@n8n/n8n-nodes-langchain.toolSerpApi",
"position": [
1440,
384
],
"parameters": {
"options": {}
},
"credentials": {
"serpApi": {
"id": "8eSQVt6yilfnvTud",
"name": "SerpAPI account"
}
},
"typeVersion": 1
},
{
"id": "896d9486-d0b9-4e2e-afc2-128fed120d6c",
"name": "筛选过去24小时内创建的联系人",
"type": "n8n-nodes-base.filter",
"position": [
960,
160
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "3f05e8cd-81e1-4495-a5fc-b7e8cadcef75",
"operator": {
"type": "dateTime",
"operation": "afterOrEquals"
},
"leftValue": "={{ $json.properties.createdate.value.toDateTime('ms') }}",
"rightValue": "={{ $today.minus(1, 'days') }}"
},
{
"id": "5dc4e198-582a-45e5-9216-ebcbcd455a3e",
"operator": {
"type": "string",
"operation": "notContains"
},
"leftValue": "={{ $json['identity-profiles'][0].identities[0].value }}",
"rightValue": "gmail.com"
}
]
}
},
"typeVersion": 2.2
},
{
"id": "1b2b6dd7-266f-4461-91dd-73cdaedae561",
"name": "Google Gemini聊天模型",
"type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
"position": [
1248,
384
],
"parameters": {
"options": {}
},
"credentials": {
"googlePalmApi": {
"id": "KYY7pVULIl0PdDp3",
"name": "Google Gemini(PaLM) Api account"
}
},
"typeVersion": 1
},
{
"id": "7a6bcf9c-e7c6-4712-9cb3-a8292c723389",
"name": "公司研究智能体",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
1248,
160
],
"parameters": {
"text": "=You’re an analyst specializing in company profiling. You’ll receive a domain and must return structured data only.\n\nDomain to research (extract it from the email and then search the web from the SerpAPI tool): {{ $json['identity-profiles'][0].identities[0].value }}\n\nReturn only a JSON object with exactly these fields (keep the keys as written):\n\ncompany_name: Full legal or commonly used company name\n\nindustry: Primary industry category\n\nheadquarters_city: City\n\nheadquarters_country: Country\n\nemployee_count: Approximate employee count (number or range)\n\nwebsite: Official site URL\n\nlinkedin: Company LinkedIn URL (if available)\n\ndescription: One or two sentences summarizing what the company does\n\nUse reliable, verifiable sources. No commentary—output JSON only.",
"options": {},
"promptType": "define",
"hasOutputParser": true
},
"typeVersion": 2
},
{
"id": "8f899dcc-54da-469e-a842-36028bb02dac",
"name": "结构化输出解析器",
"type": "@n8n/n8n-nodes-langchain.outputParserStructured",
"position": [
1616,
384
],
"parameters": {
"jsonSchemaExample": "{\n\"company_name\": \"n8n\",\n\"industry\": \"Software Development\",\n\"headquarters_city\": \"Berlin\",\n\"headquarters_country\": \"Germany\",\n\"employee_count\": \"51-200\",\n\"website\": \"https://n8n.io\",\n\"linkedin\": \"https://www.linkedin.com/company/n8n-io\",\n\"description\": \"n8n is a workflow automation tool that integrates AI capabilities with business process automation, enabling users to automate tasks and synchronize data across various applications and services.\"\n}"
},
"typeVersion": 1.3
},
{
"id": "fcd79d28-692a-41d3-9a92-78567ce148ae",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
0,
0
],
"parameters": {
"color": 5,
"width": 368,
"height": 448,
"content": "## 针对新 HubSpot 联系人的 AI 公司信息丰富化"
},
"typeVersion": 1
},
{
"id": "85b44031-4bb8-4799-be7b-43ede57d6410",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
448,
80
],
"parameters": {
"color": 7,
"width": 672,
"height": 288,
"content": "## 1. 获取联系人"
},
"typeVersion": 1
},
{
"id": "7e2238b7-f66e-4db5-8609-b82e0fab4938",
"name": "便签2",
"type": "n8n-nodes-base.stickyNote",
"position": [
1200,
80
],
"parameters": {
"color": 7,
"width": 544,
"height": 496,
"content": "## 2. 研究公司"
},
"typeVersion": 1
},
{
"id": "e5832459-4505-49e1-b38c-8d8ce3e485ab",
"name": "便签3",
"type": "n8n-nodes-base.stickyNote",
"position": [
1824,
80
],
"parameters": {
"color": 7,
"width": 272,
"height": 272,
"content": "## 3. 更新联系人"
},
"typeVersion": 1
},
{
"id": "7ab9fabc-0ee0-4bba-a368-81015942b07b",
"name": "添加公司信息",
"type": "n8n-nodes-base.hubspot",
"position": [
1872,
160
],
"parameters": {
"email": "={{ $('Get recently created/updated contacts').item.json['identity-profiles'][0].identities[0].value }}",
"options": {},
"authentication": "oAuth2",
"additionalFields": {
"city": "={{ $json.output.headquarters_city }}",
"country": "={{ $json.output.headquarters_country }}",
"websiteUrl": "={{ $json.output.website }}",
"companyName": "={{ $json.output.company_name }}",
"companySize": "={{ $json.output.employee_count }}",
"linkedinUrl": "={{ $json.output.linkedin }}"
}
},
"credentials": {
"hubspotOAuth2Api": {
"id": "Vxqd8oQJmbtNmpRz",
"name": "HubSpot account"
}
},
"typeVersion": 2.1
},
{
"id": "fafc22fb-ec1d-4e8d-b02c-404455c4ce16",
"name": "每日运行",
"type": "n8n-nodes-base.scheduleTrigger",
"position": [
512,
160
],
"parameters": {
"rule": {
"interval": [
{}
]
}
},
"typeVersion": 1.2
}
],
"pinData": {},
"connections": {
"Run daily": {
"main": [
[
{
"node": "Get recently created/updated contacts",
"type": "main",
"index": 0
}
]
]
},
"Company Research Agent": {
"main": [
[
{
"node": "Add company info",
"type": "main",
"index": 0
}
]
]
},
"Google Gemini Chat Model": {
"ai_languageModel": [
[
{
"node": "Company Research Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Structured Output Parser": {
"ai_outputParser": [
[
{
"node": "Company Research Agent",
"type": "ai_outputParser",
"index": 0
}
]
]
},
"Search the web with SerpAPI": {
"ai_tool": [
[
{
"node": "Company Research Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Get recently created/updated contacts": {
"main": [
[
{
"node": "Filter contacts created in the last 24h",
"type": "main",
"index": 0
}
]
]
},
"Filter contacts created in the last 24h": {
"main": [
[
{
"node": "Company Research Agent",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
中级 - 客户关系管理, AI 摘要总结
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
基于HubSpot上下文的AI邮件回复与Slack审批
基于HubSpot上下文的AI邮件回复与Slack审批
If
Code
Gmail
+8
19 节点Miha
客户关系管理
AI通话摘要 + HubSpot跟进任务
AI通话摘要 + HubSpot跟进任务
Hubspot
Form Trigger
Hubspot Tool
+4
12 节点Miha
客户关系管理
每周HubSpot潜在客户报告发送至Slack
每周HubSpot潜在客户报告发送至Slack
Slack
Filter
Hubspot
+3
11 节点Miha
客户关系管理
基于客户邮件的个性化外展
基于客户邮件的个性化外展
Set
Gmail
Hubspot
+6
17 节点Miha
客户关系管理
与您的HubSpot数据对话(联系人和交易)
与您的HubSpot数据对话(联系人和交易)
Hubspot Tool
Agent
Chat Trigger
+2
6 节点Miha
客户关系管理
分析区域绩效
使用Bright Data MCP和GPT-4o分析销售区域绩效
Set
Code
Gmail
+8
17 节点Yaron Been
客户关系管理