与您的HubSpot数据对话(联系人和交易)
中级
这是一个CRM, AI Summarization领域的自动化工作流,包含 6 个节点。主要使用 HubspotTool, Agent, ChatTrigger, LmChatGoogleGemini, MemoryBufferWindow 等节点。 与您的HubSpot数据对话(联系人和交易)
前置要求
- •HubSpot API Key
- •Google Gemini API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"meta": {
"instanceId": "09423a3357ff64bdcc082268b9d577001317edbe377a3ccfb0b131ffb9554b30",
"templateCredsSetupCompleted": true
},
"nodes": [
{
"id": "3be8d3e0-a672-4c85-95fb-9e21a1efe1b0",
"name": "当收到聊天消息时",
"type": "@n8n/n8n-nodes-langchain.chatTrigger",
"position": [
0,
0
],
"webhookId": "2a0ed9f6-848a-4e48-ac72-4365da573b9f",
"parameters": {
"options": {}
},
"typeVersion": 1.3
},
{
"id": "f81e185d-07b4-4cd5-8442-9bea79577e70",
"name": "AI Agent",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
208,
0
],
"parameters": {
"options": {}
},
"typeVersion": 2.2
},
{
"id": "67431632-01f6-4601-92ff-d731ea8ca9ac",
"name": "Google Gemini聊天模型",
"type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
"position": [
80,
208
],
"parameters": {
"options": {},
"modelName": "models/gemini-2.5-pro"
},
"credentials": {
"googlePalmApi": {
"id": "KYY7pVULIl0PdDp3",
"name": "Google Gemini(PaLM) Api account"
}
},
"typeVersion": 1
},
{
"id": "308d44ba-3d87-4405-900e-f5c6fb41c919",
"name": "在HubSpot中搜索联系人",
"type": "n8n-nodes-base.hubspotTool",
"position": [
432,
208
],
"parameters": {
"operation": "search",
"authentication": "oAuth2",
"filterGroupsUi": {
"filterGroupsValues": [
{
"filtersUi": {
"filterValues": [
{
"value": "={{ $fromAI('filterGroupsValues0_filterValues0_Value', ``, 'string') }}",
"operator": "={{ $fromAI('operator', `Choose a valid HubSpot CRM Search operator — EQ (equal; exact match), NEQ (not equal), GT (greater than; numbers/timestamps in ms), GTE (>=), LT (<), LTE (<=), BETWEEN (inclusive range; supply values: [startMs,endMs]), IN (equals any; supply values: [\"A\",\"B\",...]), NOT_IN (not in list). Note: date/time filters use epoch ms (UTC)`, 'string') }}",
"propertyName": "={{ $fromAI('property_name', `Choose an appropirate hubspot property name - email,firstname,lastname,createdate,lifecyclestage,hs_lead_status,country,state,hs_email_last_open_date,hs_email_last_reply_date,hs_sequences_is_enrolled,hs_sequences_enrolled_count,jobtitle,hubspot_owner_id,hs_sa_first_engagement_date,hs_last_sales_activity_timestamp`, 'string') }}"
}
]
}
}
]
},
"additionalFields": {
"query": "hans",
"properties": "={{ [\"email\",\"firstname\",\"lastname\",\"createdate\",\"lifecyclestage\",\"hs_lead_status\",\"country\",\"state\",\"hs_email_last_open_date\",\"hs_email_last_reply_date\",\"hs_sequences_is_enrolled\",\"hs_sequences_enrolled_count\",\"jobtitle\",\"hubspot_owner_id\",\"hs_sa_first_engagement_date\",\"hs_last_sales_activity_timestamp\"] }}"
}
},
"credentials": {
"hubspotOAuth2Api": {
"id": "Vxqd8oQJmbtNmpRz",
"name": "HubSpot account"
}
},
"typeVersion": 2.1
},
{
"id": "f7fa3e15-296a-41d9-9e0c-4bf92d7cec1e",
"name": "在HubSpot中搜索交易",
"type": "n8n-nodes-base.hubspotTool",
"position": [
608,
208
],
"parameters": {
"resource": "deal",
"operation": "search",
"authentication": "oAuth2",
"filterGroupsUi": {
"filterGroupsValues": [
{
"filtersUi": {
"filterValues": [
{
"value": "=",
"propertyName": "hs_all_owner_ids"
}
]
}
}
]
},
"additionalFields": {
"properties": [
"dealname",
"amount",
"dealstage",
"pipeline",
"closedate",
"createdate",
"hubspot_owner_id",
"hs_lastmodifieddate"
]
}
},
"credentials": {
"hubspotOAuth2Api": {
"id": "Vxqd8oQJmbtNmpRz",
"name": "HubSpot account"
}
},
"typeVersion": 2.1
},
{
"id": "7ce28fb1-809f-4d6b-be7d-2707dece9fed",
"name": "简单记忆",
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"position": [
224,
208
],
"parameters": {},
"typeVersion": 1.3
}
],
"pinData": {},
"connections": {
"Simple Memory": {
"ai_memory": [
[
{
"node": "AI Agent",
"type": "ai_memory",
"index": 0
}
]
]
},
"Google Gemini Chat Model": {
"ai_languageModel": [
[
{
"node": "AI Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Search contacts in HubSpot": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"When chat message received": {
"main": [
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
]
]
},
"Search for deals in HubSpot": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
中级 - 客户关系管理, AI 摘要总结
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
AI通话摘要 + HubSpot跟进任务
AI通话摘要 + HubSpot跟进任务
Hubspot
Form Trigger
Hubspot Tool
+4
12 节点Miha
客户关系管理
基于HubSpot上下文的AI邮件回复与Slack审批
基于HubSpot上下文的AI邮件回复与Slack审批
If
Code
Gmail
+8
19 节点Miha
客户关系管理
HubSpot 联系人 AI 增强
HubSpot 联系人 AI 增强
Filter
Hubspot
Agent
+5
12 节点Miha
客户关系管理
基于客户邮件的个性化外展
基于客户邮件的个性化外展
Set
Gmail
Hubspot
+6
17 节点Miha
客户关系管理
每周HubSpot潜在客户报告发送至Slack
每周HubSpot潜在客户报告发送至Slack
Slack
Filter
Hubspot
+3
11 节点Miha
客户关系管理
注重隐私的路由器:增强型PII检测工作流
AI隐私保护路由器:PII检测,保障隐私、安全和合规性
Code
Switch
Agent
+5
20 节点Charles
安全运维