ServiceNow L1支持代理
中级
这是一个AI Chatbot, Multimodal AI领域的自动化工作流,包含 15 个节点。主要使用 ServiceNow, HttpRequest, Agent, ChatTrigger, ToolSerpApi 等节点。 基于GPT-4的ServiceNow聊天分流——事件与请求路由
前置要求
- •可能需要目标 API 的认证凭证
- •OpenAI API Key
使用的节点 (15)
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "wgebr18bzsF4QNVr",
"meta": {
"instanceId": "6004a16b59a95da573dfac2b89c29cb3d5d09e00386053659b2f24878624b8d6",
"templateCredsSetupCompleted": true
},
"name": "ServiceNow L1 支持代理",
"tags": [],
"nodes": [
{
"id": "ad145ddf-9106-441d-94cd-ed87bbc85658",
"name": "当收到聊天消息时",
"type": "@n8n/n8n-nodes-langchain.chatTrigger",
"position": [
-352,
16
],
"webhookId": "8b4142f0-e9e7-44da-90f1-dd94227275bd",
"parameters": {
"options": {}
},
"typeVersion": 1.1
},
{
"id": "c0366cfa-74e0-405c-9941-a844262d84d0",
"name": "OpenAI 聊天模型",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
-240,
272
],
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-4.1-mini"
},
"options": {}
},
"credentials": {
"openAiApi": {
"id": "ppNn03FE7vbsyINF",
"name": "n8n free OpenAI API credits"
}
},
"typeVersion": 1.2
},
{
"id": "2b11cc62-9c8f-4248-86c3-6c8ebfe84361",
"name": "文本分类器",
"type": "@n8n/n8n-nodes-langchain.textClassifier",
"position": [
-80,
48
],
"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": "Incident- If something is broken or not working or it's a complaint etc. Then it is an incident "
},
{
"category": "Request",
"description": "Request- If something is a access request or provisioning ask, product etc orders then it is request"
},
{
"category": "Everything Else",
"description": "Everything which is not part of either of those categories must come here like Knowledge Search"
}
]
}
},
"typeVersion": 1.1
},
{
"id": "4fee1f25-ad74-4cc4-81ad-ffec25bdee26",
"name": "AI Agent",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
480,
272
],
"parameters": {
"options": {
"systemMessage": "You are a helpful assistant. Who creates requests based on the user query using the tool. Always create the request using the http tool attached to you"
}
},
"typeVersion": 2.1
},
{
"id": "823405a4-92b9-46ac-a241-b3a428a1c940",
"name": "OpenAI 聊天模型1",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
352,
496
],
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-4.1-mini"
},
"options": {}
},
"credentials": {
"openAiApi": {
"id": "ppNn03FE7vbsyINF",
"name": "n8n free OpenAI API credits"
}
},
"typeVersion": 1.2
},
{
"id": "d0d74ce3-d5cc-47ab-85c8-d06e95d553dd",
"name": "简单记忆",
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"position": [
544,
496
],
"parameters": {},
"typeVersion": 1.3
},
{
"id": "aa1dfb61-1da5-46f5-9357-78477ddd7fce",
"name": "摘要链",
"type": "@n8n/n8n-nodes-langchain.chainSummarization",
"position": [
1104,
64
],
"parameters": {
"options": {
"summarizationMethodAndPrompts": {
"values": {
"prompt": "=Write a user friendly summary of the following:\n\n\nAgent Action\"{text}\" \nUser Query\"{{ $('When chat message received').item.json.chatInput }}\"\n\n\nCONCISE SUMMARY: ",
"summarizationMethod": "stuff"
}
}
}
},
"typeVersion": 2.1
},
{
"id": "f0843c75-fe30-4bed-8427-d975e5e7dd5c",
"name": "OpenAI Chat Model3",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
1184,
320
],
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-4.1-mini"
},
"options": {}
},
"credentials": {
"openAiApi": {
"id": "ppNn03FE7vbsyINF",
"name": "n8n free OpenAI API credits"
}
},
"typeVersion": 1.2
},
{
"id": "9e170bf4-ca79-466b-a57b-80bf0f56d007",
"name": "HTTP请求1",
"type": "n8n-nodes-base.httpRequest",
"position": [
560,
32
],
"parameters": {
"url": "https://dev353652.service-now.com/api/sn_sc/servicecatalog/items/a4cc1293939362504311f6fa3d03d698/order_now",
"method": "POST",
"options": {},
"jsonBody": "={\n \"sysparm_quantity\": 1,\n \"variables\": {\n \"description\": \"{{ $('When chat message received').item.json.chatInput }}\"\n }\n}\n",
"sendBody": true,
"sendHeaders": true,
"specifyBody": "json",
"authentication": "predefinedCredentialType",
"headerParameters": {
"parameters": [
{
"name": "Accept",
"value": "application/json"
}
]
},
"nodeCredentialType": "serviceNowBasicApi"
},
"credentials": {
"serviceNowBasicApi": {
"id": "KxyhRaz4peVyPmfe",
"name": "ServiceNow Basic Auth account"
}
},
"typeVersion": 4.2
},
{
"id": "afb9f332-0972-4854-a3fb-180992307f49",
"name": "创建事件",
"type": "n8n-nodes-base.serviceNow",
"position": [
560,
-144
],
"parameters": {
"resource": "incident",
"operation": "create",
"authentication": "basicAuth",
"additionalFields": {},
"short_description": "={{ $('When chat message received').item.json.chatInput }}"
},
"credentials": {
"serviceNowBasicApi": {
"id": "KxyhRaz4peVyPmfe",
"name": "ServiceNow Basic Auth account"
}
},
"typeVersion": 1
},
{
"id": "7fa36225-2adb-4534-9652-b55afbcb14f4",
"name": "SerpAPI",
"type": "@n8n/n8n-nodes-langchain.toolSerpApi",
"position": [
736,
496
],
"parameters": {
"options": {}
},
"credentials": {
"serpApi": {
"id": "5P7rGPm6cF7iPBTo",
"name": "SerpAPI account 2"
}
},
"typeVersion": 1
},
{
"id": "b7b3f641-523a-4360-9e56-1f7e4b614128",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
-96,
-192
],
"parameters": {
"color": 3,
"width": 288,
"height": 208,
"content": "## 文本分类器"
},
"typeVersion": 1
},
{
"id": "020ea78c-ae47-4937-9867-ceb6a9503aa5",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
832,
-288
],
"parameters": {
"content": "## 创建事件"
},
"typeVersion": 1
},
{
"id": "acdb5a12-9f4a-4dfd-8f82-b4ad8ccbe4ef",
"name": "便签3",
"type": "n8n-nodes-base.stickyNote",
"position": [
832,
320
],
"parameters": {
"content": "## 最后"
},
"typeVersion": 1
},
{
"id": "a7f8c6f9-d624-46fc-8f04-f4dd7164adb7",
"name": "便签4",
"type": "n8n-nodes-base.stickyNote",
"position": [
832,
-48
],
"parameters": {
"height": 272,
"content": "## 提交通用请求"
},
"typeVersion": 1
}
],
"active": true,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "78eec813-6c33-4ab8-a496-1e5d47eb4311",
"connections": {
"SerpAPI": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"AI Agent": {
"main": [
[
{
"node": "Summarization Chain",
"type": "main",
"index": 0
}
]
]
},
"HTTP Request1": {
"main": [
[
{
"node": "Summarization Chain",
"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 Request1",
"type": "main",
"index": 0
}
],
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
]
]
},
"OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "Text Classifier",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Create an incident": {
"main": [
[
{
"node": "Summarization Chain",
"type": "main",
"index": 0
}
]
]
},
"OpenAI Chat Model1": {
"ai_languageModel": [
[
{
"node": "AI Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"OpenAI Chat Model3": {
"ai_languageModel": [
[
{
"node": "Summarization Chain",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"When chat message received": {
"main": [
[
{
"node": "Text Classifier",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
中级 - AI 聊天机器人, 多模态 AI
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
房产搜索器爬虫助手
使用 PropertyFinder.ae、OpenRouter 和 SerpAPI 通过 AI 回答房地产问题
If
Set
Code
+9
18 节点George Zargaryan
杂项
基于 GPT-4、Stripe 和 CRM 集成的 WooCommerce 对话式销售代理
基于 GPT-4、Stripe 和 CRM 集成的 WooCommerce 对话式销售代理
Set
Google Drive
Http Request
+16
27 节点Cong Nguyen
AI 聊天机器人
在可视化参考库中探索n8n节点
在可视化参考库中探索n8n节点
If
Ftp
Set
+93
113 节点I versus AI
其他
✨🩷自动化社交媒体内容发布工厂 + 系统提示组合
基于动态系统提示和GPT-4o的AI驱动多平台社交媒体内容工厂
If
Set
Code
+20
100 节点Amit Mehta
内容创作
✨🩷自动化社交媒体内容发布工厂 + 系统提示组合
使用GPT-4o为6个平台生成平台优化的社交媒体内容
If
Set
Code
+20
100 节点Luan Correia
社交媒体
🚀 面向Shopify品牌的AI驱动WhatsApp客户支持
面向Shopify品牌的AI驱动WhatsApp客户支持(LLM智能体)
Set
Slack
Switch
+11
30 节点Ruthwik
杂项
工作流信息
难度等级
中级
节点数量15
分类2
节点类型10
作者
Tushar Mishra
@yajnaProblem Solver | ServiceNow Architect | AI/ML Specialist | Product Builder 1. 10+ years in tech consulting and product development across AI, enterprise platforms, and cloud ecosystems. 2. ISB AMP in Business Analytics; strong foundation in strategy + data. 3. Founder – ReAcademy.ai: Flashcard-based learning SaaS using AI & LLMs to transform PDFs into gamified micro-learning.
外部链接
在 n8n.io 查看 →
分享此工作流