基于AI的智能邮件分类与自动回复器
高级
这是一个AI领域的自动化工作流,包含 32 个节点。主要使用 Set, Gmail, Telegram, GmailTool, GmailTrigger 等节点,结合人工智能技术实现智能自动化。 基于AI的智能邮件分类与自动回复器
前置要求
- •Google 账号和 Gmail API 凭证
- •Telegram Bot Token
- •OpenAI API Key
使用的节点 (32)
分类
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"meta": {
"instanceId": "c468f3e9ec76d6a999f2a3139e7b38fe14df5109932c20629efadf9cb993c0f1",
"templateCredsSetupCompleted": true
},
"nodes": [
{
"id": "195a93cf-a96f-48f6-8859-5676f808583a",
"name": "情感分析",
"type": "@n8n/n8n-nodes-langchain.sentimentAnalysis",
"maxTries": 2,
"position": [
-360,
-1680
],
"parameters": {},
"retryOnFail": true,
"typeVersion": 1
},
{
"id": "b723c3e9-10f8-463d-bd22-c79dda0c26b0",
"name": "Azure OpenAI聊天模型",
"type": "@n8n/n8n-nodes-langchain.lmChatAzureOpenAi",
"position": [
-940,
-1300
],
"parameters": {},
"typeVersion": 1
},
{
"id": "005bc73d-89e4-4fa1-b2f1-bd4c03953e7b",
"name": "垃圾邮件",
"type": "n8n-nodes-base.gmail",
"position": [
-580,
-1980
],
"webhookId": "bcec78b8-40e5-465e-a4a7-408c022135d1",
"parameters": {},
"typeVersion": 2.1
},
{
"id": "574d56fd-bad6-4e94-94bd-a50ce782d239",
"name": "Gmail",
"type": "n8n-nodes-base.gmail",
"position": [
-380,
-1980
],
"webhookId": "6708c093-c0ca-4591-b7f4-067489cfe124",
"parameters": {},
"typeVersion": 2.1
},
{
"id": "f33087a3-0624-4046-b8dd-59c52e136553",
"name": "重要邮件",
"type": "n8n-nodes-base.gmail",
"position": [
-80,
-1980
],
"webhookId": "56f1473f-b431-4cca-b9e7-9affa5bd2092",
"parameters": {},
"typeVersion": 2.1
},
{
"id": "5eac42f2-4c6f-4d56-96be-884bff586aa3",
"name": "推广邮件",
"type": "n8n-nodes-base.gmail",
"position": [
280,
-1680
],
"webhookId": "016051e4-cc7b-4ea3-b4f8-e4b7ceb5c374",
"parameters": {},
"typeVersion": 2.1
},
{
"id": "ebffdbd3-158d-4ac0-b3d5-576888de850a",
"name": "通知邮件",
"type": "n8n-nodes-base.gmail",
"position": [
100,
-1680
],
"webhookId": "8c0fe356-42ce-474c-9036-d4466b436fd0",
"parameters": {},
"typeVersion": 2.1
},
{
"id": "c731ca19-0f80-425c-abe7-daa72921d4b0",
"name": "个人邮件",
"type": "n8n-nodes-base.gmail",
"position": [
480,
-1680
],
"webhookId": "02356933-bfe2-41ed-bb8b-2b0c50874020",
"parameters": {},
"typeVersion": 2.1
},
{
"id": "6aea58ec-7e76-4ac1-a8ad-bbd89b90c148",
"name": "通话请求",
"type": "n8n-nodes-base.gmail",
"position": [
840,
-1680
],
"webhookId": "decdeb95-c8d0-4d75-840a-da3e945ae603",
"parameters": {},
"typeVersion": 2.1
},
{
"id": "803ccc0b-a092-4dea-b4ae-26fe986dc514",
"name": "需要回复",
"type": "n8n-nodes-base.gmail",
"position": [
660,
-1680
],
"webhookId": "22e0948a-1b35-4675-9ac7-a7bb3b4cb269",
"parameters": {},
"typeVersion": 2.1
},
{
"id": "517bec35-ebfd-4fc3-8446-553b4987d726",
"name": "重要吗?",
"type": "@n8n/n8n-nodes-langchain.sentimentAnalysis",
"maxTries": 2,
"position": [
-960,
-1960
],
"parameters": {},
"retryOnFail": true,
"typeVersion": 1
},
{
"id": "b3ed6d90-08fd-4c30-8655-9cd1207ce13f",
"name": "草拟回复",
"type": "@n8n/n8n-nodes-langchain.agent",
"maxTries": 2,
"position": [
-580,
-1420
],
"parameters": {},
"retryOnFail": true,
"typeVersion": 1.7
},
{
"id": "39976e80-aeb5-416a-af06-76797ce83eda",
"name": "$输入$",
"type": "n8n-nodes-base.set",
"position": [
-600,
-1680
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "0fee173a-4031-4b7e-a05a-da99a279f611",
"name": "草稿",
"type": "n8n-nodes-base.gmailTool",
"position": [
-360,
-1200
],
"webhookId": "643995a0-ae13-4f8e-9bd1-02c1ab7943bb",
"parameters": {},
"typeVersion": 2.1
},
{
"id": "a263b61f-871d-4e86-bb8e-eb98f1f5260d",
"name": "获取邮件",
"type": "n8n-nodes-base.gmailTool",
"position": [
-460,
-1240
],
"webhookId": "34f9fa3e-822e-4c31-8efe-d84f05235355",
"parameters": {},
"typeVersion": 2.1
},
{
"id": "dfe8bf62-8f16-4cba-85eb-440557283451",
"name": "需要回复吗?",
"type": "@n8n/n8n-nodes-langchain.sentimentAnalysis",
"maxTries": 2,
"position": [
240,
-1980
],
"parameters": {},
"retryOnFail": true,
"typeVersion": 1
},
{
"id": "710da104-10b8-4cdb-95a8-c7969898e605",
"name": "无操作,不执行任何操作",
"type": "n8n-nodes-base.noOp",
"position": [
720,
-1960
],
"parameters": {},
"typeVersion": 1
},
{
"id": "c9b6b19c-2de6-4766-90b7-2e47a168c4f9",
"name": "Telegram",
"type": "n8n-nodes-base.telegram",
"position": [
700,
-1300
],
"webhookId": "2837518d-2122-49b4-baaa-0ea80f05ae80",
"parameters": {},
"typeVersion": 1.2
},
{
"id": "a0554154-1ca0-450f-b429-75b6a3b479de",
"name": "Google Calendar",
"type": "n8n-nodes-base.googleCalendarTool",
"position": [
-560,
-1200
],
"parameters": {},
"typeVersion": 1.3
},
{
"id": "83a94679-424f-4378-8be8-2bfdfb9e28f1",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1000,
-2040
],
"parameters": {
"content": "Emelia 触发器"
},
"typeVersion": 1
},
{
"id": "efb81140-83a8-475c-a8f2-b69d7a2d9bbb",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-160,
-2040
],
"parameters": {
"content": "Emelia 触发器"
},
"typeVersion": 1
},
{
"id": "12d1089a-091d-40e3-b12b-17d2152c6af9",
"name": "便签2",
"type": "n8n-nodes-base.stickyNote",
"position": [
20,
-1760
],
"parameters": {
"content": "Emelia 触发器"
},
"typeVersion": 1
},
{
"id": "772f089a-3a63-4195-98b0-ecb79ff65ea1",
"name": "便签3",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1000,
-1760
],
"parameters": {
"content": "Emelia 触发器"
},
"typeVersion": 1
},
{
"id": "dc549de3-19d4-4b1f-b20b-d25fef6402e0",
"name": "便签说明4",
"type": "n8n-nodes-base.stickyNote",
"position": [
-400,
-1760
],
"parameters": {
"content": "Emelia 触发器"
},
"typeVersion": 1
},
{
"id": "82b70e0c-edd2-4abd-80d6-e3b2c8a4300c",
"name": "Gmail 触发器",
"type": "n8n-nodes-base.gmailTrigger",
"position": [
-940,
-1680
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "4268c088-d0a6-4342-affa-140c2fabb8cb",
"name": "便签 6",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1000,
-1460
],
"parameters": {
"content": "Emelia 触发器"
},
"typeVersion": 1
},
{
"id": "0501ba81-480d-4cea-9fa6-0552ab86adca",
"name": "json架构",
"type": "@n8n/n8n-nodes-langchain.outputParserStructured",
"position": [
-380,
-1440
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "e8e84173-60dc-4567-a4c9-e555f28ed1dd",
"name": "便签说明5",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1000,
-2320
],
"parameters": {
"content": "Emelia 触发器"
},
"typeVersion": 1
},
{
"id": "8fcb7dbd-b117-4245-b09c-b6941d03e9cf",
"name": "撰写草稿",
"type": "n8n-nodes-base.gmail",
"position": [
100,
-1300
],
"webhookId": "4b9eab21-0abd-490c-8aa0-51315e674330",
"parameters": {},
"typeVersion": 2.1
},
{
"id": "d2863b87-b083-4c2e-a3cb-e9cd2bec14d1",
"name": "便签 7",
"type": "n8n-nodes-base.stickyNote",
"position": [
500,
-1460
],
"parameters": {
"content": "Emelia 触发器"
},
"typeVersion": 1
},
{
"id": "0ad8c055-c00d-45fd-a3cd-e087c7417f8f",
"name": "便签 9",
"type": "n8n-nodes-base.stickyNote",
"position": [
-320,
-2320
],
"parameters": {
"content": "Emelia 触发器"
},
"typeVersion": 1
},
{
"id": "2d7acb3a-21b2-4373-805f-c975916e2084",
"name": "便签10",
"type": "n8n-nodes-base.stickyNote",
"position": [
260,
-2320
],
"parameters": {
"content": "Emelia 触发器"
},
"typeVersion": 1
}
],
"pinData": {},
"connections": {
"Spam": {
"main": [
[
{
"node": "Gmail",
"type": "main",
"index": 0
}
]
]
},
"Draft": {
"ai_tool": [
[
{
"node": "Draft Reply",
"type": "ai_tool",
"index": 0
}
]
]
},
"Gmail": {
"main": [
[]
]
},
"$INPUTS$": {
"main": [
[
{
"node": "Sentiment Analysis",
"type": "main",
"index": 0
}
]
]
},
"Personal": {
"main": [
[
{
"node": "Draft Reply",
"type": "main",
"index": 0
}
]
]
},
"Important": {
"main": [
[
{
"node": "needs reply?",
"type": "main",
"index": 0
}
]
]
},
"Promotion": {
"main": [
[
{
"node": "important?",
"type": "main",
"index": 0
}
]
]
},
"Get emails": {
"ai_tool": [
[
{
"node": "Draft Reply",
"type": "ai_tool",
"index": 0
}
]
]
},
"important?": {
"main": [
[
{
"node": "Gmail",
"type": "main",
"index": 0
}
],
[
{
"node": "Important",
"type": "main",
"index": 0
}
]
]
},
"Draft Reply": {
"main": [
[
{
"node": "Write draft",
"type": "main",
"index": 0
}
]
]
},
"Needs Reply": {
"main": [
[
{
"node": "Draft Reply",
"type": "main",
"index": 0
}
]
]
},
"Write draft": {
"main": [
[
{
"node": "Telegram",
"type": "main",
"index": 0
}
]
]
},
"json schema": {
"ai_outputParser": [
[
{
"node": "Draft Reply",
"type": "ai_outputParser",
"index": 0
}
]
]
},
"Call request": {
"main": [
[
{
"node": "Draft Reply",
"type": "main",
"index": 0
}
]
]
},
"Notification": {
"main": [
[
{
"node": "important?",
"type": "main",
"index": 0
}
]
]
},
"needs reply?": {
"main": [
[
{
"node": "Draft Reply",
"type": "main",
"index": 0
}
],
[
{
"node": "No Operation, do nothing",
"type": "main",
"index": 0
}
]
]
},
"Gmail Trigger": {
"main": [
[
{
"node": "$INPUTS$",
"type": "main",
"index": 0
}
]
]
},
"Google Calendar": {
"ai_tool": [
[
{
"node": "Draft Reply",
"type": "ai_tool",
"index": 0
}
]
]
},
"Sentiment Analysis": {
"main": [
[
{
"node": "Spam",
"type": "main",
"index": 0
}
],
[
{
"node": "Important",
"type": "main",
"index": 0
}
],
[
{
"node": "Promotion",
"type": "main",
"index": 0
}
],
[
{
"node": "Notification",
"type": "main",
"index": 0
}
],
[
{
"node": "Personal",
"type": "main",
"index": 0
}
],
[
{
"node": "Call request",
"type": "main",
"index": 0
}
],
[
{
"node": "Needs Reply",
"type": "main",
"index": 0
}
]
]
},
"Azure OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "Sentiment Analysis",
"type": "ai_languageModel",
"index": 0
},
{
"node": "important?",
"type": "ai_languageModel",
"index": 0
},
{
"node": "Draft Reply",
"type": "ai_languageModel",
"index": 0
},
{
"node": "needs reply?",
"type": "ai_languageModel",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
高级 - 人工智能
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
AI邮件分诊与GPT-4警报系统及Telegram通知
AI邮件分诊与GPT-4警报系统及Telegram通知
If
Set
Gmail
+22
104 节点Peter Joslyn
客户支持
在可视化参考库中探索n8n节点
在可视化参考库中探索n8n节点
If
Ftp
Set
+93
113 节点I versus AI
其他
使用GPT-4o生成完整故事并保存到Google Drive
使用GPT-4o生成完整故事并保存到Google Drive
Set
Split Out
Aggregate
+8
57 节点Ian Dikhtiar
人工智能
完整的 B2B 销售流程:Apollo 潜在客户生成、Mailgun 外展和 AI 回复管理
完整的 B2B 销售流程:Apollo 潜在客户生成、Mailgun 外展和 AI 回复管理
If
Set
Code
+26
116 节点Paul
内容创作
基于 GPT、LangChain 和智能路由的 AI 驱动客户服务自动化
AI驱动客户服务自动化,基于GPT、LangChain和智能路由
Set
Gmail
Merge
+19
46 节点Paul
客户支持
[AOE] 收件箱和日历管理 Agent
使用 Gmail、Google Calendar 和 GPT-4o AI 自动化邮件与日历管理
Code
Gmail
Gmail Tool
+17
38 节点AOE Agent Lab
人工智能