基于 Google 文档、Discord 和 GPT-4o-mini 的知识库
高级
这是一个Support, AI领域的自动化工作流,包含 16 个节点。主要使用 Set, Switch, GoogleDocs, DiscordTool, Agent 等节点,结合人工智能技术实现智能自动化。 基于 Google 文档、Discord 和 GPT-4o-mini 的知识库
前置要求
- •Discord Bot Token 或 Webhook
- •OpenAI API Key
使用的节点 (16)
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"meta": {
"instanceId": "8931e7db592c2960ce253801ea290c1dc66e447734ce3d968310365665cefc80",
"templateCredsSetupCompleted": true
},
"nodes": [
{
"id": "611a2bb4-8991-4144-a0c1-78a5cbefb966",
"name": "当被其他工作流执行时",
"type": "n8n-nodes-base.executeWorkflowTrigger",
"position": [
480,
740
],
"parameters": {},
"typeVersion": 1.1
},
{
"id": "6b10af4c-4b89-4d44-945f-799aa5fe50be",
"name": "保存长期记忆",
"type": "n8n-nodes-base.googleDocs",
"position": [
1120,
700
],
"parameters": {},
"typeVersion": 2
},
{
"id": "2e9e0311-a2bf-483e-ba1f-40c341813cd8",
"name": "已保存的响应",
"type": "n8n-nodes-base.set",
"position": [
1300,
700
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "319c3f0a-c256-4ccc-b711-1fb5c02fe8f4",
"name": "使用长期记忆进行响应",
"type": "n8n-nodes-base.set",
"position": [
1300,
900
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "e197e769-decb-4c5b-b73e-17a2e9edf3d4",
"name": "检索长期记忆",
"type": "n8n-nodes-base.googleDocs",
"position": [
1120,
900
],
"parameters": {},
"typeVersion": 2
},
{
"id": "8f9ec70f-d492-4274-bc21-30c62a85ec1d",
"name": "记忆工具路由器",
"type": "n8n-nodes-base.switch",
"position": [
820,
740
],
"parameters": {},
"typeVersion": 3.2
},
{
"id": "77021caf-04fe-4308-8486-b9dfaddbdd4d",
"name": "编辑字段",
"type": "n8n-nodes-base.set",
"position": [
640,
740
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "9150f75e-c643-4591-8805-ab3ff38219ed",
"name": "保存记忆",
"type": "@n8n/n8n-nodes-langchain.toolWorkflow",
"position": [
480,
1180
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "dc5b064b-e66d-4ecf-9196-c68b0a5b9ddb",
"name": "检索记忆",
"type": "@n8n/n8n-nodes-langchain.toolWorkflow",
"position": [
660,
1180
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "d24e81fd-405a-449a-bcb7-0d2f76f848bc",
"name": "发送记忆到 Discord",
"type": "@n8n/n8n-nodes-langchain.toolWorkflow",
"position": [
840,
1180
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "ebed3fad-a567-421e-91be-cc8328ee294a",
"name": "4o-mini",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
1260,
1260
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "c1f296d4-0f28-46e8-8497-c84d92b8589f",
"name": "MCP 服务器触发器",
"type": "@n8n/n8n-nodes-langchain.mcpTrigger",
"position": [
560,
940
],
"webhookId": "14877796-8d49-4bde-98cb-2b035d9e9f76",
"parameters": {},
"typeVersion": 1
},
{
"id": "b870366a-b4aa-4547-96ca-bcae0365d1df",
"name": "AI Agent",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
1280,
1080
],
"parameters": {},
"typeVersion": 1.9
},
{
"id": "52a98e45-fe71-4dd5-bd6a-34b64c0118d5",
"name": "检索 Discord 长期记忆",
"type": "n8n-nodes-base.googleDocs",
"position": [
1120,
1120
],
"parameters": {},
"typeVersion": 2
},
{
"id": "a9dc7e5d-d621-40e7-96a4-5f4006905863",
"name": "私信用户",
"type": "n8n-nodes-base.discordTool",
"position": [
1520,
1260
],
"webhookId": "bb3f7f32-586a-47fe-ba7b-d988bfb91605",
"parameters": {},
"typeVersion": 2
},
{
"id": "dec22729-2b44-48c0-9a60-67902b2381f8",
"name": "发送到频道",
"type": "n8n-nodes-base.discordTool",
"position": [
1400,
1260
],
"webhookId": "bb3f7f32-586a-47fe-ba7b-d988bfb91605",
"parameters": {},
"typeVersion": 2
}
],
"pinData": {},
"connections": {
"4o-mini": {
"ai_languageModel": [
[
{
"node": "AI Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"DM User": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Edit Fields": {
"main": [
[
{
"node": "Memory Tool Router",
"type": "main",
"index": 0
}
]
]
},
"Save Memories": {
"ai_tool": [
[
{
"node": "MCP Server Trigger",
"type": "ai_tool",
"index": 0
}
]
]
},
"Send to Channel": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Retrieve Memories": {
"ai_tool": [
[
{
"node": "MCP Server Trigger",
"type": "ai_tool",
"index": 0
}
]
]
},
"Memory Tool Router": {
"main": [
[
{
"node": "Save Long Term Memories",
"type": "main",
"index": 0
}
],
[
{
"node": "Retrieve Long Term Memories",
"type": "main",
"index": 0
}
],
[
{
"node": "Retrieve Long Term Memories Discord",
"type": "main",
"index": 0
}
]
]
},
"Save Long Term Memories": {
"main": [
[
{
"node": "Saved response",
"type": "main",
"index": 0
}
]
]
},
"Send Memories to Discord": {
"ai_tool": [
[
{
"node": "MCP Server Trigger",
"type": "ai_tool",
"index": 0
}
]
]
},
"Retrieve Long Term Memories": {
"main": [
[
{
"node": "Respond with long term memories",
"type": "main",
"index": 0
}
]
]
},
"When Executed by Another Workflow": {
"main": [
[
{
"node": "Edit Fields",
"type": "main",
"index": 0
}
]
]
},
"Retrieve Long Term Memories Discord": {
"main": [
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
高级 - 客户支持, 人工智能
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
零成本记忆MCP服务器
使用Google Docs、Discord和AI助手的团队知识管理
Set
Switch
Google Docs
+6
16 节点David Ashby
内部知识库
AI邮件自动回复系统 - 邮箱RAG智能代理
AI邮件自动回复系统 - 邮箱RAG智能代理
If
Set
Gmail
+18
34 节点LukaszB
客户支持
AI邮件分诊与GPT-4警报系统及Telegram通知
AI邮件分诊与GPT-4警报系统及Telegram通知
If
Set
Gmail
+22
104 节点Peter Joslyn
客户支持
基于AI的MIS代理
基于AI的管理信息系统代理
If
Set
Code
+29
129 节点Kumar Shivam
客户支持
使用 OpenAI 和 Redis 会话管理的聊天支持客户认证
使用 OpenAI 和 Redis 会话管理的聊天支持客户认证
Set
Form
Redis
+10
19 节点Jimleuk
客户支持
Mistral转录
使用Google日历和自定义函数构建MCP服务器
Set
Switch
Debug Helper
+11
32 节点Solomon
构建模块
工作流信息
难度等级
高级
节点数量16
分类2
节点类型9
作者
David Ashby
@cfomodzA hacker by nature, programmer by trade ⚒️ I'm looking to collaborate on things that save human labor 📫 How to reach me Github👇 -> Discord
外部链接
在 n8n.io 查看 →
分享此工作流