RAG
高级
这是一个Internal Wiki, AI RAG领域的自动化工作流,包含 28 个节点。主要使用 Set, Slack, GoogleDrive, SlackTrigger, Agent 等节点。 使用Pinecone从Slack生成上下文推荐
前置要求
- •Slack Bot Token 或 Webhook URL
- •Google Drive API 凭证
- •Google Sheets API 凭证
- •OpenAI API Key
- •Pinecone API Key
使用的节点 (28)
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "oK6nDjVJjDLtlWYt",
"meta": {
"instanceId": "8443f10082278c46aa5cf3acf8ff0f70061a2c58bce76efac814b16290845177"
},
"name": "RAG",
"tags": [],
"nodes": [
{
"id": "0c522a5e-eab3-492b-8875-3035725641f1",
"name": "Slack 触发器",
"type": "n8n-nodes-base.slackTrigger",
"position": [
0,
0
],
"webhookId": "419966a1-e8f1-481b-a27f-9389f1204001",
"parameters": {},
"typeVersion": 1
},
{
"id": "90fcd76e-2089-4283-8632-e2a543dd5697",
"name": "AI Agent1",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
1264,
0
],
"parameters": {},
"typeVersion": 2
},
{
"id": "48964ea1-4b35-45a2-af44-1e6ef906e1b2",
"name": "Azure OpenAI 聊天模型1",
"type": "@n8n/n8n-nodes-langchain.lmChatAzureOpenAi",
"position": [
1040,
224
],
"parameters": {},
"typeVersion": 1
},
{
"id": "d164286c-cc67-4885-8587-cc7df25f6b85",
"name": "Pinecone 向量存储2",
"type": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
"position": [
1168,
224
],
"parameters": {},
"typeVersion": 1.3
},
{
"id": "3346c942-a5ec-400c-9ad7-e6f5a385553e",
"name": "嵌入 Azure OpenAI2",
"type": "@n8n/n8n-nodes-langchain.embeddingsAzureOpenAi",
"position": [
1184,
432
],
"parameters": {},
"typeVersion": 1
},
{
"id": "807f938a-9684-46da-9204-0506cf7ac1a8",
"name": "在 Google Sheets 中获取行",
"type": "n8n-nodes-base.googleSheetsTool",
"position": [
1456,
224
],
"parameters": {},
"typeVersion": 4.6
},
{
"id": "2f3b98d3-d326-4454-9ce4-3fe9cd5c8c1f",
"name": "Cohere 重排序器1",
"type": "@n8n/n8n-nodes-langchain.rerankerCohere",
"position": [
1312,
432
],
"parameters": {},
"typeVersion": 1
},
{
"id": "54d785d1-db28-4d21-b9e2-a23d160c633a",
"name": "结构化输出解析器1",
"type": "@n8n/n8n-nodes-langchain.outputParserStructured",
"position": [
1584,
224
],
"parameters": {},
"typeVersion": 1.3
},
{
"id": "cc23fd1b-5f6b-442b-9405-34fd3841bb9e",
"name": "Pinecone Vector Store5",
"type": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
"position": [
1776,
0
],
"parameters": {},
"typeVersion": 1.3
},
{
"id": "6d4c94ef-6df7-4a48-83d2-e2d10fda1678",
"name": "嵌入 Azure OpenAI5",
"type": "@n8n/n8n-nodes-langchain.embeddingsAzureOpenAi",
"position": [
1808,
224
],
"parameters": {},
"typeVersion": 1
},
{
"id": "26c39fa6-ec81-47e0-ba5c-b21bec4d045e",
"name": "重排器 Cohere3",
"type": "@n8n/n8n-nodes-langchain.rerankerCohere",
"position": [
1920,
224
],
"parameters": {},
"typeVersion": 1
},
{
"id": "f2a81baa-7035-4947-a6ab-c55d567a420b",
"name": "AI代理3",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
2160,
0
],
"parameters": {},
"typeVersion": 2
},
{
"id": "4441929d-cb5e-4ec2-bb59-6779d58e3e02",
"name": "Azure OpenAI 聊天模型3",
"type": "@n8n/n8n-nodes-langchain.lmChatAzureOpenAi",
"position": [
2176,
416
],
"parameters": {},
"typeVersion": 1
},
{
"id": "2e056c6a-8261-4159-a1d7-2a25d01c0f13",
"name": "自动修复输出解析器",
"type": "@n8n/n8n-nodes-langchain.outputParserAutofixing",
"position": [
2240,
224
],
"parameters": {},
"typeVersion": 1
},
{
"id": "aab927a0-9bef-4680-92e6-5f72e08c5cc3",
"name": "结构化输出解析器2",
"type": "@n8n/n8n-nodes-langchain.outputParserStructured",
"position": [
2352,
416
],
"parameters": {},
"typeVersion": 1.3
},
{
"id": "1774d8b6-f0a4-4d7f-827f-ce8cf2ba356f",
"name": "AI 代理",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
224,
0
],
"parameters": {},
"typeVersion": 2
},
{
"id": "cc8e9c3e-bc06-4dbc-a37e-99219527c9ff",
"name": "Azure OpenAI 聊天模型",
"type": "@n8n/n8n-nodes-langchain.lmChatAzureOpenAi",
"position": [
256,
224
],
"parameters": {},
"typeVersion": 1
},
{
"id": "4ff1e95e-5022-4021-8afc-ae9cc8084e37",
"name": "多表:您可以连接多个表以实现有组织的数据结构",
"type": "@n8n/n8n-nodes-langchain.outputParserStructured",
"position": [
368,
224
],
"parameters": {},
"typeVersion": 1.3
},
{
"id": "ee9d3653-e25c-4688-a3fa-6196781c8e40",
"name": "下载文件",
"type": "n8n-nodes-base.googleDrive",
"position": [
608,
0
],
"parameters": {},
"typeVersion": 3
},
{
"id": "b0a29268-2e3a-4b69-ad4c-785b8d3b37c4",
"name": "从文件提取",
"type": "n8n-nodes-base.extractFromFile",
"position": [
816,
0
],
"parameters": {},
"typeVersion": 1
},
{
"id": "715b6321-360c-4dcf-b8f1-1bb3de5de5bf",
"name": "发送消息",
"type": "n8n-nodes-base.slack",
"position": [
2752,
0
],
"webhookId": "d1c00971-d4db-44ed-b7ea-402ce20d534e",
"parameters": {},
"typeVersion": 2.3
},
{
"id": "e066f9cd-8179-4a59-bf3c-ebf2ae82781c",
"name": "编辑字段",
"type": "n8n-nodes-base.set",
"position": [
2528,
0
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "93f1bbac-6b17-4e6a-bed6-5372ca30adcf",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
64,
-208
],
"parameters": {
"content": "确保您的表名与实际知识库结构匹配"
},
"typeVersion": 1
},
{
"id": "adae4fb9-0d69-4a21-801d-c17e45b0be4f",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
512,
-208
],
"parameters": {
"content": "确保您的表名与实际知识库结构匹配"
},
"typeVersion": 1
},
{
"id": "5f4c6a5a-6397-4bec-9d10-c26924b915a5",
"name": "便签3",
"type": "n8n-nodes-base.stickyNote",
"position": [
1760,
-384
],
"parameters": {
"content": "确保您的表名与实际知识库结构匹配"
},
"typeVersion": 1
},
{
"id": "69f3f08b-6202-43dc-95c5-34c121bc8938",
"name": "便签4",
"type": "n8n-nodes-base.stickyNote",
"position": [
2128,
-384
],
"parameters": {
"content": "确保您的表名与实际知识库结构匹配"
},
"typeVersion": 1
},
{
"id": "d74e2916-3c23-4b37-a1ba-0d95cf3a8a39",
"name": "便签5",
"type": "n8n-nodes-base.stickyNote",
"position": [
2672,
-384
],
"parameters": {
"content": "确保您的表名与实际知识库结构匹配"
},
"typeVersion": 1
},
{
"id": "a0880474-5190-4db5-bebc-c62cc96b1fb4",
"name": "便签6",
"type": "n8n-nodes-base.stickyNote",
"position": [
1264,
-384
],
"parameters": {
"content": "确保您的表名与实际知识库结构匹配"
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "fdf7f61f-95e6-42f5-8fd7-d55c38e83d20",
"connections": {
"AI Agent": {
"main": [
[
{
"node": "Download file",
"type": "main",
"index": 0
}
]
]
},
"AI Agent1": {
"main": [
[
{
"node": "Pinecone Vector Store5",
"type": "main",
"index": 0
}
]
]
},
"AI Agent3": {
"main": [
[
{
"node": "Edit Fields",
"type": "main",
"index": 0
}
]
]
},
"Edit Fields": {
"main": [
[
{
"node": "Send a message",
"type": "main",
"index": 0
}
]
]
},
"Download file": {
"main": [
[
{
"node": "Extract from File",
"type": "main",
"index": 0
}
]
]
},
"Slack Trigger": {
"main": [
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
]
]
},
"Reranker Cohere1": {
"ai_reranker": [
[
{
"node": "Pinecone Vector Store2",
"type": "ai_reranker",
"index": 0
}
]
]
},
"Reranker Cohere3": {
"ai_reranker": [
[
{
"node": "Pinecone Vector Store5",
"type": "ai_reranker",
"index": 0
}
]
]
},
"Extract from File": {
"main": [
[
{
"node": "AI Agent1",
"type": "main",
"index": 0
}
]
]
},
"Pinecone Vector Store2": {
"ai_tool": [
[
{
"node": "AI Agent1",
"type": "ai_tool",
"index": 0
}
]
]
},
"Pinecone Vector Store5": {
"main": [
[
{
"node": "AI Agent3",
"type": "main",
"index": 0
}
]
]
},
"Azure OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "AI Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Azure OpenAI Chat Model1": {
"ai_languageModel": [
[
{
"node": "AI Agent1",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Azure OpenAI Chat Model3": {
"ai_languageModel": [
[
{
"node": "AI Agent3",
"type": "ai_languageModel",
"index": 0
},
{
"node": "Auto-fixing Output Parser",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Embeddings Azure OpenAI2": {
"ai_embedding": [
[
{
"node": "Pinecone Vector Store2",
"type": "ai_embedding",
"index": 0
}
]
]
},
"Embeddings Azure OpenAI5": {
"ai_embedding": [
[
{
"node": "Pinecone Vector Store5",
"type": "ai_embedding",
"index": 0
}
]
]
},
"Structured Output Parser": {
"ai_outputParser": [
[
{
"node": "AI Agent",
"type": "ai_outputParser",
"index": 0
}
]
]
},
"Auto-fixing Output Parser": {
"ai_outputParser": [
[
{
"node": "AI Agent3",
"type": "ai_outputParser",
"index": 0
}
]
]
},
"Structured Output Parser1": {
"ai_outputParser": [
[
{
"node": "AI Agent1",
"type": "ai_outputParser",
"index": 0
}
]
]
},
"Structured Output Parser2": {
"ai_outputParser": [
[
{
"node": "Auto-fixing Output Parser",
"type": "ai_outputParser",
"index": 0
}
]
]
},
"Get row(s) in sheet in Google Sheets": {
"ai_tool": [
[
{
"node": "AI Agent1",
"type": "ai_tool",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
高级 - 内部知识库, AI RAG 检索增强
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
Slack消息更新到Pinecone
使用Google Sheets、Pinecone和GPT-4o创建上下文感知的Slack助手
Set
Slack
Slack Trigger
+9
24 节点Rahul Joshi
内部知识库
新CTO与一对一更新
将Slack状态更新与Pinecone、Google Sheets和GPT-4o同步
If
Set
Slack
+15
49 节点Rahul Joshi
文档提取
使用 Azure OpenAI 和 Google Workspace 自动化 DEI 资格筛选
使用Azure GPT-4o、Google云端硬盘和表格自动进行DEI资格筛选
If
Code
Gmail
+9
19 节点Rahul Joshi
内容创作
使用GPT-5、知识检索和文档上下文自动化HighLevel CRM
通过GPT-5、知识检索和文档上下文自动化HighLevel CRM
Set
Gmail
Slack
+25
55 节点Paul
客户关系管理
构建集成Claude、RAG、Perplexity和Drive的全源知识助手
构建集成Claude、RAG、Perplexity和Drive的全源知识助手
Set
Switch
Google Drive
+21
38 节点Paul
内部知识库
商业AI指挥中心:Google Workspace模块化代理、向量搜索与多渠道报告
商业AI指挥中心:Google Workspace模块化代理、向量搜索与多渠道报告
Set
Gmail
Slack
+35
80 节点Paul
文档提取
工作流信息
难度等级
高级
节点数量28
分类2
节点类型14
作者
Rahul Joshi
@rahul08Rahul Joshi is a seasoned technology leader specializing in the n8n automation tool and AI-driven workflow automation. With deep expertise in building open-source workflow automation and self-hosted automation platforms, he helps organizations eliminate manual processes through intelligent n8n ai agent automation solutions.
外部链接
在 n8n.io 查看 →
分享此工作流