创建使用OpenAI GPT和Airtable知识库的智能聊天机器人
这是一个Support Chatbot, AI RAG领域的自动化工作流,包含 9 个节点。主要使用 AirtableTool, Agent, ChatTrigger, LmChatOpenAi, MemoryBufferWindow 等节点。 创建使用OpenAI GPT和Airtable知识库的智能聊天机器人
- •Airtable API Key
- •OpenAI API Key
{
"meta": {
"instanceId": "cba9e349b601c19a1409b9fd06680aff0a77829be13c8aad9a858d4cea7ff290"
},
"nodes": [
{
"id": "dcca2d23-15fa-417b-a126-b7e654c73cf6",
"name": "便签 1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-224,
560
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "515f872d-8e26-481b-8eeb-e8f7fb9914a6",
"name": "便签 2",
"type": "n8n-nodes-base.stickyNote",
"position": [
64,
560
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "8e4bff7d-a759-4600-a4f8-45f998354eb2",
"name": "便签 3",
"type": "n8n-nodes-base.stickyNote",
"position": [
416,
560
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "ecea4d58-50c7-4778-8f5c-d05de0f07554",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
-96,
-80
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "9061e1c2-7c9b-482b-a7c9-04e32333fb98",
"name": "OpenAI 聊天模型",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
-144,
400
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "c5ecac3c-3841-4879-873e-18cc64fe2c66",
"name": "Airtable 数据库",
"type": "n8n-nodes-base.airtableTool",
"position": [
496,
400
],
"parameters": {},
"typeVersion": 2.1
},
{
"id": "5e4f7b05-437e-444a-854c-bd1ebe431e6c",
"name": "开始聊天对话",
"type": "@n8n/n8n-nodes-langchain.chatTrigger",
"position": [
-192,
176
],
"webhookId": "cf1de04f-3e38-426c-89f0-3bdb110a5dcf",
"parameters": {},
"typeVersion": 1.1
},
{
"id": "238d4ef4-0c07-4858-ba5a-00ab9f184bb1",
"name": "智能 AI 代理",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
64,
176
],
"parameters": {},
"typeVersion": 1.7
},
{
"id": "5be2fd82-7256-4f70-a15e-00ca35037555",
"name": "记住聊天历史",
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"position": [
176,
400
],
"parameters": {},
"typeVersion": 1.3
}
],
"pinData": {},
"connections": {
"Airtable Database": {
"ai_tool": [
[
{
"node": "Smart AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "Smart AI Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Remember Chat History": {
"ai_memory": [
[
{
"node": "Smart AI Agent",
"type": "ai_memory",
"index": 0
}
]
]
},
"Start Chat Conversation": {
"main": [
[
{
"node": "Smart AI Agent",
"type": "main",
"index": 0
}
]
]
}
}
}如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
中级 - 客服机器人, AI RAG 检索增强
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
Gegenfeld
@gegenfeldWe at Gegenfeld are an EdTech platform dedicated to delivering high-quality on-demand courses and interactive training sessions for professional development at all skill levels. With our commitment to "Accelerate your future," we empower professionals to enhance their expertise through engaging, industry-focused learning experiences. On n8n, we share some of the workflows used in our interactive training to provide deeper insights and practical applications.
分享此工作流