使用JotForm、Gemini AI和Slack的线索资质判定与评分
高级
这是一个自动化工作流,包含 17 个节点。主要使用 If, Gmail, Slack, Switch, JotFormTrigger 等节点。 使用JotForm、Gemini AI和Slack的线索资质判定与评分
前置要求
- •Google 账号和 Gmail API 凭证
- •Slack Bot Token 或 Webhook URL
- •Google Gemini API Key
使用的节点 (17)
分类
-
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"meta": {
"instanceId": "51295e4a2441063c8b3c5b0c823451e48c57f5baaf713c6f2f9d792402274528",
"templateCredsSetupCompleted": true
},
"nodes": [
{
"id": "9294603e-f9cd-4460-827c-c5279a04d3b8",
"name": "JotForm 触发器",
"type": "n8n-nodes-base.jotFormTrigger",
"position": [
-832,
-32
],
"webhookId": "728a5fa4-29b1-4da2-b2e6-4022c4c8604f",
"parameters": {
"form": "252856078065061"
},
"credentials": {
"jotFormApi": {
"id": "0rXRUH1s8t1hYA56",
"name": "JotForm account"
}
},
"typeVersion": 1
},
{
"id": "f2dbf370-4810-429c-9a23-731b94bb724b",
"name": "AI 助手",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
-224,
-32
],
"parameters": {
"text": "=You are an expert lead qualification assistant. Analyze the form submission message below to check for spam and calculate a lead score.\n\nAnalyze this data:\n- Message: {{ $json['How can we help?'] }}\n\nProvide your response ONLY in a valid JSON format with two keys:\n1. \"is_spam\": A boolean (true or false).\n2. \"lead_score\": An integer from 1 to 10, where 10 is a high-quality lead with a clear, specific request.\n\nDo not include any text outside of the JSON object.",
"options": {},
"promptType": "define",
"hasOutputParser": true
},
"typeVersion": 2.2
},
{
"id": "958d5771-f3b6-4ca7-b588-b2f578bfd69f",
"name": "结构化输出解析器",
"type": "@n8n/n8n-nodes-langchain.outputParserStructured",
"position": [
-48,
176
],
"parameters": {
"jsonSchemaExample": "{\n \"is_spam\": false,\n \"lead_score\": 9\n}"
},
"typeVersion": 1.3
},
{
"id": "39fd7c5a-6856-4d98-a274-cba96e05f85f",
"name": "Google Gemini 聊天模型",
"type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
"position": [
-256,
176
],
"parameters": {
"options": {}
},
"credentials": {
"googlePalmApi": {
"id": "mzeuL0IEjP3FgRof",
"name": "Google Gemini(PaLM) Api account"
}
},
"typeVersion": 1
},
{
"id": "8e6004c0-470c-48ee-be04-1dde41ad242b",
"name": "如果是垃圾信息",
"type": "n8n-nodes-base.if",
"position": [
368,
-32
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "7fbea884-b17a-4c3d-ae88-df1bc69b93cd",
"operator": {
"type": "boolean",
"operation": "true",
"singleValue": true
},
"leftValue": "={{ $json.output.is_spam }}",
"rightValue": ""
}
]
}
},
"typeVersion": 2.2
},
{
"id": "0cb769ad-e691-4f9a-b396-59cf04c1e474",
"name": "Switch",
"type": "n8n-nodes-base.switch",
"position": [
1632,
-32
],
"parameters": {
"rules": {
"values": [
{
"outputKey": "Hot Lead",
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "5a5d565e-d9c9-4a67-a160-aa272893a343",
"operator": {
"type": "number",
"operation": "gte"
},
"leftValue": "={{ $('AI Agent').item.json.output.lead_score }}",
"rightValue": 8
}
]
},
"renameOutput": true
},
{
"outputKey": "Warm Lead",
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "366c473c-e5e1-42fd-bd97-c9eb5893fe0d",
"operator": {
"type": "number",
"operation": "gte"
},
"leftValue": "={{ $('AI Agent').item.json.output.lead_score }}",
"rightValue": 5
}
]
},
"renameOutput": true
},
{
"outputKey": "Cold Lead",
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "6618605e-c6db-40f0-9661-d345e0939e40",
"operator": {
"type": "number",
"operation": "lte"
},
"leftValue": "={{ $('AI Agent').item.json.output.lead_score }}",
"rightValue": 4
}
]
},
"renameOutput": true
}
]
},
"options": {}
},
"typeVersion": 3.3
},
{
"id": "b008b7b3-9423-46f3-bc40-1b35f3cab53f",
"name": "热情回复",
"type": "n8n-nodes-base.gmail",
"position": [
2048,
-16
],
"webhookId": "b5a19446-4cb2-4c27-84b5-13ce88cbaed0",
"parameters": {
"sendTo": "={{ $('JotForm Trigger').item.json['Work Email'] }}",
"message": "=Hi {{ $('JotForm Trigger').item.json['Full Name'] }},\n\nWe've received your request and are reviewing it now. While you wait, you might find this case study on [Relevant Topic] helpful: [Link to a resource or case study]\n\nOur team will be in touch within one business day.\n\nBest regards,\nThe Team",
"options": {
"appendAttribution": false
},
"subject": "Thanks for contacting us",
"emailType": "text"
},
"credentials": {
"gmailOAuth2": {
"id": "8kdHW2rLvRIwn673",
"name": "Gmail account"
}
},
"typeVersion": 2.1
},
{
"id": "c8898078-0270-44e3-80a3-b7a1b9319eff",
"name": "热线索回复",
"type": "n8n-nodes-base.gmail",
"position": [
2048,
-224
],
"webhookId": "b5a19446-4cb2-4c27-84b5-13ce88cbaed0",
"parameters": {
"sendTo": "={{ $('JotForm Trigger').item.json['Work Email'] }}",
"message": "=Hi {{ $('JotForm Trigger').item.json['Full Name'] }},\n\nThanks for your detailed message. It sounds like we can definitely help. An expert will reach out to you personally within the next few hours. If you'd like to book a time directly on our calendar, you can use this link:\n[Your Calendly/Booking Link]\n\nBest regards,\nThe Team",
"options": {
"appendAttribution": false
},
"subject": "Following up on your request",
"emailType": "text"
},
"credentials": {
"gmailOAuth2": {
"id": "8kdHW2rLvRIwn673",
"name": "Gmail account"
}
},
"typeVersion": 2.1
},
{
"id": "415d662d-2a9f-4ac4-a556-f88f89022601",
"name": "冷线索回复",
"type": "n8n-nodes-base.gmail",
"position": [
2048,
192
],
"webhookId": "b5a19446-4cb2-4c27-84b5-13ce88cbaed0",
"parameters": {
"sendTo": "={{ $('JotForm Trigger').item.json['Work Email'] }}",
"message": "=Hi {{ $('JotForm Trigger').item.json['Full Name'] }},\n\nThank you for your interest. We've received your message and will review it as soon as possible.\n\nBest regards,\nThe Team\n",
"options": {
"appendAttribution": false
},
"subject": "We've received your message",
"emailType": "text"
},
"credentials": {
"gmailOAuth2": {
"id": "8kdHW2rLvRIwn673",
"name": "Gmail account"
}
},
"typeVersion": 2.1
},
{
"id": "e9d51ab2-b1b0-48e3-92ba-eb5324d0f766",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1104,
-736
],
"parameters": {
"color": 5,
"width": 640,
"height": 864,
"content": "## 步骤 1:前门 🚪"
},
"typeVersion": 1
},
{
"id": "9e2b8489-1d63-4615-8253-11109805c5d9",
"name": "垃圾信息无需处理!",
"type": "n8n-nodes-base.noOp",
"position": [
752,
-192
],
"parameters": {},
"typeVersion": 1
},
{
"id": "e1e480ef-c263-4fc0-920f-743969b06f04",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-416,
-416
],
"parameters": {
"color": 3,
"width": 576,
"height": 752,
"content": "## 步骤 2:AI 大脑 🧠"
},
"typeVersion": 1
},
{
"id": "36150c93-74f0-43e4-80cf-5b2bdcb970d9",
"name": "便签2",
"type": "n8n-nodes-base.stickyNote",
"position": [
208,
-384
],
"parameters": {
"width": 432,
"height": 560,
"content": "## 步骤 3:垃圾信息过滤器 🛡️"
},
"typeVersion": 1
},
{
"id": "5468b5f2-5d69-49f4-b052-84b73b7499ae",
"name": "便签3",
"type": "n8n-nodes-base.stickyNote",
"position": [
976,
-384
],
"parameters": {
"color": 4,
"width": 432,
"height": 560,
"content": "## 步骤 4:团队提醒 📣"
},
"typeVersion": 1
},
{
"id": "0edf587b-3bb1-4cf9-85b4-1b5cc5f8497c",
"name": "便签4",
"type": "n8n-nodes-base.stickyNote",
"position": [
1456,
-384
],
"parameters": {
"color": 2,
"width": 432,
"height": 560,
"content": "## 步骤 5:分类帽 🔀"
},
"typeVersion": 1
},
{
"id": "382296e1-4816-463e-bee1-a2de2bbb32c5",
"name": "便签5",
"type": "n8n-nodes-base.stickyNote",
"position": [
2256,
-240
],
"parameters": {
"color": 6,
"width": 464,
"height": 544,
"content": "## 步骤 6:个性化跟进 ✉️"
},
"typeVersion": 1
},
{
"id": "bdf076a3-46cc-4fc2-83ca-78b5298f8417",
"name": "发送线索提醒给销售",
"type": "n8n-nodes-base.slack",
"position": [
1136,
-16
],
"webhookId": "1c3bcca7-8201-4283-b446-dba36e016a57",
"parameters": {
"text": "=🚀 *New Lead Qualified! (Score: {{ $json.output.lead_score }} /10)*\n\n*Name:* {{ $('JotForm Trigger').item.json['Full Name'] }}\n*Company Size:* {{ $('JotForm Trigger').item.json['Number of Employees'] }}\n*Inquiry:* {{ $('JotForm Trigger').item.json['How can we help?'] }}",
"select": "channel",
"channelId": {
"__rl": true,
"mode": "list",
"value": "C09M7DZFLQY",
"cachedResultName": "sales-leads"
},
"otherOptions": {
"includeLinkToWorkflow": false
}
},
"credentials": {
"slackApi": {
"id": "yP6Hr4wJ20zxMNey",
"name": "Slack account"
}
},
"typeVersion": 2.3
}
],
"pinData": {},
"connections": {
"Switch": {
"main": [
[
{
"node": "Hot Reply",
"type": "main",
"index": 0
}
],
[
{
"node": "Warm Reply",
"type": "main",
"index": 0
}
],
[
{
"node": "Cold Reply",
"type": "main",
"index": 0
}
]
]
},
"If Spam": {
"main": [
[
{
"node": "Nothing to do for spams!",
"type": "main",
"index": 0
}
],
[
{
"node": "Send lead alert to sales",
"type": "main",
"index": 0
}
]
]
},
"AI Agent": {
"main": [
[
{
"node": "If Spam",
"type": "main",
"index": 0
}
]
]
},
"JotForm Trigger": {
"main": [
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
]
]
},
"Google Gemini Chat Model": {
"ai_languageModel": [
[
{
"node": "AI Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Send lead alert to sales": {
"main": [
[
{
"node": "Switch",
"type": "main",
"index": 0
}
]
]
},
"Structured Output Parser": {
"ai_outputParser": [
[
{
"node": "AI Agent",
"type": "ai_outputParser",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
高级
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
AI驱动的反馈分诊系统:Jotform到Trello、Airtable和Slack,集成Gemini
AI驱动的反馈分诊系统:Jotform到Trello、Airtable和Slack,集成Gemini
If
Set
Gmail
+9
21 节点Atta
市场调研
使用Gemini AI筛选求职者:Jotform到Notion招聘流程
使用Gemini AI筛选求职者:Jotform到Notion招聘流程
If
Gmail
Merge
+10
20 节点Atta
人力资源
使用Gemini AI视觉分析与Telegram警报监控X平台品牌提及
使用Gemini AI视觉分析与Telegram警报监控X平台品牌提及
If
Set
Code
+13
24 节点Atta
杂项
基于Google Gemini的智能LinkedIn职位筛选,含简历匹配和Google地图
基于Google Gemini的智能LinkedIn职位筛选,含简历匹配和Google地图
If
Set
Supabase
+10
26 节点Atta
个人效率
AI邮件分诊与GPT-4警报系统及Telegram通知
AI邮件分诊与GPT-4警报系统及Telegram通知
If
Set
Gmail
+22
104 节点Peter Joslyn
客户支持
Gmail助手,含Google Gemini分类与Telegram通知
Gmail助手,含Google Gemini分类与Telegram通知
If
Gmail
Switch
+9
25 节点Roshan Ramani
AI 聊天机器人
工作流信息
难度等级
高级
节点数量17
分类-
节点类型10
作者
Atta
@attakhalighiHi 👋 I design automation workflows with n8n, AI, and custom APIs. My focus is on building reliable systems that save time and boost productivity. Always happy to answer questions about my templates.
外部链接
在 n8n.io 查看 →
分享此工作流