HR聊天机器人(RAG系统)
高级
这是一个AI RAG, Multimodal AI领域的自动化工作流,包含 24 个节点。主要使用 Set, AwsS3, Slack, SlackTrigger, ManualTrigger 等节点。 使用Slack、S3和GPT-4.1-mini的RAG人力资源政策检索系统
前置要求
- •AWS Access Key 和 Secret
- •Slack Bot Token 或 Webhook URL
- •OpenAI API Key
使用的节点 (24)
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "iZCUHJ7060rflEUa",
"meta": {
"instanceId": "b78775038dd0551b144b274015d3475f3d849cef508e40745901d6f4436e7d88",
"templateCredsSetupCompleted": true
},
"name": "HR 聊天机器人 (RAG 系统)",
"tags": [],
"nodes": [
{
"id": "80d6f6e5-1a25-48c4-9078-7fa11a8d9940",
"name": "Slack 触发器",
"type": "n8n-nodes-base.slackTrigger",
"position": [
-208,
592
],
"webhookId": "51e76a4f-957e-4978-b8aa-b7a694adcb20",
"parameters": {},
"typeVersion": 1
},
{
"id": "2ba0c35e-407b-4402-b6f2-22ad6b80382d",
"name": "聊天机器人",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
0,
592
],
"parameters": {},
"typeVersion": 2.2
},
{
"id": "37b4763a-15d0-419a-b095-07a8703c604f",
"name": "简单记忆",
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"position": [
16,
816
],
"parameters": {},
"typeVersion": 1.3
},
{
"id": "dbec54d1-3159-477d-9454-75d94706962b",
"name": "知识库搜索",
"type": "@n8n/n8n-nodes-langchain.toolVectorStore",
"position": [
160,
800
],
"parameters": {},
"typeVersion": 1.1
},
{
"id": "2b8e1a2b-0a57-456c-92cd-1c0fea3ba7fe",
"name": "知识库",
"type": "@n8n/n8n-nodes-langchain.vectorStoreInMemory",
"position": [
32,
1008
],
"parameters": {},
"typeVersion": 1.3
},
{
"id": "1f0a289f-fd0b-4f66-972b-65228a2b13b2",
"name": "知识库嵌入",
"type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
"position": [
0,
1168
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "0c653e07-6b76-4f1a-ae60-b97ee54ffdd6",
"name": "对话模型",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
-128,
800
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "0ce7ae16-34a9-45bf-96ae-d3240c3ec8a1",
"name": "知识库响应聊天模型",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
320,
928
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "2cdd2ce8-a3a7-45e5-9ba1-7226645d715b",
"name": "手动触发器",
"type": "n8n-nodes-base.manualTrigger",
"position": [
0,
0
],
"parameters": {},
"typeVersion": 1
},
{
"id": "ce887063-a120-4cd8-9cdd-da454de43131",
"name": "S3 文档下载器",
"type": "n8n-nodes-base.awsS3",
"position": [
208,
0
],
"parameters": {},
"typeVersion": 2
},
{
"id": "ffcdf0d7-ef27-42cf-a3c8-043edb6bae06",
"name": "知识库存储",
"type": "@n8n/n8n-nodes-langchain.vectorStoreInMemory",
"position": [
416,
0
],
"parameters": {},
"typeVersion": 1.3
},
{
"id": "71d714a4-7a7d-43f1-aac5-6c85489a3a93",
"name": "知识库嵌入生成器",
"type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
"position": [
352,
224
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "c14a4de4-e0a7-4134-bfcb-59a765b31168",
"name": "文档加载器",
"type": "@n8n/n8n-nodes-langchain.documentDefaultDataLoader",
"position": [
560,
208
],
"parameters": {},
"typeVersion": 1.1
},
{
"id": "627b5648-9af1-42e3-bcb1-3b658e9633cc",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
752,
448
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "5a6675f0-a92f-4528-aa0c-3337a021d5be",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-320,
448
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "8c6014f5-894c-4ebd-a766-6910acd463c1",
"name": "便签 2",
"type": "n8n-nodes-base.stickyNote",
"position": [
-320,
-128
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "20fb6d4b-466f-438c-b9d1-92231c30d87e",
"name": "便签 3",
"type": "n8n-nodes-base.stickyNote",
"position": [
752,
-128
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "90b0c6cf-389b-4572-9207-2dba4ddd3feb",
"name": "便签 5",
"type": "n8n-nodes-base.stickyNote",
"position": [
256,
-1408
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "a2e79935-3199-41bf-9478-552ef7963941",
"name": "便签 4",
"type": "n8n-nodes-base.stickyNote",
"position": [
-320,
-2384
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "0bf7faa6-d9fc-4559-853b-78085c250dff",
"name": "便签6",
"type": "n8n-nodes-base.stickyNote",
"position": [
832,
-1408
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "5ed1311b-0e82-449e-b196-15b293f748be",
"name": "便签7",
"type": "n8n-nodes-base.stickyNote",
"position": [
-320,
-1408
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "4b2031c7-0328-4684-baaf-af9259914655",
"name": "响应",
"type": "n8n-nodes-base.set",
"position": [
288,
464
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "ff4c1dc4-5b18-44d9-b347-5651235a8209",
"name": "重试",
"type": "n8n-nodes-base.set",
"position": [
288,
656
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "15c7ef90-d37e-4c3b-8c53-c1e79e6209c7",
"name": "发送消息",
"type": "n8n-nodes-base.slack",
"position": [
512,
464
],
"webhookId": "33789ebc-eb82-43f8-9582-475d900511ce",
"parameters": {},
"typeVersion": 2.3
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "4cb15aed-33a0-41c2-8607-62d481345840",
"connections": {
"Chatbot": {
"main": [
[
{
"node": "Response",
"type": "main",
"index": 0
},
{
"node": "Try Again",
"type": "main",
"index": 0
}
]
]
},
"Response": {
"main": [
[
{
"node": "Send a message",
"type": "main",
"index": 0
}
]
]
},
"Simple Memory": {
"ai_memory": [
[
{
"node": "Chatbot",
"type": "ai_memory",
"index": 0
}
]
]
},
"Slack Trigger": {
"main": [
[
{
"node": "Chatbot",
"type": "main",
"index": 0
}
]
]
},
"Knowledge Base": {
"ai_vectorStore": [
[
{
"node": "Knowledge Base Search",
"type": "ai_vectorStore",
"index": 0
}
]
]
},
"Manual Trigger": {
"main": [
[
{
"node": "S3 Document Downloader",
"type": "main",
"index": 0
}
]
]
},
"Document Loader": {
"ai_document": [
[
{
"node": "Knowledge Base storage",
"type": "ai_document",
"index": 0
}
]
]
},
"Conversation Model": {
"ai_languageModel": [
[
{
"node": "Chatbot",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Knowledge Base Search": {
"ai_tool": [
[
{
"node": "Chatbot",
"type": "ai_tool",
"index": 0
}
]
]
},
"S3 Document Downloader": {
"main": [
[
{
"node": "Knowledge Base storage",
"type": "main",
"index": 0
}
]
]
},
"Knowledge Base Embeddings": {
"ai_embedding": [
[
{
"node": "Knowledge Base",
"type": "ai_embedding",
"index": 0
}
]
]
},
"Knowledge Base Response Chat Model": {
"ai_languageModel": [
[
{
"node": "Knowledge Base Search",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Knowledge Base Embeddings Generator": {
"ai_embedding": [
[
{
"node": "Knowledge Base storage",
"type": "ai_embedding",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
高级 - AI RAG 检索增强, 多模态 AI
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
基于网站内容和Airtable数据构建用于RAG应用的聊天机器人
基于Pinecone、Airtable和OpenAI的网站内容聊天机器人(RAG应用)
Set
Code
Markdown
+15
27 节点Alok Kumar
AI RAG 检索增强
用于GitHub的AI代理
使用OpenAI创建从GitHub仓库学习的代码助手
Set
Github
Http Request
+11
19 节点Nghia Nguyen
内部知识库
Blockify工作流模板
使用Blockify IdeaBlocks技术优化非结构化数据用于RAG
Set
Code
Google Drive
+12
22 节点Iternal Technologies
AI RAG 检索增强
AI 支持的服务台与 Supabase 和 JIRA
基于GPT、Supabase向量搜索和JIRA工单的自动化Slack IT服务台
If
Set
Slack
+12
25 节点inderjeet Bhambra
客服机器人
🤖 使用Gemini RAG流水线构建文档专家聊天机器人
使用OpenAI RAG流水线构建n8n文档专家聊天机器人
Set
Html
Filter
+16
46 节点Ayham
内部知识库
基于 GPT-4、Stripe 和 CRM 集成的 WooCommerce 对话式销售代理
基于 GPT-4、Stripe 和 CRM 集成的 WooCommerce 对话式销售代理
Set
Google Drive
Http Request
+16
27 节点Cong Nguyen
AI 聊天机器人