使用AI自动分类支持邮件并路由到Teams
这是一个Ticket Management, AI Summarization领域的自动化工作流,包含 9 个节点。主要使用 Jira, OpenAi, Switch, EmailSend, EmailReadImap 等节点。 使用OpenAI自动分类支持邮件并通过Jira集成路由到Teams
- •OpenAI API Key
{
"id": "Eael5MC2doHgipoj",
"meta": {
"instanceId": "dd69efaf8212c74ad206700d104739d3329588a6f3f8381a46a481f34c9cc281",
"templateCredsSetupCompleted": true
},
"name": "使用 AI 自动分类支持邮件并路由到 Teams",
"tags": [],
"nodes": [
{
"id": "1cc38dd8-7be0-439c-9bff-1747c4cb41f0",
"name": "IMAP 邮件",
"type": "n8n-nodes-base.emailReadImap",
"position": [
-1320,
-120
],
"parameters": {
"options": {}
},
"credentials": {
"imap": {
"id": "zTEGYssr7MSVeCs3",
"name": "IMAP-test"
}
},
"typeVersion": 1
},
{
"id": "9eafb912-b9b8-4e07-8ae3-dfd9407e12e0",
"name": "OpenAI",
"type": "n8n-nodes-base.openAi",
"position": [
-1100,
-120
],
"parameters": {
"operation": "chat",
"requestOptions": {}
},
"credentials": {
"openAiApi": {
"id": "CDQ16eImh6D4tY15",
"name": "OpenAi account 2 - test"
}
},
"typeVersion": 1
},
{
"id": "66d83acc-b961-4baf-97f4-0f4a1a7aff30",
"name": "切换",
"type": "n8n-nodes-base.switch",
"position": [
-880,
-141
],
"parameters": {},
"typeVersion": 1
},
{
"id": "3be96880-5fb2-46af-9f7d-9228b87df0fc",
"name": "发送账单邮件",
"type": "n8n-nodes-base.emailSend",
"position": [
-660,
-320
],
"parameters": {
"text": "=Forwarded Email:\n\nSubject: {{$node[\"IMAP Email\"].json[\"subject\"]}}\nFrom: {{$node[\"IMAP Email\"].json[\"from\"]}}\nContent: {{$node[\"IMAP Email\"].json[\"text\"]}}",
"options": {},
"subject": "=Fwd: {{$node[\"IMAP Email\"].json[\"subject\"]}}",
"toEmail": "billing@yourdomain.com",
"fromEmail": "support@yourdomain.com"
},
"credentials": {
"smtp": {
"id": "G1kyF8cSWTZ4vouN",
"name": "SMTP -test"
}
},
"typeVersion": 1
},
{
"id": "104ae235-3ba0-45b2-b57f-6f6dbac92a75",
"name": "发送错误邮件",
"type": "n8n-nodes-base.emailSend",
"position": [
-660,
-120
],
"parameters": {
"text": "=Forwarded Email:\n\nSubject: {{$node[\"IMAP Email\"].json[\"subject\"]}}\nFrom: {{$node[\"IMAP Email\"].json[\"from\"]}}\nContent: {{$node[\"IMAP Email\"].json[\"text\"]}}",
"options": {},
"subject": "=Fwd: {{$node[\"IMAP Email\"].json[\"subject\"]}}",
"toEmail": "bugs@yourdomain.com",
"fromEmail": "support@yourdomain.com"
},
"credentials": {
"smtp": {
"id": "G1kyF8cSWTZ4vouN",
"name": "SMTP -test"
}
},
"typeVersion": 1
},
{
"id": "80aa19c6-86c2-43e7-9e87-61082b00eb91",
"name": "发送功能邮件",
"type": "n8n-nodes-base.emailSend",
"position": [
-660,
80
],
"parameters": {
"text": "=Forwarded Email:\n\nSubject: {{$node[\"IMAP Email\"].json[\"subject\"]}}\nFrom: {{$node[\"IMAP Email\"].json[\"from\"]}}\nContent: {{$node[\"IMAP Email\"].json[\"text\"]}}",
"options": {},
"subject": "=Fwd: {{$node[\"IMAP Email\"].json[\"subject\"]}}",
"toEmail": "features@yourdomain.com",
"fromEmail": "support@yourdomain.com"
},
"credentials": {
"smtp": {
"id": "G1kyF8cSWTZ4vouN",
"name": "SMTP -test"
}
},
"typeVersion": 1
},
{
"id": "1d4347c1-dd66-40a3-9228-a5e78365b201",
"name": "创建 Jira 任务",
"type": "n8n-nodes-base.jira",
"position": [
-440,
-120
],
"parameters": {
"project": {
"__rl": true,
"mode": "id",
"value": "12346"
},
"summary": "=Support Request: {{$node[\"IMAP Email\"].json[\"subject\"]}}",
"issueType": "Task",
"additionalFields": {}
},
"credentials": {
"jiraSoftwareCloudApi": {
"id": "cP7JyAE1RB0zcBon",
"name": "Jira SW Cloud - test"
}
},
"typeVersion": 1
},
{
"id": "764ccc7c-1f45-4518-877b-e77c26467425",
"name": "发送自动回复",
"type": "n8n-nodes-base.emailSend",
"position": [
-220,
-120
],
"parameters": {
"text": "Thank you for contacting support. We have received your email and will address it promptly. Your request has been classified as {{$node[\"OpenAI\"].json[\"text\"]}}.",
"options": {},
"subject": "Re: {{$node[\"IMAP Email\"].json[\"subject\"]}}",
"toEmail": "={{$node[\"IMAP Email\"].json[\"from\"]}}",
"fromEmail": "support@yourdomain.com"
},
"credentials": {
"smtp": {
"id": "G1kyF8cSWTZ4vouN",
"name": "SMTP -test"
}
},
"typeVersion": 1
},
{
"id": "b59375bf-b0f7-4d5d-b3a9-812deeb3bb17",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1520,
-480
],
"parameters": {
"width": 560,
"height": 260,
"content": "## 主要组件"
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "8efa3f11-b8f1-48fb-898e-702e39836755",
"connections": {
"OpenAI": {
"main": [
[
{
"node": "Switch",
"type": "main",
"index": 0
}
]
]
},
"Switch": {
"main": [
[
{
"node": "Send Billing Email",
"type": "main",
"index": 0
}
],
[
{
"node": "Send Bug Email",
"type": "main",
"index": 0
}
],
[
{
"node": "Send Feature Email",
"type": "main",
"index": 0
}
]
]
},
"IMAP Email": {
"main": [
[
{
"node": "OpenAI",
"type": "main",
"index": 0
}
]
]
},
"Send Bug Email": {
"main": [
[
{
"node": "Create Jira Task",
"type": "main",
"index": 0
}
]
]
},
"Create Jira Task": {
"main": [
[
{
"node": "Send Autoresponse",
"type": "main",
"index": 0
}
]
]
},
"Send Billing Email": {
"main": [
[
{
"node": "Create Jira Task",
"type": "main",
"index": 0
}
]
]
},
"Send Feature Email": {
"main": [
[
{
"node": "Create Jira Task",
"type": "main",
"index": 0
}
]
]
}
}
}如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
中级 - 工单管理, AI 摘要总结
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
Oneclick AI Squad
@oneclick-aiThe AI Squad Initiative is a pioneering effort to build, automate and scale AI-powered workflows using n8n.io. Our mission is to help individuals and businesses integrate AI agents seamlessly into their daily operations from automating tasks and enhancing productivity to creating innovative, intelligent solutions. We design modular, reusable AI workflow templates that empower creators, developers and teams to supercharge their automation with minimal effort and maximum impact.
分享此工作流