使用GPT-4、Zendesk和HubSpot预测客户流失风险并创建干预措施
高级
这是一个CRM, Multimodal AI领域的自动化工作流,包含 17 个节点。主要使用 If, Cron, Merge, Slack, Stripe 等节点。 使用GPT-4、Zendesk和HubSpot预测客户流失风险并创建干预措施
前置要求
- •Slack Bot Token 或 Webhook URL
- •Stripe API Key
- •HubSpot API Key
- •可能需要目标 API 的认证凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"meta": {
"instanceId": "5a648bd3f759c69d3a1e71a0e47ad1046af7ce76a6f331a86cd6058d8a6372fa"
},
"nodes": [
{
"id": "12cc91e8-fd72-41ff-b6f6-843b39b202d2",
"name": "概述与目的",
"type": "n8n-nodes-base.stickyNote",
"position": [
368,
96
],
"parameters": {
"width": 320,
"height": 200,
"content": "## 🔮 AI客户成功风险预测工作流"
},
"typeVersion": 1
},
{
"id": "365de93c-898a-476e-a3ee-d80875707f01",
"name": "设置说明",
"type": "n8n-nodes-base.stickyNote",
"position": [
368,
368
],
"parameters": {
"width": 320,
"height": 220,
"content": "## 🎯 设置与配置"
},
"typeVersion": 1
},
{
"id": "fd8d7b52-6862-410f-bb02-f1bd234060ce",
"name": "AI分析逻辑",
"type": "n8n-nodes-base.stickyNote",
"position": [
1328,
96
],
"parameters": {
"width": 320,
"height": 240,
"content": "## 🧠 AI风险分析逻辑"
},
"typeVersion": 1
},
{
"id": "b3b1cfa4-cb6f-423c-9cee-a8d2b860c8bb",
"name": "每日风险分析",
"type": "n8n-nodes-base.cron",
"position": [
736,
560
],
"parameters": {},
"typeVersion": 1
},
{
"id": "ba458527-4372-4674-a99a-f792fd52e343",
"name": "获取产品使用数据",
"type": "n8n-nodes-base.httpRequest",
"position": [
960,
368
],
"parameters": {
"url": "={{ $env.ANALYTICS_API_URL }}/api/export",
"options": {},
"sendQuery": true,
"sendHeaders": true,
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"queryParameters": {
"parameters": [
{
"name": "from_date",
"value": "={{ $now.minus({days: 30}).toISODate() }}"
},
{
"name": "to_date",
"value": "={{ $now.toISODate() }}"
},
{
"name": "event",
"value": "[\"login\", \"feature_used\", \"session_end\"]"
}
]
},
"headerParameters": {
"parameters": [
{
"name": "Authorization",
"value": "Bearer {{ $env.ANALYTICS_API_KEY }}"
}
]
}
},
"typeVersion": 4.2
},
{
"id": "9d0fc88a-5df1-4436-8adc-7631918a5c53",
"name": "获取支持工单",
"type": "n8n-nodes-base.zendesk",
"position": [
960,
560
],
"parameters": {
"options": {},
"operation": "getAll"
},
"typeVersion": 1
},
{
"id": "84229a28-d043-4271-93cd-9c35caaa8a41",
"name": "获取账单数据",
"type": "n8n-nodes-base.stripe",
"position": [
960,
752
],
"parameters": {
"resource": "customer",
"operation": "list"
},
"typeVersion": 1
},
{
"id": "674fb095-502e-45a4-8283-0f2d7f4b5646",
"name": "合并所有数据源",
"type": "n8n-nodes-base.merge",
"position": [
1184,
464
],
"parameters": {},
"typeVersion": 3
},
{
"id": "3a258f57-473d-4dba-b6c2-9323bad7fab4",
"name": "AI风险预测",
"type": "n8n-nodes-base.aiTransform",
"position": [
1408,
464
],
"parameters": {},
"typeVersion": 1
},
{
"id": "8fb5b97d-94b3-4249-82b8-a75d87666578",
"name": "按风险等级路由",
"type": "n8n-nodes-base.if",
"position": [
1632,
464
],
"parameters": {
"options": {},
"conditions": {
"options": {
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "critical-risk",
"operator": {
"type": "number",
"operation": "gte"
},
"leftValue": "={{ $json.risk_score }}",
"rightValue": 90
}
]
}
},
"typeVersion": 2
},
{
"id": "0b044e5d-7071-4621-b25a-6c2a2d0b4ba7",
"name": "检查高风险",
"type": "n8n-nodes-base.if",
"position": [
1856,
560
],
"parameters": {
"options": {},
"conditions": {
"options": {
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "high-risk",
"operator": {
"type": "number",
"operation": "gte"
},
"leftValue": "={{ $json.risk_score }}",
"rightValue": 70
}
]
}
},
"typeVersion": 2
},
{
"id": "45dcc6f5-ad2b-4e11-829b-bd6393e20062",
"name": "生成严重干预措施",
"type": "n8n-nodes-base.aiTransform",
"position": [
2080,
208
],
"parameters": {},
"typeVersion": 1
},
{
"id": "ba69f187-e251-43b9-a575-40c452b565ac",
"name": "严重风险Slack警报",
"type": "n8n-nodes-base.slack",
"position": [
1856,
352
],
"webhookId": "ef1836c0-6340-44b1-a3dd-7933bd87418c",
"parameters": {
"text": "🚨 CRITICAL CUSTOMER RISK ALERT 🚨",
"select": "channel",
"channelId": {
"__rl": true,
"mode": "id",
"value": "={{ $env.HIGH_RISK_SLACK_CHANNEL }}"
},
"otherOptions": {}
},
"typeVersion": 2.2
},
{
"id": "56ff908b-337f-4287-ac06-bebcbd467c44",
"name": "生成高风险干预措施",
"type": "n8n-nodes-base.aiTransform",
"position": [
2080,
512
],
"parameters": {},
"typeVersion": 1
},
{
"id": "4d065f87-c832-467b-9892-c78a612e1824",
"name": "发送个性化邮件",
"type": "n8n-nodes-base.emailSend",
"position": [
2304,
592
],
"webhookId": "03634047-ab09-4aca-9de0-08c2b605e8f4",
"parameters": {
"options": {},
"subject": "={{ $json.subject_line }}",
"toEmail": "={{ $json.customer_data.email }}",
"fromEmail": "={{ $env.CS_TEAM_EMAIL }}"
},
"typeVersion": 2
},
{
"id": "fb61c43d-f77c-4a02-9219-33d2784ad975",
"name": "使用风险数据更新CRM",
"type": "n8n-nodes-base.hubspot",
"position": [
2304,
368
],
"parameters": {
"operation": "update"
},
"typeVersion": 2
},
{
"id": "835e4d22-7d99-47d6-8275-461513310a94",
"name": "生成中等风险检查",
"type": "n8n-nodes-base.aiTransform",
"position": [
2080,
752
],
"parameters": {},
"typeVersion": 1
}
],
"pinData": {},
"connections": {
"Check High Risk": {
"main": [
[
{
"node": "Generate High Risk Intervention",
"type": "main",
"index": 0
}
],
[
{
"node": "Generate Medium Risk Check-in",
"type": "main",
"index": 0
}
]
]
},
"AI Risk Prediction": {
"main": [
[
{
"node": "Route by Risk Level",
"type": "main",
"index": 0
}
]
]
},
"Daily Risk Analysis": {
"main": [
[
{
"node": "Fetch Product Usage Data",
"type": "main",
"index": 0
},
{
"node": "Fetch Support Tickets",
"type": "main",
"index": 0
},
{
"node": "Fetch Billing Data",
"type": "main",
"index": 0
}
]
]
},
"Route by Risk Level": {
"main": [
[
{
"node": "Generate Critical Intervention",
"type": "main",
"index": 0
},
{
"node": "Critical Risk Slack Alert",
"type": "main",
"index": 0
}
],
[
{
"node": "Check High Risk",
"type": "main",
"index": 0
}
]
]
},
"Fetch Support Tickets": {
"main": [
[
{
"node": "Merge All Data Sources",
"type": "main",
"index": 1
}
]
]
},
"Merge All Data Sources": {
"main": [
[
{
"node": "AI Risk Prediction",
"type": "main",
"index": 0
}
]
]
},
"Fetch Product Usage Data": {
"main": [
[
{
"node": "Merge All Data Sources",
"type": "main",
"index": 0
}
]
]
},
"Generate Medium Risk Check-in": {
"main": [
[
{
"node": "Send Personalized Email",
"type": "main",
"index": 0
},
{
"node": "Update CRM with Risk Data",
"type": "main",
"index": 0
}
]
]
},
"Generate Critical Intervention": {
"main": [
[
{
"node": "Send Personalized Email",
"type": "main",
"index": 0
},
{
"node": "Update CRM with Risk Data",
"type": "main",
"index": 0
}
]
]
},
"Generate High Risk Intervention": {
"main": [
[
{
"node": "Send Personalized Email",
"type": "main",
"index": 0
},
{
"node": "Update CRM with Risk Data",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
高级 - 客户关系管理, 多模态 AI
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
基于 HubSpot、Clearbit 和 Slack 的自动化线索捕获、评分与 CRM 集成
基于 HubSpot、Clearbit 和 Slack 的自动化线索捕获、评分与 CRM 集成
If
Code
Merge
+7
22 节点shae
潜在客户开发
基于Claap通话使用GPT-4o和Google Slides自动生成销售演示文稿
基于Claap通话使用GPT-4o和Google Slides自动生成销售演示文稿
If
Set
Code
+7
20 节点Robin Bonduelle
客户关系管理
自动化订单确认,使用Abacate Pay:首购优惠券奖励,通过邮件和Slack
自动化订单确认,使用Abacate Pay:首购优惠券奖励,通过邮件和Slack
If
Set
Code
+6
13 节点Matheus Pedrosa
客户关系管理
从 Stripe 支付自动交付模板给客户
使用Stripe、GPT-4o和Gmail的自动化模板交付系统
If
Code
Gmail
+12
44 节点Rahul Joshi
客户关系管理
AWS Azure GCP多云成本监控与预算控制警报
AWS Azure GCP多云成本监控与预算控制警报
If
Code
Cron
+5
12 节点Oneclick AI Squad
开发运维
GPT-4o:Twilio集成与自动跟进功能
GPT-4o:Twilio集成与自动跟进功能
If
Code
Wait
+11
21 节点Greypillar
内容创作
工作流信息
难度等级
高级
节点数量17
分类2
节点类型11
作者
shae
@senshaeFull-stack automation expert combining n8n, frontend & backend development, and hard-coded solutions to build powerful, scalable workflows. Skilled in data parsing (PDF/Excel), API integrations (banking, property, financial), email systems, and real-time sync. I create custom dashboards, API layers, and advanced automations that go beyond “no-code,”
外部链接
在 n8n.io 查看 →
分享此工作流