基于 GPT-5 Mini 的 Google Sheets 对话式数据分析
中级
这是一个Document Extraction, Multimodal AI领域的自动化工作流,包含 10 个节点。主要使用 Agent, GoogleSheetsTool, ChatTrigger, LmChatOpenAi, MemoryBufferWindow 等节点。 基于 GPT-5 Mini 的 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": "## 为什么选择 4o 模型?👆",
"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 表格"
},
"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": "Emelia 触发器"
},
"typeVersion": 1
}
],
"pinData": {},
"connections": {
"81eb1883-633a-4c09-b78c-2999dc9c60be": {
"ai_memory": [
[
{
"node": "3abf3803-0403-4ea1-ac66-373b6821c2a1",
"type": "ai_memory",
"index": 0
}
]
]
},
"cee2b611-5d08-4328-9c51-096bc979b6f7": {
"ai_tool": [
[
{
"node": "3abf3803-0403-4ea1-ac66-373b6821c2a1",
"type": "ai_tool",
"index": 0
}
]
]
},
"8a231798-9b25-457d-a9cd-f4e6286958bb": {
"ai_languageModel": [
[
{
"node": "3abf3803-0403-4ea1-ac66-373b6821c2a1",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"75869f50-156d-4723-a128-204c29f1b49d": {
"main": [
[
{
"node": "3abf3803-0403-4ea1-ac66-373b6821c2a1",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
中级 - 文档提取, 多模态 AI
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
AI网站聊天机器人 - GPT与Google表格CRM线索收集
集成GPT和Google表格的AI网站聊天机器人 - CRM线索收集系统
Code
Google Sheets
Agent
+
Code
Google Sheets
Agent
14 节点Robert Breen
潜在客户开发
使用GPT-5 Nano多语言聊天机器人自动处理电商客户支持
使用GPT-5 Nano多语言聊天机器人自动处理电商客户支持
Set
Merge
Split Out
+
Set
Merge
Split Out
13 节点Robert Breen
AI 聊天机器人
基于Google Sheets记忆的博客写作与编辑器 (GPT-4)
基于Google Sheets记忆的博客写作与编辑器 (GPT-4)
If
Code
Filter
+
If
Code
Filter
18 节点Robert Breen
内容创作
使用GPT和Gemini结合性能数据创建高转化率Meta广告脚本
使用GPT和Gemini结合性能数据创建高转化率Meta广告脚本
Set
Code
Merge
+
Set
Code
Merge
24 节点Robert Breen
文档提取
使用GPT-4洞察和PDF.co从Google Sheets生成营销报告
使用GPT-4洞察和PDF.co从Google Sheets生成营销报告
Code
Merge
Aggregate
+
Code
Merge
Aggregate
15 节点Robert Breen
文档提取
具有子智能体工具的初学者管理智能体
具有子智能体工具的初学者管理智能体
Agent
Agent Tool
Lm Chat Open Ai
+
Agent
Agent Tool
Lm Chat Open Ai
13 节点Robert Breen
工程
工作流信息
难度等级
中级
节点数量10
分类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 查看 →
分享此工作流