使用GPT-5 Nano多语言聊天机器人自动处理电商客户支持
中级
这是一个AI Chatbot, Multimodal AI领域的自动化工作流,包含 13 个节点。主要使用 Set, Merge, SplitOut, Agent, ChatTrigger 等节点。 使用GPT-5 Nano多语言聊天机器人自动处理电商客户支持
前置要求
- •OpenAI API Key
使用的节点 (13)
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"meta": {
"instanceId": "ad0113c344ee237399e44e9f11798b05baeb83a6196d514a9ae9d2ad71c3b5c9",
"templateCredsSetupCompleted": true
},
"nodes": [
{
"id": "a5c3ebce-f05b-4985-96ef-b98b8db66a22",
"name": "当收到聊天消息时",
"type": "@n8n/n8n-nodes-langchain.chatTrigger",
"position": [
-1216,
2176
],
"webhookId": "ccaca032-7964-4a83-9417-91a223bc1485",
"parameters": {
"options": {}
},
"typeVersion": 1.3
},
{
"id": "c01659d9-5000-41a9-888e-69f341671baa",
"name": "结构化输出解析器",
"type": "@n8n/n8n-nodes-langchain.outputParserStructured",
"position": [
-816,
2544
],
"parameters": {
"jsonSchemaExample": "{\n\t\"language\": \"English\"\n}"
},
"typeVersion": 1.3
},
{
"id": "a18b9aa9-16d8-4a35-94f5-0858f3a494ca",
"name": "OpenAI聊天模型",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
-1120,
2608
],
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-5-nano",
"cachedResultName": "gpt-5-nano"
},
"options": {}
},
"credentials": {
"openAiApi": {
"id": "4l6TDfLZVFS24g3X",
"name": "OpenAi account 4"
}
},
"typeVersion": 1.2
},
{
"id": "038c0447-c2c3-44cd-8c32-191420a284d7",
"name": "拆分输出",
"type": "n8n-nodes-base.splitOut",
"position": [
-480,
2144
],
"parameters": {
"options": {},
"fieldToSplitOut": "languages"
},
"typeVersion": 1
},
{
"id": "574618a3-c10b-4acc-9599-a2c332151170",
"name": "OpenAI聊天模型2",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
-224,
2480
],
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-5-nano",
"cachedResultName": "gpt-5-nano"
},
"options": {}
},
"credentials": {
"openAiApi": {
"id": "4l6TDfLZVFS24g3X",
"name": "OpenAi account 4"
}
},
"typeVersion": 1.2
},
{
"id": "a9c9d55b-708d-4404-bde5-646690b1be8e",
"name": "简单记忆",
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"position": [
-32,
2480
],
"parameters": {
"sessionKey": "={{ $('When chat message received').item.json.sessionId }}",
"sessionIdType": "customKey"
},
"typeVersion": 1.3
},
{
"id": "e0b9ac67-8637-49f3-bdd6-e456823e91e6",
"name": "电商语言提示",
"type": "n8n-nodes-base.set",
"position": [
-752,
2160
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "languages",
"name": "languages",
"type": "array",
"value": [
{
"language": "english",
"system_prompt": "You are a friendly and professional ecommerce customer service assistant. Help customers with product inquiries, order tracking, returns, and general shopping questions. Always be polite, helpful, and aim to provide accurate information about products and services. If you cannot find specific information, guide the customer to the appropriate resources or suggest contacting human support. Keep responses concise but informative, and always prioritize customer satisfaction."
},
{
"language": "spanish",
"system_prompt": "Eres un asistente de servicio al cliente de comercio electrónico amigable y profesional. Ayuda a los clientes con consultas de productos, seguimiento de pedidos, devoluciones y preguntas generales de compras. Siempre sé cortés, útil y busca proporcionar información precisa sobre productos y servicios. Si no puedes encontrar información específica, guía al cliente a los recursos apropiados o sugiere contactar al soporte humano. Mantén las respuestas concisas pero informativas, y siempre prioriza la satisfacción del cliente."
},
{
"language": "french",
"system_prompt": "Vous êtes un assistant de service client e-commerce amical et professionnel. Aidez les clients avec les demandes de produits, le suivi des commandes, les retours et les questions générales d'achat. Soyez toujours poli, serviable et visez à fournir des informations précises sur les produits et services. Si vous ne trouvez pas d'informations spécifiques, guidez le client vers les ressources appropriées ou suggérez de contacter le support humain. Gardez les réponses concises mais informatives, et priorisez toujours la satisfaction du client."
}
]
}
]
}
},
"typeVersion": 3.4
},
{
"id": "b9266b06-fd77-420d-a320-570d58b3ab47",
"name": "仅保留选定语言",
"type": "n8n-nodes-base.merge",
"position": [
-480,
2432
],
"parameters": {
"mode": "combine",
"options": {
"fuzzyCompare": false
},
"advanced": true,
"mergeByFields": {
"values": [
{
"field1": "language",
"field2": "output.language"
}
]
}
},
"typeVersion": 3.2
},
{
"id": "2943304d-2f38-4cde-b351-98eced80460a",
"name": "检测语言",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
-1040,
2288
],
"parameters": {
"options": {
"systemMessage": "Identify what language this is written in. output the language. \n\noutput like this. all lower case\n\n{\n\t\"language\": \"English\"\n}"
},
"hasOutputParser": true
},
"typeVersion": 2.2
},
{
"id": "a3d76522-3b39-4674-9312-2090643d1235",
"name": "聊天代理",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
-256,
2208
],
"parameters": {
"text": "={{ $('When chat message received').item.json.chatInput }}",
"options": {
"systemMessage": "={{ $json.system_prompt }}"
},
"promptType": "define"
},
"typeVersion": 2.2
},
{
"id": "900cadeb-ed9e-410b-bd03-6aefa132f100",
"name": "便签7",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1728,
1968
],
"parameters": {
"width": 400,
"height": 784,
"content": "## ⚙️ 设置说明"
},
"typeVersion": 1
},
{
"id": "ed260a85-7b05-4c07-af6f-81621aaa5699",
"name": "便签8",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1280,
1968
],
"parameters": {
"color": 7,
"width": 1392,
"height": 784,
"content": "# 🌍 多语言电商客服聊天机器人(n8n工作流)"
},
"typeVersion": 1
},
{
"id": "f83c5946-8ed3-410e-aad6-f81f6144afa3",
"name": "便签12",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1232,
2416
],
"parameters": {
"color": 3,
"width": 288,
"height": 304,
"content": "### 1. 设置OpenAI连接"
},
"typeVersion": 1
}
],
"pinData": {},
"connections": {
"Split Out": {
"main": [
[
{
"node": "Keep Only Selected Language",
"type": "main",
"index": 0
}
]
]
},
"Simple Memory": {
"ai_memory": [
[
{
"node": "Chat Agent",
"type": "ai_memory",
"index": 0
}
]
]
},
"Detect Language": {
"main": [
[
{
"node": "Keep Only Selected Language",
"type": "main",
"index": 1
}
]
]
},
"OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "Detect Language",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"OpenAI Chat Model2": {
"ai_languageModel": [
[
{
"node": "Chat Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Structured Output Parser": {
"ai_outputParser": [
[
{
"node": "Detect Language",
"type": "ai_outputParser",
"index": 0
}
]
]
},
"Ecommerce Language Prompts": {
"main": [
[
{
"node": "Split Out",
"type": "main",
"index": 0
}
]
]
},
"When chat message received": {
"main": [
[
{
"node": "Detect Language",
"type": "main",
"index": 0
},
{
"node": "Ecommerce Language Prompts",
"type": "main",
"index": 0
}
]
]
},
"Keep Only Selected Language": {
"main": [
[
{
"node": "Chat Agent",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
中级 - AI 聊天机器人, 多模态 AI
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
使用 GPT-4o 通过自然语言查询 Monday.com 任务
使用 GPT-4o 通过自然语言查询 Monday.com 任务
Set
Merge
Aggregate
+6
13 节点Robert Breen
AI 聊天机器人
使用OpenAI GPT自然语言查询Trello看板
使用OpenAI GPT通过自然语言查询Trello看板
Set
Merge
Trello
+6
15 节点Robert Breen
AI 聊天机器人
新闻搜索与分类聊天机器人(Google News、SerpAPI和OpenAI)
使用Google News、SerpAPI和OpenAI的新闻搜索与分类聊天机器人
Split Out
Aggregate
Serp Api
+5
11 节点Robert Breen
AI 聊天机器人
博客内容多语言自动翻译
使用GPT-4o和Markdown自动将博客内容翻译为多种语言
Set
Merge
Split Out
+5
12 节点Robert Breen
内容创作
使用 GPT-4o-mini 代理自动进行潜在客户资格认定与客户支持
使用 GPT-4o-mini 代理自动进行潜在客户资格认定与客户支持
If
Set
Code
+8
16 节点Robert Breen
客户培育
播客笔记记录器
使用GPT和Gemini结合性能数据创建高转化率Meta广告脚本
Set
Code
Merge
+7
24 节点Robert Breen
文档提取
工作流信息
难度等级
中级
节点数量13
分类2
节点类型9
作者
Robert Breen
@rbreenProfessional services consultant with over 10 years of experience solving complex business problems across industries. I specialize in n8n and process automation—designing custom workflows that integrate tools like Google Calendar, Airtable, GPT, and internal systems. Whether you need to automate scheduling, sync data, or streamline operations, I build solutions that save time and drive results.
外部链接
在 n8n.io 查看 →
分享此工作流