零成本记忆MCP服务器
高级
这是一个Internal Wiki, AI RAG领域的自动化工作流,包含 16 个节点。主要使用 Set, Switch, GoogleDocs, DiscordTool, Agent 等节点。 使用Google Docs、Discord和AI助手的团队知识管理
前置要求
- •Discord Bot Token 或 Webhook
- •OpenAI API Key
使用的节点 (16)
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "ATjMKRLbLKofEzVN",
"meta": {
"instanceId": "8931e7db592c2960ce253801ea290c1dc66e447734ce3d968310365665cefc80",
"templateCredsSetupCompleted": true
},
"name": "零成本记忆 MCP 服务器",
"tags": [],
"nodes": [
{
"id": "611a2bb4-8991-4144-a0c1-78a5cbefb966",
"name": "当被其他工作流执行时",
"type": "n8n-nodes-base.executeWorkflowTrigger",
"position": [
540,
740
],
"parameters": {},
"typeVersion": 1.1
},
{
"id": "6b10af4c-4b89-4d44-945f-799aa5fe50be",
"name": "保存长期记忆",
"type": "n8n-nodes-base.googleDocs",
"position": [
1180,
700
],
"parameters": {},
"typeVersion": 2
},
{
"id": "2e9e0311-a2bf-483e-ba1f-40c341813cd8",
"name": "已保存的响应",
"type": "n8n-nodes-base.set",
"position": [
1360,
700
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "319c3f0a-c256-4ccc-b711-1fb5c02fe8f4",
"name": "使用长期记忆进行响应",
"type": "n8n-nodes-base.set",
"position": [
1360,
900
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "e197e769-decb-4c5b-b73e-17a2e9edf3d4",
"name": "检索长期记忆",
"type": "n8n-nodes-base.googleDocs",
"position": [
1180,
900
],
"parameters": {},
"typeVersion": 2
},
{
"id": "8f9ec70f-d492-4274-bc21-30c62a85ec1d",
"name": "记忆工具路由器",
"type": "n8n-nodes-base.switch",
"position": [
880,
740
],
"parameters": {},
"typeVersion": 3.2
},
{
"id": "77021caf-04fe-4308-8486-b9dfaddbdd4d",
"name": "编辑字段",
"type": "n8n-nodes-base.set",
"position": [
700,
740
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "9150f75e-c643-4591-8805-ab3ff38219ed",
"name": "保存记忆",
"type": "@n8n/n8n-nodes-langchain.toolWorkflow",
"position": [
540,
1180
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "dc5b064b-e66d-4ecf-9196-c68b0a5b9ddb",
"name": "检索记忆",
"type": "@n8n/n8n-nodes-langchain.toolWorkflow",
"position": [
720,
1180
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "d24e81fd-405a-449a-bcb7-0d2f76f848bc",
"name": "发送记忆到 Discord",
"type": "@n8n/n8n-nodes-langchain.toolWorkflow",
"position": [
900,
1180
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "ebed3fad-a567-421e-91be-cc8328ee294a",
"name": "4o-mini",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
1320,
1260
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "c1f296d4-0f28-46e8-8497-c84d92b8589f",
"name": "MCP 服务器触发器",
"type": "@n8n/n8n-nodes-langchain.mcpTrigger",
"position": [
620,
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": [
1340,
1080
],
"parameters": {},
"typeVersion": 1.9
},
{
"id": "52a98e45-fe71-4dd5-bd6a-34b64c0118d5",
"name": "检索长期记忆 Discord",
"type": "n8n-nodes-base.googleDocs",
"position": [
1180,
1120
],
"parameters": {},
"typeVersion": 2
},
{
"id": "a9dc7e5d-d621-40e7-96a4-5f4006905863",
"name": "私信用户",
"type": "n8n-nodes-base.discordTool",
"position": [
1580,
1260
],
"webhookId": "bb3f7f32-586a-47fe-ba7b-d988bfb91605",
"parameters": {},
"typeVersion": 2
},
{
"id": "dec22729-2b44-48c0-9a60-67902b2381f8",
"name": "发送到频道",
"type": "n8n-nodes-base.discordTool",
"position": [
1460,
1260
],
"webhookId": "bb3f7f32-586a-47fe-ba7b-d988bfb91605",
"parameters": {},
"typeVersion": 2
}
],
"active": true,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "e3f9df63-72b0-4bda-992d-ea01a456a09a",
"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 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
高级 - 内部知识库, AI RAG 检索增强
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
基于 Google 文档、Discord 和 GPT-4o-mini 的知识库
基于 Google 文档、Discord 和 GPT-4o-mini 的知识库
Set
Switch
Google Docs
+6
16 节点David Ashby
客户支持
构建集成Claude、RAG、Perplexity和Drive的全源知识助手
构建集成Claude、RAG、Perplexity和Drive的全源知识助手
Set
Switch
Google Drive
+21
38 节点Paul
内部知识库
AIAutomationPro终极RAG聊天机器人v1 n8n市场模板
多语言Telegram RAG聊天机器人,集成监督AI和自动化Google Drive流程
If
Set
Wait
+29
128 节点Daniel Ng
客服机器人
上下文混合RAG AI文案
Google Drive到Supabase上下文向量数据库同步用于RAG应用
If
Set
Code
+25
76 节点Michael Taleb
AI RAG 检索增强
AI知识库助手与OpenAI、Supabase及Google Drive文档同步
AI知识库助手与OpenAI、Supabase及Google Drive文档同步
Set
Limit
Switch
+16
49 节点Abdul Mir
内部知识库
牙科预约
AI驱动的牙科预约系统,集成Telegram、Google日历和表格
If
Set
Switch
+18
53 节点Aziz B
工作流信息
难度等级
高级
节点数量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 查看 →
分享此工作流