服务工单分类助手
高级
这是一个Support, AI领域的自动化工作流,包含 22 个节点。主要使用 If, Taiga, Switch, TaigaTrigger, Agent 等节点,结合人工智能技术实现智能自动化。 自动化服务工单分类:GPT-4o和Taiga
前置要求
- •OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "YMlKRgPrCs1HCvXm",
"meta": {
"instanceId": "c1cc2e18d32a91e26eb78bbc6373615a06451476e56efe94394fc82c93d00305",
"templateCredsSetupCompleted": true
},
"name": "服务工单分类助手",
"tags": [],
"nodes": [
{
"id": "588eb65e-0053-432f-a11e-2bb690674a35",
"name": "服务工单已创建",
"type": "n8n-nodes-base.taigaTrigger",
"position": [
-880,
780
],
"webhookId": "b6256ab6-982d-4e60-942d-d6b3c1303752",
"parameters": {
"projectId": 1694047,
"resources": [
"issue"
],
"operations": [
"create"
]
},
"credentials": {
"taigaApi": {
"id": "YlBnqAiNyP5fKz1v",
"name": "Taiga account"
}
},
"typeVersion": 1
},
{
"id": "b16043dc-50b9-4645-85c9-ca5ee0570c13",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
-920,
360
],
"parameters": {
"width": 680,
"height": 340,
"content": "## 服务工单分类助手"
},
"typeVersion": 1
},
{
"id": "b938cc45-66d8-4ddf-9e47-a9859d4de23f",
"name": "需要更多信息?",
"type": "n8n-nodes-base.if",
"position": [
1036,
780
],
"parameters": {
"options": {
"ignoreCase": "={{ true }}"
},
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": false,
"typeValidation": "loose"
},
"combinator": "and",
"conditions": [
{
"id": "d5dcb6ce-fc47-4519-9403-cbc1e581cf4f",
"operator": {
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $('AI Agent').item.json.output.Status }}",
"rightValue": "=Needs More Info"
}
]
},
"looseTypeValidation": true
},
"typeVersion": 2.2
},
{
"id": "d770d99b-aa29-4730-873f-e1a0f89f1d8b",
"name": "设置类型为问题",
"type": "n8n-nodes-base.taiga",
"position": [
-64,
480
],
"parameters": {
"issueId": "={{ $('Service Ticket Created').item.json.data.id }}",
"operation": "update",
"projectId": "={{ $('Service Ticket Created').item.json.data.project.id }}",
"updateFields": {
"type": 5097140
}
},
"credentials": {
"taigaApi": {
"id": "YlBnqAiNyP5fKz1v",
"name": "Taiga account"
}
},
"typeVersion": 1
},
{
"id": "f1819ad7-3c53-4791-b419-f42264a65214",
"name": "定义类型",
"type": "n8n-nodes-base.switch",
"position": [
-284,
759
],
"parameters": {
"rules": {
"values": [
{
"outputKey": "Question",
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "c7b02551-5aa0-41e4-a99a-ca58987e0ccb",
"operator": {
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.output.Type }}",
"rightValue": "Question"
}
]
},
"renameOutput": true
},
{
"outputKey": "Enhancement",
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "28b9e2a1-ccc3-45c3-81e3-96fa08340f63",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.output.Type }}",
"rightValue": "Enhancement"
}
]
},
"renameOutput": true
},
{
"outputKey": "Bug",
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "974e3244-80b3-481d-9ae2-bf01e337b3a6",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.output.Type }}",
"rightValue": "Bug"
}
]
},
"renameOutput": true
},
{
"outputKey": "Onboarding",
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "4321a8f3-ecc4-483f-b598-bc13d094a95a",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.output.Type }}",
"rightValue": "Onboarding"
}
]
},
"renameOutput": true
}
]
},
"options": {}
},
"typeVersion": 3.2
},
{
"id": "ff5cb1d2-b375-4446-b0ea-93765aef6873",
"name": "设置类型为增强",
"type": "n8n-nodes-base.taiga",
"position": [
-64,
680
],
"parameters": {
"issueId": "={{ $('Service Ticket Created').item.json.data.id }}",
"operation": "update",
"projectId": "={{ $('Service Ticket Created').item.json.data.project.id }}",
"updateFields": {
"type": 5097141
}
},
"credentials": {
"taigaApi": {
"id": "YlBnqAiNyP5fKz1v",
"name": "Taiga account"
}
},
"typeVersion": 1
},
{
"id": "b192a22d-05ed-4f32-bb38-fa116e5fb964",
"name": "设置类型为缺陷",
"type": "n8n-nodes-base.taiga",
"position": [
-64,
880
],
"parameters": {
"issueId": "={{ $('Service Ticket Created').item.json.data.id }}",
"operation": "update",
"projectId": "={{ $('Service Ticket Created').item.json.data.project.id }}",
"updateFields": {
"type": 5097139
}
},
"credentials": {
"taigaApi": {
"id": "YlBnqAiNyP5fKz1v",
"name": "Taiga account"
}
},
"typeVersion": 1
},
{
"id": "9a8f5eb9-90b6-499a-86a3-1fb49a08e198",
"name": "设置为需要信息并阻塞",
"type": "n8n-nodes-base.taiga",
"position": [
1260,
760
],
"parameters": {
"issueId": "={{ $('Service Ticket Created').item.json.data.id }}",
"operation": "update",
"projectId": "={{ $('Service Ticket Created').item.json.data.project.id }}",
"updateFields": {
"status": 11860979,
"is_blocked": true,
"description": "=We need more information to forward this ticket: \n{{ $('AI Agent').item.json.output.Missing }}\n\nExisting information: \n{{ $('Service Ticket Created').item.json.data.description }}"
}
},
"credentials": {
"taigaApi": {
"id": "YlBnqAiNyP5fKz1v",
"name": "Taiga account"
}
},
"typeVersion": 1
},
{
"id": "68929c1a-a3eb-42d3-9ce5-e4c925fa12a6",
"name": "设置类型为入职",
"type": "n8n-nodes-base.taiga",
"position": [
-64,
1080
],
"parameters": {
"issueId": "={{ $('Service Ticket Created').item.json.data.id }}",
"operation": "update",
"projectId": "={{ $('Service Ticket Created').item.json.data.project.id }}",
"updateFields": {
"type": 5099270
}
},
"credentials": {
"taigaApi": {
"id": "YlBnqAiNyP5fKz1v",
"name": "Taiga account"
}
},
"typeVersion": 1
},
{
"id": "9ab8069b-c4c1-41cf-a44d-876283374fa7",
"name": "定义严重性",
"type": "n8n-nodes-base.switch",
"position": [
156,
738
],
"parameters": {
"rules": {
"values": [
{
"outputKey": "Wishlist",
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "4321a8f3-ecc4-483f-b598-bc13d094a95a",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $('AI Agent').item.json.output.Severity }}",
"rightValue": "Wishlist"
}
]
},
"renameOutput": true
},
{
"outputKey": "Minor",
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "c7b02551-5aa0-41e4-a99a-ca58987e0ccb",
"operator": {
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $('AI Agent').item.json.output.Severity }}",
"rightValue": "Minor"
}
]
},
"renameOutput": true
},
{
"outputKey": "Normal",
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "28b9e2a1-ccc3-45c3-81e3-96fa08340f63",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $('AI Agent').item.json.output.Severity }}",
"rightValue": "Normal"
}
]
},
"renameOutput": true
},
{
"outputKey": "Critical",
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "974e3244-80b3-481d-9ae2-bf01e337b3a6",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $('AI Agent').item.json.output.Severity }}",
"rightValue": "Critical"
}
]
},
"renameOutput": true
},
{
"outputKey": "Important",
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "ffa060f2-d701-4ee3-8ebf-9cd43070cb26",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $('AI Agent').item.json.output.Severity }}",
"rightValue": "Important"
}
]
},
"renameOutput": true
}
]
},
"options": {}
},
"typeVersion": 3.2
},
{
"id": "28960c04-ec26-4815-b046-ff40a278b91c",
"name": "设置严重性为愿望清单",
"type": "n8n-nodes-base.taiga",
"position": [
376,
380
],
"parameters": {
"issueId": "={{ $('Service Ticket Created').item.json.data.id }}",
"operation": "update",
"projectId": "={{ $('Service Ticket Created').item.json.data.project.id }}",
"updateFields": {
"severity": 8467039
}
},
"credentials": {
"taigaApi": {
"id": "YlBnqAiNyP5fKz1v",
"name": "Taiga account"
}
},
"typeVersion": 1
},
{
"id": "6645c07e-269a-490a-a734-225ea344831b",
"name": "设置严重性为轻微",
"type": "n8n-nodes-base.taiga",
"position": [
376,
580
],
"parameters": {
"issueId": "={{ $('Service Ticket Created').item.json.data.id }}",
"operation": "update",
"projectId": "={{ $('Service Ticket Created').item.json.data.project.id }}",
"updateFields": {
"severity": 8467040
}
},
"credentials": {
"taigaApi": {
"id": "YlBnqAiNyP5fKz1v",
"name": "Taiga account"
}
},
"typeVersion": 1
},
{
"id": "05ec7c2a-4390-464c-b3c2-4ba792018e87",
"name": "设置严重性为正常",
"type": "n8n-nodes-base.taiga",
"position": [
376,
780
],
"parameters": {
"issueId": "={{ $('Service Ticket Created').item.json.data.id }}",
"operation": "update",
"projectId": "={{ $('Service Ticket Created').item.json.data.project.id }}",
"updateFields": {
"severity": 8467041
}
},
"credentials": {
"taigaApi": {
"id": "YlBnqAiNyP5fKz1v",
"name": "Taiga account"
}
},
"typeVersion": 1
},
{
"id": "b3710431-d5d2-47d2-8c04-764370aceb74",
"name": "设置严重性为严重",
"type": "n8n-nodes-base.taiga",
"position": [
376,
980
],
"parameters": {
"issueId": "={{ $('Service Ticket Created').item.json.data.id }}",
"operation": "update",
"projectId": "={{ $('Service Ticket Created').item.json.data.project.id }}",
"updateFields": {
"severity": 8467043
}
},
"credentials": {
"taigaApi": {
"id": "YlBnqAiNyP5fKz1v",
"name": "Taiga account"
}
},
"typeVersion": 1
},
{
"id": "f5b69f61-b6cb-4698-840e-85ee66a953ac",
"name": "设置严重性为重要",
"type": "n8n-nodes-base.taiga",
"position": [
376,
1180
],
"parameters": {
"issueId": "={{ $('Service Ticket Created').item.json.data.id }}",
"operation": "update",
"projectId": "={{ $('Service Ticket Created').item.json.data.project.id }}",
"updateFields": {
"severity": 8467042
}
},
"credentials": {
"taigaApi": {
"id": "YlBnqAiNyP5fKz1v",
"name": "Taiga account"
}
},
"typeVersion": 1
},
{
"id": "d1fe2173-51d0-4d37-bcaf-0b556c0966cc",
"name": "定义优先级",
"type": "n8n-nodes-base.switch",
"position": [
596,
780
],
"parameters": {
"rules": {
"values": [
{
"outputKey": "Low",
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "4321a8f3-ecc4-483f-b598-bc13d094a95a",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $('AI Agent').item.json.output.Priority }}",
"rightValue": "Low"
}
]
},
"renameOutput": true
},
{
"outputKey": "Normal",
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "c7b02551-5aa0-41e4-a99a-ca58987e0ccb",
"operator": {
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $('AI Agent').item.json.output.Priority }}",
"rightValue": "Normal"
}
]
},
"renameOutput": true
},
{
"outputKey": "High",
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "28b9e2a1-ccc3-45c3-81e3-96fa08340f63",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $('AI Agent').item.json.output.Priority }}",
"rightValue": "High"
}
]
},
"renameOutput": true
}
]
},
"options": {}
},
"typeVersion": 3.2
},
{
"id": "04621fab-ad8c-4ac1-a34b-7b0ffdd8f0ed",
"name": "设置优先级为低",
"type": "n8n-nodes-base.taiga",
"position": [
816,
580
],
"parameters": {
"issueId": "={{ $('Service Ticket Created').item.json.data.id }}",
"operation": "update",
"projectId": "={{ $('Service Ticket Created').item.json.data.project.id }}",
"updateFields": {
"priority": 5086090
}
},
"credentials": {
"taigaApi": {
"id": "YlBnqAiNyP5fKz1v",
"name": "Taiga account"
}
},
"typeVersion": 1
},
{
"id": "9d44c422-7ddc-4c03-93bd-78ba0f0d6cc0",
"name": "设置优先级为高",
"type": "n8n-nodes-base.taiga",
"position": [
816,
980
],
"parameters": {
"issueId": "={{ $('Service Ticket Created').item.json.data.id }}",
"operation": "update",
"projectId": "={{ $('Service Ticket Created').item.json.data.project.id }}",
"updateFields": {
"priority": 5086092
}
},
"credentials": {
"taigaApi": {
"id": "YlBnqAiNyP5fKz1v",
"name": "Taiga account"
}
},
"typeVersion": 1
},
{
"id": "67ae7694-b345-4a96-8749-7f036d071f8b",
"name": "设置优先级为正常",
"type": "n8n-nodes-base.taiga",
"position": [
816,
780
],
"parameters": {
"issueId": "={{ $('Service Ticket Created').item.json.data.id }}",
"operation": "update",
"projectId": "={{ $('Service Ticket Created').item.json.data.project.id }}",
"updateFields": {
"priority": 5086091
}
},
"credentials": {
"taigaApi": {
"id": "YlBnqAiNyP5fKz1v",
"name": "Taiga account"
}
},
"typeVersion": 1
},
{
"id": "5728f70b-7787-41b7-8271-6b89ae17a142",
"name": "AI Agent",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
-660,
780
],
"parameters": {
"text": "={{ $json.data.subject }}",
"options": {
"systemMessage": "You are a helpful AI assistant designed to analyze Taiga service ticket descriptions and extract these 4 fields and their values from the description:\n\nType: [Bug, Question, Enhancement, Onboarding]\nSeverity: [Wishlist, Minor, Normal, Important, Critical]\nPriority: [Low, Normal, High]\nStatus: [New, Rejected, Needs More Info]\nMissing: Blank if all the info is in the ticket\n\nEach parameter will return one of these options each. \nIf the status is \"Needs More Info\" then, it should say what's missing in the 'Missing' Parameter. "
},
"promptType": "define",
"hasOutputParser": true
},
"typeVersion": 1.9
},
{
"id": "0c281d01-dfab-4d91-8838-23446d269f67",
"name": "结构化输出解析器",
"type": "@n8n/n8n-nodes-langchain.outputParserStructured",
"position": [
-512,
1000
],
"parameters": {
"jsonSchemaExample": "{\n \"Type\": \"Bug\",\n \"Severity\": \"Important\",\n \"Priority\": \"Medium\",\n \"Status\": \"New\",\n \"Missing\": \"Need more information about the fix. Where is it and what's the problem that is happening?\" \n \n}"
},
"typeVersion": 1.2
},
{
"id": "c00a96ca-4c20-44c0-91d3-2b9586008368",
"name": "OpenAI 聊天模型",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
-632,
1000
],
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-4o-mini"
},
"options": {}
},
"credentials": {
"openAiApi": {
"id": "DZaBabO9u605tAtZ",
"name": "OpenAi account"
}
},
"typeVersion": 1.2
}
],
"active": true,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "db6d4091-3c3f-4ba8-8e86-bd130ff06b74",
"connections": {
"AI Agent": {
"main": [
[
{
"node": "Define Type",
"type": "main",
"index": 0
}
]
]
},
"Define Type": {
"main": [
[
{
"node": "Set Type to Question",
"type": "main",
"index": 0
}
],
[
{
"node": "Set Type to Enhancement",
"type": "main",
"index": 0
}
],
[
{
"node": "Set Type to Bug",
"type": "main",
"index": 0
}
],
[
{
"node": "Set Type to Onboarding",
"type": "main",
"index": 0
}
]
]
},
"Define Priority": {
"main": [
[
{
"node": "Set Priority To Low",
"type": "main",
"index": 0
}
],
[
{
"node": "Set Priority To Normal",
"type": "main",
"index": 0
}
],
[
{
"node": "Set Priority To High",
"type": "main",
"index": 0
}
]
]
},
"Define Severity": {
"main": [
[
{
"node": "Set Severity to Wishlist",
"type": "main",
"index": 0
}
],
[
{
"node": "Set Severity to Minor",
"type": "main",
"index": 0
}
],
[
{
"node": "Set Severity to Normal",
"type": "main",
"index": 0
}
],
[
{
"node": "Set Severity to Critical",
"type": "main",
"index": 0
}
],
[
{
"node": "Set Severity to Important",
"type": "main",
"index": 0
}
]
]
},
"Set Type to Bug": {
"main": [
[
{
"node": "Define Severity",
"type": "main",
"index": 0
}
]
]
},
"More Info Needed?": {
"main": [
[
{
"node": "Set to Needs Info & Block",
"type": "main",
"index": 0
}
]
]
},
"OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "AI Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Set Priority To Low": {
"main": [
[
{
"node": "More Info Needed?",
"type": "main",
"index": 0
}
]
]
},
"Set Priority To High": {
"main": [
[
{
"node": "More Info Needed?",
"type": "main",
"index": 0
}
]
]
},
"Set Type to Question": {
"main": [
[
{
"node": "Define Severity",
"type": "main",
"index": 0
}
]
]
},
"Set Severity to Minor": {
"main": [
[
{
"node": "Define Priority",
"type": "main",
"index": 0
}
]
]
},
"Service Ticket Created": {
"main": [
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
]
]
},
"Set Priority To Normal": {
"main": [
[
{
"node": "More Info Needed?",
"type": "main",
"index": 0
}
]
]
},
"Set Severity to Normal": {
"main": [
[
{
"node": "Define Priority",
"type": "main",
"index": 0
}
]
]
},
"Set Type to Onboarding": {
"main": [
[
{
"node": "Define Severity",
"type": "main",
"index": 0
}
]
]
},
"Set Type to Enhancement": {
"main": [
[
{
"node": "Define Severity",
"type": "main",
"index": 0
}
]
]
},
"Set Severity to Critical": {
"main": [
[
{
"node": "Define Priority",
"type": "main",
"index": 0
}
]
]
},
"Set Severity to Wishlist": {
"main": [
[
{
"node": "Define Priority",
"type": "main",
"index": 0
}
]
]
},
"Structured Output Parser": {
"ai_outputParser": [
[
{
"node": "AI Agent",
"type": "ai_outputParser",
"index": 0
}
]
]
},
"Set Severity to Important": {
"main": [
[
{
"node": "Define Priority",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
高级 - 客户支持, 人工智能
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
AI邮件分诊与GPT-4警报系统及Telegram通知
AI邮件分诊与GPT-4警报系统及Telegram通知
If
Set
Gmail
+22
104 节点Peter Joslyn
客户支持
LinkedIn自动消息路由与响应器(含请求检测)
LinkedIn自动消息路由与响应器,具备请求检测功能
If
Set
Slack
+12
52 节点Angel Menendez
客户支持
基于 GPT、LangChain 和智能路由的 AI 驱动客户服务自动化
AI驱动客户服务自动化,基于GPT、LangChain和智能路由
Set
Gmail
Merge
+19
46 节点Paul
客户支持
基于AI的MIS代理
基于AI的管理信息系统代理
If
Set
Code
+29
129 节点Kumar Shivam
客户支持
Noco看板与AI优先级排序
使用AI分配请求并根据NocoDB看板状态发送提醒
If
Set
Slack
+11
27 节点Łukasz
客户支持
美甲沙龙(美国)
使用WhatsApp、GPT和Google日历自动化沙龙预约管理
If
Set
Code
+20
164 节点Denis
客户支持