使用ChatGPT-5与您的Google Sheets对话
中级
这是一个Document Extraction, AI RAG领域的自动化工作流,包含 11 个节点。主要使用 Agent, GoogleSheetsTool, ChatTrigger, LmChatOpenAi, MemoryBufferWindow 等节点。 使用ChatGPT-5与您的Google Sheets对话
前置要求
- •Google Sheets API 凭证
- •OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"meta": {
"instanceId": "a2eaba9e45ad7aab18b25cf863df1e910fb6dd3b85279bde97d9bae4a72f6862",
"templateId": "7449"
},
"nodes": [
{
"id": "cee2b611-5d08-4328-9c51-096bc979b6f7",
"name": "分析数据",
"type": "n8n-nodes-base.googleSheetsTool",
"position": [
768,
1776
],
"parameters": {
"options": {},
"sheetName": {
"__rl": true,
"mode": "list",
"value": 365710158,
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1UDWt0-Z9fHqwnSNfU3vvhSoYCFG6EG3E-ZewJC_CLq4/edit#gid=365710158",
"cachedResultName": "Data"
},
"documentId": {
"__rl": true,
"mode": "list",
"value": "1UDWt0-Z9fHqwnSNfU3vvhSoYCFG6EG3E-ZewJC_CLq4",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1UDWt0-Z9fHqwnSNfU3vvhSoYCFG6EG3E-ZewJC_CLq4/edit?usp=drivesdk",
"cachedResultName": "Sample Marketing Data - n8n"
}
},
"typeVersion": 4.7
},
{
"id": "8a231798-9b25-457d-a9cd-f4e6286958bb",
"name": "OpenAI 聊天模型",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
208,
1760
],
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-4.1-nano",
"cachedResultName": "gpt-4.1-nano"
},
"options": {}
},
"typeVersion": 1.2
},
{
"id": "05badec7-f61b-4492-9fd2-6e571ed12541",
"name": "便签2",
"type": "n8n-nodes-base.stickyNote",
"position": [
-48,
864
],
"parameters": {
"color": 7,
"width": 1152,
"height": 1168,
"content": "## 使用 Google Sheets 和 OpenAI GPT-5 Mini 与您的数据对话"
},
"typeVersion": 1
},
{
"id": "3abf3803-0403-4ea1-ac66-373b6821c2a1",
"name": "与您的数据对话",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
688,
1136
],
"parameters": {
"options": {
"systemMessage": "Google Sheets Ask-Data \n\n\nYou are Ask-Data. Answer questions using Google Sheets ONLY via the tool below. Be precise and conservative. \n\nThere is only one dataset. dont ask what dataset it is. \n\nUse the data tool to answer the question."
},
"hasOutputParser": true
},
"typeVersion": 2.2
},
{
"id": "7736cb8c-0508-4bb5-a92a-850922e00f41",
"name": "便签7",
"type": "n8n-nodes-base.stickyNote",
"position": [
0,
1024
],
"parameters": {
"color": 7,
"width": 480,
"height": 432,
"content": "### 3. 向您的数据提问"
},
"typeVersion": 1
},
{
"id": "dc761ff8-ef7b-4535-989b-7d03886bd70c",
"name": "便签8",
"type": "n8n-nodes-base.stickyNote",
"position": [
-608,
864
],
"parameters": {
"width": 528,
"height": 1168,
"content": "## 🎥 观看本教程"
},
"typeVersion": 1
},
{
"id": "4137e8dc-aab2-486f-bf23-4a129f5f8241",
"name": "便签 9",
"type": "n8n-nodes-base.stickyNote",
"position": [
0,
1504
],
"parameters": {
"color": 3,
"width": 480,
"height": 432,
"content": "### 1. 设置 OpenAI 连接"
},
"typeVersion": 1
},
{
"id": "4c4db6fc-6973-4bb9-8dbd-c02086c25c47",
"name": "便签10",
"type": "n8n-nodes-base.stickyNote",
"position": [
544,
1504
],
"parameters": {
"color": 3,
"width": 512,
"height": 432,
"content": "### 2. 准备您的 Google Sheet"
},
"typeVersion": 1
},
{
"id": "75869f50-156d-4723-a128-204c29f1b49d",
"name": "与您的数据聊天",
"type": "@n8n/n8n-nodes-langchain.chatTrigger",
"position": [
176,
1296
],
"webhookId": "edca0f0a-77c3-43e5-8ece-e514a29446f5",
"parameters": {
"options": {}
},
"typeVersion": 1.3
},
{
"id": "81eb1883-633a-4c09-b78c-2999dc9c60be",
"name": "记忆存储",
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"position": [
720,
1328
],
"parameters": {},
"typeVersion": 1.3
},
{
"id": "bcf7f68a-0ce7-4a8f-9eed-a2cc5cb9124a",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
544,
1024
],
"parameters": {
"color": 7,
"width": 512,
"height": 432,
"content": ""
},
"typeVersion": 1
}
],
"pinData": {},
"connections": {
"Memory": {
"ai_memory": [
[
{
"node": "Talk to Your Data",
"type": "ai_memory",
"index": 0
}
]
]
},
"Analyze Data": {
"ai_tool": [
[
{
"node": "Talk to Your Data",
"type": "ai_tool",
"index": 0
}
]
]
},
"OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "Talk to Your Data",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Chat with Your Data": {
"main": [
[
{
"node": "Talk to Your Data",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
中级 - 文档提取, AI RAG 检索增强
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
基于 GPT-5 Mini 的 Google Sheets 对话式数据分析
基于 GPT-5 Mini 的 Google Sheets 对话式数据分析
Agent
Google Sheets Tool
Chat Trigger
+3
10 节点Robert Breen
文档提取
使用GPT-4o将自然语言转换为Google Sheets SQL查询
使用GPT-4o将自然语言转换为Google Sheets SQL查询
Http Request
Agent
Google Sheets Tool
+5
12 节点Robert Breen
文档提取
使用 GPT-4o 通过自然语言查询搜索 Outlook 邮件
使用 GPT-4o 通过自然语言查询搜索 Outlook 邮件
Merge
Aggregate
Agent
+6
17 节点Robert Breen
AI RAG 检索增强
使用Gemini AI进行自然语言Google Sheets数据分析
使用Gemini AI进行自然语言Google Sheets数据分析
Switch
Aggregate
Summarize
+9
22 节点Robert Breen
文档提取
使用GPT-4o-mini进行Pipedrive潜在客户自然语言问答
使用GPT-4o-mini进行Pipedrive潜在客户自然语言问答
Pipedrive Tool
Agent
Chat Trigger
+2
8 节点Robert Breen
AI RAG 检索增强
工作简历与求职信自动化(含简历 HTML 模板)
使用 AI、GitHub Pages 和 Google Drive 个性化简历和求职信
Set
Code
Html
+16
31 节点Michael A Putra
文档提取
工作流信息
难度等级
中级
节点数量11
分类2
节点类型6
作者
Robert Breen
@rbreenProfessional services consultant with over 10 years of experience solving complex business problems across industries. I specialize in n8n and process automation—designing custom workflows that integrate tools like Google Calendar, Airtable, GPT, and internal systems. Whether you need to automate scheduling, sync data, or streamline operations, I build solutions that save time and drive results.
外部链接
在 n8n.io 查看 →
分享此工作流