使用GPT-4 Mini查询和回答Excel表格问题
这是一个Internal Wiki, AI Chatbot领域的自动化工作流,包含 9 个节点。主要使用 Agent, MicrosoftExcelTool, ChatTrigger, LmChatOpenAi, MemoryBufferWindow 等节点。 使用GPT-4 Mini查询和回答Excel表格中的问题
- •OpenAI API Key
{
"meta": {
"instanceId": "cba9e349b601c19a1409b9fd06680aff0a77829be13c8aad9a858d4cea7ff290",
"templateCredsSetupCompleted": true
},
"nodes": [
{
"id": "8bab2b5d-18cb-41dc-99c7-b16e4ae700df",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-464,
320
],
"parameters": {
"content": "Emelia 触发器"
},
"typeVersion": 1
},
{
"id": "0a599d05-8162-44de-bedc-9dddf8ef6284",
"name": "便签2",
"type": "n8n-nodes-base.stickyNote",
"position": [
-176,
320
],
"parameters": {
"content": "Emelia 触发器"
},
"typeVersion": 1
},
{
"id": "50e228fb-edfa-47ac-84c1-5f2328d29c4f",
"name": "便签3",
"type": "n8n-nodes-base.stickyNote",
"position": [
176,
320
],
"parameters": {
"content": "Emelia 触发器"
},
"typeVersion": 1
},
{
"id": "7e19996a-2473-42c7-a6fe-ab0497b89dfa",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
-336,
-320
],
"parameters": {
"content": "Emelia 触发器"
},
"typeVersion": 1
},
{
"id": "05e4892e-503d-4f30-a424-28c48556c878",
"name": "OpenAI 聊天模型",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
-384,
160
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "196e5d4a-36a8-429a-b568-52bf237d89de",
"name": "开始聊天对话",
"type": "@n8n/n8n-nodes-langchain.chatTrigger",
"position": [
-432,
-64
],
"webhookId": "cf1de04f-3e38-426c-89f0-3bdb110a5dcf",
"parameters": {},
"typeVersion": 1.1
},
{
"id": "349eb81d-a532-49a4-8a79-101e11651c88",
"name": "智能 AI 代理",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
-176,
-64
],
"parameters": {},
"typeVersion": 1.7
},
{
"id": "9b8a74f3-b40f-4be2-8e1e-3ed3051346a3",
"name": "记住聊天历史",
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"position": [
-64,
160
],
"parameters": {},
"typeVersion": 1.3
},
{
"id": "49cb6b81-702e-4902-b4d9-37b2ecd6899f",
"name": "获取 Excel 数据",
"type": "n8n-nodes-base.microsoftExcelTool",
"position": [
272,
160
],
"parameters": {},
"typeVersion": 2.1
}
],
"pinData": {},
"connections": {
"Get Excel Data": {
"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 聊天机器人
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 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.
分享此工作流