ITSM1
高级
这是一个Ticket Management, AI RAG领域的自动化工作流,包含 24 个节点。主要使用 Set, ServiceNow, HttpRequest, ManualTrigger, Agent 等节点。 使用 Gemini、Qdrant 和 ServiceNow 自动化 ITSM 工单分类与解决
前置要求
- •可能需要目标 API 的认证凭证
- •Qdrant 服务器连接信息
- •Google Gemini API Key
使用的节点 (24)
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "2Qu0E8lUeCSRtola",
"meta": {
"instanceId": "3d82f3a40f5ac815bc32d53bda9e677518671f10c8d9077f63f459ab3bede2c9"
},
"name": "ITSM1",
"tags": [],
"nodes": [
{
"id": "850abce9-599a-413c-a436-60a008c0b5c9",
"name": "AI Agent",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
-128,
528
],
"parameters": {
"text": "=You are agent search {{ $json.chatInput }} query in the in the Knowledge base \"FAQBase\" and give the response from that Qdrant Base other wise tell no answer found. ",
"options": {},
"promptType": "define",
"hasOutputParser": true
},
"typeVersion": 2.2
},
{
"id": "ba465b14-47c5-4f6a-9f75-8c55bae9fdac",
"name": "Google Gemini 聊天模型",
"type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
"position": [
-320,
832
],
"parameters": {
"options": {}
},
"credentials": {
"googlePalmApi": {
"id": "qaiIdOkANhDFbjxS",
"name": "Google Gemini(PaLM) Api account"
}
},
"typeVersion": 1
},
{
"id": "9b779910-299b-4400-9146-f7b6201b1b6f",
"name": "简单记忆",
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"position": [
-128,
816
],
"parameters": {},
"typeVersion": 1.3
},
{
"id": "43ca808f-9c37-423d-8c4d-92abee33e3ea",
"name": "当收到聊天消息时",
"type": "@n8n/n8n-nodes-langchain.chatTrigger",
"position": [
-800,
320
],
"webhookId": "3b6ac424-9648-4c8e-9c7d-da1c6a2dfc01",
"parameters": {
"mode": "webhook",
"public": true,
"options": {
"responseMode": "lastNode"
}
},
"typeVersion": 1.3,
"alwaysOutputData": false
},
{
"id": "89e2f425-c478-4c07-9921-7f70b5e9c952",
"name": "文本分类器",
"type": "@n8n/n8n-nodes-langchain.textClassifier",
"position": [
-528,
304
],
"parameters": {
"options": {
"enableAutoFixing": true,
"systemPromptTemplate": "Please classify the text provided by the user into one of the following categories: {categories}, and use the provided formatting instructions below. Don't explain, and only output the json."
},
"inputText": "={{ $json.chatInput }}",
"categories": {
"categories": [
{
"category": "Incident ",
"description": "Something is broken or not working (e.g., system down, hardware failure) "
},
{
"category": "Request",
"description": " Asking for something new installation (e.g., software installation, access request)."
},
{
"category": "Other",
"description": " Anything that doesn't fit the above (e.g., general queries, spam)."
}
]
}
},
"typeVersion": 1.1,
"alwaysOutputData": true
},
{
"id": "fcf2c082-6764-4ef4-aecc-f6bc90c154c0",
"name": "Google Gemini聊天模型1",
"type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
"position": [
-608,
576
],
"parameters": {
"options": {}
},
"credentials": {
"googlePalmApi": {
"id": "qaiIdOkANhDFbjxS",
"name": "Google Gemini(PaLM) Api account"
}
},
"typeVersion": 1
},
{
"id": "002f60a9-f241-45a8-8be5-f02ed7db3475",
"name": "创建事件",
"type": "n8n-nodes-base.serviceNow",
"position": [
0,
0
],
"parameters": {
"resource": "incident",
"operation": "create",
"authentication": "basicAuth",
"additionalFields": {},
"short_description": "={{ $('When chat message received').item.json.chatInput }}"
},
"credentials": {
"serviceNowBasicApi": {
"id": "opQJW0Ko8bXrntfQ",
"name": "ServiceNow Basic Auth account 2"
}
},
"typeVersion": 1
},
{
"id": "d8d72820-7352-4db7-bde0-7f34829dd0a2",
"name": "Google Gemini聊天模型2",
"type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
"position": [
272,
176
],
"parameters": {
"options": {}
},
"credentials": {
"googlePalmApi": {
"id": "qaiIdOkANhDFbjxS",
"name": "Google Gemini(PaLM) Api account"
}
},
"typeVersion": 1
},
{
"id": "c62d043f-e4fd-4bd9-b3bc-352cfe187e0b",
"name": "Qdrant 向量存储",
"type": "@n8n/n8n-nodes-langchain.vectorStoreQdrant",
"position": [
48,
832
],
"parameters": {
"mode": "retrieve-as-tool",
"options": {},
"toolDescription": "=Use this tool to get the actual information{{ $json.chatInput }} from the Qdrant Collection",
"qdrantCollection": {
"__rl": true,
"mode": "list",
"value": "FAQBase",
"cachedResultName": "FAQBase"
}
},
"credentials": {
"qdrantApi": {
"id": "TehVMtfBbOEqo45g",
"name": "QdrantApi account"
}
},
"typeVersion": 1.3
},
{
"id": "f503164a-6a5e-4f8e-ab13-b2d9291cdbc0",
"name": "编辑字段",
"type": "n8n-nodes-base.set",
"position": [
800,
672
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "807e969e-a61f-491b-a476-523eadf250b2",
"name": "sample_kb",
"type": "string",
"value": "Question: How to raise a ticket in an ITSM tool?\nAnswer: Go to the ITSM portal → Click on \"Create New Ticket\" → Fill in the required details (issue type, description, priority) → Submit the ticket.\n\nQuestion: How to check the status of a ticket?\nAnswer: Log in to the ITSM tool → Go to \"My Tickets\" or \"Ticket History\" → Check the current status (Open, In Progress, Resolved, Closed).\n\nQuestion: How to install software using ITSM?\nAnswer: Raise a \"Service Request\" ticket → Select \"Software Installation\" → Mention the software name and version → Submit → Wait for approval and installation by IT team.\n\nQuestion: How to reset your password?\nAnswer: Go to the ITSM portal → Click on \"Password Reset\" under Service Requests → Fill in your user ID → Submit → Follow the instructions sent via email."
}
]
}
},
"typeVersion": 3.4
},
{
"id": "081de542-a82b-4644-a6f3-354a308d6994",
"name": "Qdrant 向量存储1",
"type": "@n8n/n8n-nodes-langchain.vectorStoreQdrant",
"position": [
1008,
672
],
"parameters": {
"mode": "insert",
"options": {},
"qdrantCollection": {
"__rl": true,
"mode": "list",
"value": "FAQBase",
"cachedResultName": "FAQBase"
}
},
"credentials": {
"qdrantApi": {
"id": "TehVMtfBbOEqo45g",
"name": "QdrantApi account"
}
},
"typeVersion": 1.3
},
{
"id": "8e968996-0d89-484e-8566-0091c67ab3c0",
"name": "Google Gemini 嵌入",
"type": "@n8n/n8n-nodes-langchain.embeddingsGoogleGemini",
"position": [
928,
896
],
"parameters": {},
"credentials": {
"googlePalmApi": {
"id": "qaiIdOkANhDFbjxS",
"name": "Google Gemini(PaLM) Api account"
}
},
"typeVersion": 1
},
{
"id": "68801987-ab93-48da-892f-abec5ed16fc4",
"name": "当点击“执行工作流”时",
"type": "n8n-nodes-base.manualTrigger",
"position": [
624,
688
],
"parameters": {},
"typeVersion": 1
},
{
"id": "d61ab112-60d9-4fb2-a6c2-19ce0b54a84a",
"name": "嵌入 Google Gemini1",
"type": "@n8n/n8n-nodes-langchain.embeddingsGoogleGemini",
"position": [
96,
1056
],
"parameters": {},
"credentials": {
"googlePalmApi": {
"id": "qaiIdOkANhDFbjxS",
"name": "Google Gemini(PaLM) Api account"
}
},
"typeVersion": 1
},
{
"id": "6d54ec99-6148-491f-8c78-c6f8b797c135",
"name": "默认数据加载器",
"type": "@n8n/n8n-nodes-langchain.documentDefaultDataLoader",
"position": [
1200,
944
],
"parameters": {
"options": {}
},
"typeVersion": 1.1
},
{
"id": "fda35534-f519-4ef1-b320-191c0879d3bc",
"name": "摘要链",
"type": "@n8n/n8n-nodes-langchain.chainSummarization",
"position": [
272,
16
],
"parameters": {
"options": {}
},
"typeVersion": 2.1
},
{
"id": "4ce5cc1b-eafe-4fa8-8b0d-449bdc16ceed",
"name": "HTTP 请求",
"type": "n8n-nodes-base.httpRequest",
"position": [
-80,
320
],
"parameters": {
"url": "python.com",
"options": {}
},
"typeVersion": 4.2
},
{
"id": "03943db4-18b1-4fd8-915e-49b8b77d1d66",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
336,
864
],
"parameters": {
"content": "节点名称:Qdrant向量存储"
},
"typeVersion": 1
},
{
"id": "466ca2f3-9c5f-43d2-994c-fccf2279b67a",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
1328,
640
],
"parameters": {
"content": "节点名称:Qdrant向量存储1"
},
"typeVersion": 1
},
{
"id": "78002e8e-2210-4856-a7d9-c35bf884c0f8",
"name": "便签2",
"type": "n8n-nodes-base.stickyNote",
"position": [
432,
160
],
"parameters": {
"content": "节点名称:Google Gemini聊天模型2"
},
"typeVersion": 1
},
{
"id": "736beef6-f3d1-4afa-9134-8c22b07381f1",
"name": "便签3",
"type": "n8n-nodes-base.stickyNote",
"position": [
-64,
-208
],
"parameters": {
"content": "节点名称:创建事件"
},
"typeVersion": 1
},
{
"id": "e23ea4c6-36c5-4eb3-a070-cd66a42fa72c",
"name": "便签说明4",
"type": "n8n-nodes-base.stickyNote",
"position": [
1856,
576
],
"parameters": {},
"typeVersion": 1
},
{
"id": "73f86ac8-7297-4480-acdd-cda13629c85f",
"name": "便签说明5",
"type": "n8n-nodes-base.stickyNote",
"position": [
-560,
96
],
"parameters": {
"width": 256,
"content": "节点名称:文本分类器"
},
"typeVersion": 1
},
{
"id": "963a1038-3cc7-4c89-a00c-8d310a51d378",
"name": "便签 7",
"type": "n8n-nodes-base.stickyNote",
"position": [
192,
512
],
"parameters": {
"content": "节点名称:AI代理"
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "27e4bb28-93dd-4fea-9053-e1482a89c58b",
"connections": {
"Edit Fields": {
"main": [
[
{
"node": "Qdrant Vector Store1",
"type": "main",
"index": 0
}
]
]
},
"Simple Memory": {
"ai_memory": [
[
{
"node": "AI Agent",
"type": "ai_memory",
"index": 0
}
]
]
},
"Text Classifier": {
"main": [
[
{
"node": "Create an incident",
"type": "main",
"index": 0
}
],
[
{
"node": "HTTP Request",
"type": "main",
"index": 0
}
],
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
]
]
},
"Create an incident": {
"main": [
[
{
"node": "Summarization Chain",
"type": "main",
"index": 0
}
]
]
},
"Default Data Loader": {
"ai_document": [
[
{
"node": "Qdrant Vector Store1",
"type": "ai_document",
"index": 0
}
]
]
},
"Qdrant Vector Store": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Embeddings Google Gemini": {
"ai_embedding": [
[
{
"node": "Qdrant Vector Store1",
"type": "ai_embedding",
"index": 0
}
]
]
},
"Google Gemini Chat Model": {
"ai_languageModel": [
[
{
"node": "AI Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Embeddings Google Gemini1": {
"ai_embedding": [
[
{
"node": "Qdrant Vector Store",
"type": "ai_embedding",
"index": 0
}
]
]
},
"Google Gemini Chat Model1": {
"ai_languageModel": [
[
{
"node": "Text Classifier",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Google Gemini Chat Model2": {
"ai_languageModel": [
[
{
"node": "Summarization Chain",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"When chat message received": {
"main": [
[
{
"node": "Text Classifier",
"type": "main",
"index": 0
}
]
]
},
"When clicking ‘Execute workflow’": {
"main": [
[
{
"node": "Edit Fields",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
高级 - 工单管理, AI RAG 检索增强
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
在可视化参考库中探索n8n节点
在可视化参考库中探索n8n节点
If
Ftp
Set
+93
113 节点I versus AI
其他
使用Gemini RAG管道构建文档专家聊天机器人
使用Gemini RAG管道构建文档专家聊天机器人
Set
Html
Filter
+16
48 节点Lucas Peyrin
内部知识库
🤖 使用 RAG、Gemini 和 Supabase 创建文档专家机器人
🤖 使用 RAG、Gemini 和 Supabase 创建文档专家机器人
Set
Html
Filter
+18
54 节点Lucas Peyrin
内部知识库
文档 RAG 和聊天代理:Google Drive 到 Qdrant 与 Mistral OCR
文档 RAG 和聊天代理:Google Drive 到 Qdrant 与 Mistral OCR
If
Set
Code
+16
40 节点DIGITAL BIZ TECH
内部知识库
AI驱动的SEO博客编写器
使用Gemini、Scrapeless和Pinecone RAG生成SEO优化的博客内容
Set
Code
Html
+17
28 节点scrapeless official
内容创作
⚡AI驱动的YouTube播放列表和视频摘要与分析v2
AI YouTube播放列表与视频分析聊天机器人
If
Set
Code
+20
72 节点dmr
其他