潜在客户资格评定与路由引擎
高级
这是一个Content Creation, Multimodal AI领域的自动化工作流,包含 17 个节点。主要使用 If, Set, Slack, Webhook, Airtable 等节点。 基于AI的潜在客户资格评定与路由:使用OpenAI、Slack和Airtable
前置要求
- •Slack Bot Token 或 Webhook URL
- •HTTP Webhook 端点(n8n 会自动生成)
- •Airtable API Key
- •OpenAI API Key
使用的节点 (17)
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "CKcKFoEOfPQBPjxI",
"meta": {
"instanceId": "f450cd0986d5bfb741d4d1b31068440b1642915c91f795fd72913ef923830e67"
},
"name": "潜在客户资格评定与路由引擎",
"tags": [],
"nodes": [
{
"id": "a7fe2e16-0890-4732-8466-9cd08b12acc7",
"name": "潜在客户接收 Webhook",
"type": "n8n-nodes-base.webhook",
"position": [
-1328,
320
],
"webhookId": "lead-intake-webhook-id",
"parameters": {
"path": "lead-intake",
"options": {},
"httpMethod": "POST",
"responseMode": "responseNode"
},
"typeVersion": 2.1
},
{
"id": "5faded1e-4091-4a33-8acb-670c7af221a9",
"name": "确认接收",
"type": "n8n-nodes-base.respondToWebhook",
"position": [
-1104,
320
],
"parameters": {
"options": {},
"respondWith": "json",
"responseBody": "={{ { \"success\": true, \"message\": \"Lead received and processing\", \"leadId\": $json.leadId } }}"
},
"typeVersion": 1.1
},
{
"id": "656cff0b-a058-4fdb-8fd1-da3deb7a0b24",
"name": "丰富潜在客户数据",
"type": "n8n-nodes-base.set",
"position": [
-880,
320
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "lead-id",
"name": "leadId",
"type": "string",
"value": "={{ $now.format('yyyyMMddHHmmss') }}-{{ $json.email.split('@')[0] }}"
},
{
"id": "timestamp",
"name": "timestamp",
"type": "string",
"value": "={{ $now.toISO() }}"
},
{
"id": "source",
"name": "source",
"type": "string",
"value": "={{ $json.source || 'website' }}"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "3d6667f0-8a10-43eb-b6e2-015e7961ac6c",
"name": "AI 潜在客户资格评定",
"type": "@n8n/n8n-nodes-langchain.chainLlm",
"position": [
-1040,
640
],
"parameters": {
"text": "=Analyze this lead and provide a qualification score:\n\nName: {{ $json.name }}\nEmail: {{ $json.email }}\nCompany: {{ $json.company }}\nMessage: {{ $json.message }}\nBudget: {{ $json.budget }}\nTimeline: {{ $json.timeline }}",
"batching": {},
"promptType": "define",
"hasOutputParser": true
},
"typeVersion": 1.7
},
{
"id": "521d3066-5891-4543-b9a2-d86a0b1c9440",
"name": "解析 AI 响应",
"type": "@n8n/n8n-nodes-langchain.outputParserStructured",
"position": [
-832,
880
],
"parameters": {
"schemaType": "manual",
"inputSchema": "{\n \"type\": \"object\",\n \"properties\": {\n \"score\": {\n \"type\": \"integer\",\n \"description\": \"Lead qualification score from 0-100\"\n },\n \"category\": {\n \"type\": \"string\",\n \"enum\": [\"hot\", \"warm\", \"cold\"],\n \"description\": \"Lead temperature category\"\n },\n \"reasoning\": {\n \"type\": \"string\",\n \"description\": \"Brief explanation of the score\"\n },\n \"recommended_action\": {\n \"type\": \"string\",\n \"description\": \"Suggested next step\"\n },\n \"key_strengths\": {\n \"type\": \"array\",\n \"items\": { \"type\": \"string\" },\n \"description\": \"Top 3 positive indicators\"\n },\n \"concerns\": {\n \"type\": \"array\",\n \"items\": { \"type\": \"string\" },\n \"description\": \"Potential red flags or concerns\"\n }\n },\n \"required\": [\"score\", \"category\", \"reasoning\", \"recommended_action\"]\n}"
},
"typeVersion": 1.3
},
{
"id": "437b5f85-504a-4d3a-83e1-d1a757df6333",
"name": "OpenAI 模型",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
-1104,
880
],
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-4o-mini",
"cachedResultName": "gpt-4o-mini"
},
"options": {}
},
"credentials": {
"openAiApi": {
"id": "dA4yXmsPbiF3QzqQ",
"name": "OpenAi Xtwl"
}
},
"typeVersion": 1.2
},
{
"id": "ab747fea-dafa-42f9-a9b3-484023977da7",
"name": "按质量路由",
"type": "n8n-nodes-base.if",
"position": [
-512,
384
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "hot-lead",
"operator": {
"name": "filter.operator.larger",
"type": "number",
"operation": "larger"
},
"leftValue": "={{ $json.output.score }}",
"rightValue": "70"
},
{
"id": "79621b78-52b5-4b32-a28b-c64dc84958f4",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "",
"rightValue": ""
}
]
}
},
"typeVersion": 2.2
},
{
"id": "bc9abb67-6fa7-4cbe-955f-b90c6af29d68",
"name": "保存至 Airtable(热门线索)",
"type": "n8n-nodes-base.airtable",
"position": [
-128,
528
],
"parameters": {
"base": {
"__rl": true,
"mode": "id",
"value": "YOUR_AIRTABLE_BASE_ID"
},
"table": {
"__rl": true,
"mode": "id",
"value": "YOUR_AIRTABLE_TABLE_ID"
},
"operation": "append"
},
"typeVersion": 2.1
},
{
"id": "8ab50b21-c1c1-44f4-a73d-c3b3f867b191",
"name": "保存至 Airtable(培育队列)",
"type": "n8n-nodes-base.airtable",
"position": [
-512,
592
],
"parameters": {
"base": {
"__rl": true,
"mode": "id",
"value": "YOUR_AIRTABLE_BASE_ID"
},
"table": {
"__rl": true,
"mode": "id",
"value": "YOUR_AIRTABLE_TABLE_ID"
},
"operation": "append"
},
"typeVersion": 2.1
},
{
"id": "8bed314d-059d-44b3-b618-3dd290507c26",
"name": "团队告警(Slack)",
"type": "n8n-nodes-base.slack",
"position": [
96,
336
],
"webhookId": "e93cafe0-7f35-4ce8-af4d-b20ef73a6115",
"parameters": {
"operation": "send"
},
"typeVersion": 2.2
},
{
"id": "dc041629-b53a-41b8-ad97-787bf8196403",
"name": "发送确认邮件(热门)",
"type": "n8n-nodes-base.emailSend",
"position": [
96,
640
],
"webhookId": "2b440a1a-5d79-43f6-9861-2f70bd0fa64a",
"parameters": {
"options": {},
"subject": "Thank you for your inquiry - We'll be in touch soon!",
"toEmail": "={{ $('Lead Intake Webhook').item.json.email }}",
"fromEmail": "leads@youragency.com"
},
"typeVersion": 2.1
},
{
"id": "07f3821f-7d75-480d-819c-1cdb07b22f9c",
"name": "发送培育邮件",
"type": "n8n-nodes-base.emailSend",
"position": [
-512,
816
],
"webhookId": "08979f7a-b16c-4801-b3d1-c383cf5500bb",
"parameters": {
"options": {},
"subject": "Thank you for contacting us",
"toEmail": "={{ $('Lead Intake Webhook').item.json.email }}",
"fromEmail": "leads@youragency.com"
},
"typeVersion": 2.1
},
{
"id": "27b73032-cfcc-451e-bb09-69550e252211",
"name": "备注:接收",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1440,
80
],
"parameters": {
"color": 4,
"width": 784,
"height": 424,
"content": "## 🎯 潜在客户接收"
},
"typeVersion": 1
},
{
"id": "0e5438ef-5393-49f0-b440-a19900c0a283",
"name": "备注:智能路由",
"type": "n8n-nodes-base.stickyNote",
"position": [
-656,
80
],
"parameters": {
"color": 6,
"width": 432,
"height": 968,
"content": "## 🔀 智能路由"
},
"typeVersion": 1
},
{
"id": "ec12b993-5bd3-448d-9ead-570dfd08f0a1",
"name": "备注:操作",
"type": "n8n-nodes-base.stickyNote",
"position": [
-224,
80
],
"parameters": {
"color": 7,
"width": 572,
"height": 968,
"content": "## 💾 数据与通知"
},
"typeVersion": 1
},
{
"id": "bddca7d5-04a2-497d-98f0-861822adbe15",
"name": "备注:AI 分析1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1440,
512
],
"parameters": {
"color": 5,
"width": 788,
"height": 536,
"content": "#"
},
"typeVersion": 1
},
{
"id": "04a5ac3e-87d3-4d6c-8b31-ac624797b3b7",
"name": "备注:接收1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-2288,
80
],
"parameters": {
"color": 3,
"width": 768,
"height": 1976,
"content": "# **AI 潜在客户评定器与路由器**"
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "e2984c20-f71f-4c0a-b36a-6676f406ac62",
"connections": {
"OpenAI Model": {
"ai_languageModel": [
[
{
"node": "AI Lead Qualification",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Enrich Lead Data": {
"main": [
[
{
"node": "AI Lead Qualification",
"type": "main",
"index": 0
}
]
]
},
"Route by Quality": {
"main": [
[
{
"node": "Save to Airtable (Hot Leads)",
"type": "main",
"index": 0
}
],
[
{
"node": "Save to Airtable (Nurture Queue)",
"type": "main",
"index": 0
}
]
]
},
"Parse AI Response": {
"ai_outputParser": [
[
{
"node": "AI Lead Qualification",
"type": "ai_outputParser",
"index": 0
}
]
]
},
"Acknowledge Receipt": {
"main": [
[
{
"node": "Enrich Lead Data",
"type": "main",
"index": 0
}
]
]
},
"Lead Intake Webhook": {
"main": [
[
{
"node": "Acknowledge Receipt",
"type": "main",
"index": 0
}
]
]
},
"AI Lead Qualification": {
"main": [
[
{
"node": "Route by Quality",
"type": "main",
"index": 0
}
]
]
},
"Save to Airtable (Hot Leads)": {
"main": [
[
{
"node": "Alert Team (Slack)",
"type": "main",
"index": 0
},
{
"node": "Send Confirmation Email (Hot)",
"type": "main",
"index": 0
}
]
]
},
"Save to Airtable (Nurture Queue)": {
"main": [
[
{
"node": "Send Nurture Email",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
高级 - 内容创作, 多模态 AI
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
GPT-4o:Twilio集成与自动跟进功能
GPT-4o:Twilio集成与自动跟进功能
If
Code
Wait
+11
21 节点Greypillar
内容创作
基于Bright Data、OpenAI和Redis的高级多源AI研究
使用Bright Data、OpenAI和Redis进行高级多源AI研究
If
Set
Code
+15
43 节点Daniel Shashko
市场调研
监控LinkedIn帖子并使用OpenAI和Airtable创建AI内容摘要
监控LinkedIn帖子并使用OpenAI和Airtable创建AI内容摘要
If
Set
Code
+10
30 节点Anna Bui
内容创作
使用 GPT-4o、Clearbit、HubSpot CRM 和 Slack 提醒筛选和路由潜在客户
使用 GPT-4o、Clearbit、HubSpot CRM 和 Slack 提醒筛选和路由潜在客户
If
Code
Slack
+10
18 节点Greypillar
内容创作
通过 OpenAI GPT-4o 进行 AI 内容生成,包含人工审核与一键批准工作流
使用GPT-4o简化内容创建,集成一键人工审核批准
If
Set
Code
+8
23 节点Cheng Siong Chin
内容创作
使用 OpenAI、QuickChart 和 Google Drive 将电子表格数据转换为智能图表
使用 OpenAI、QuickChart 和 Google Drive 将电子表格数据转换为智能图表
If
Set
Code
+18
82 节点LeeWei
内容创作
工作流信息
难度等级
高级
节点数量17
分类2
节点类型11
作者
Xavier Tai
@xaviertaiHey 👋 I'm Xavier, founder of EasyScalers. I build AI automation systems with N8N for B2B companies. Check out my templates or hit me up in the forums if you need help with your workflows!
外部链接
在 n8n.io 查看 →
分享此工作流