Create a data analyst chatbot for real-time Google Sheets analysis with GPT-5
Needs changesWhat this workflow does
This AI workflow has 11 nodes and runs when a chat message arrives. Along the way it connects OpenAI Chat Model and Google Sheets.
How it runs
Trigger: When a chat message arrives.
- Google Sheets: uses Google Sheets
- Google Sheets: uses Google Sheets
- Google Sheets: uses Google Sheets
- Aggregate: combines items into one
- Aggregate: combines items into one
- Aggregate: combines items into one
- Merge: merges the data from its input branches
- Data Analyst AI Agent (AI Agent): runs an AI agent, with model: OpenAI Chat Model; memory: Simple Memory
Services it uses
Other OpenAI + Google Sheets templates (2,011)
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- AI Agent v1 (old agent modes) in Data Analyst AI Agent (v1.9): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
Published 2025 — 19% of 2025 templates need changes for 3.0. See how template age affects 3.0 readiness →
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) Data Analyst AI Agent (v1.9) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (7)
- OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Chat Trigger
@n8n/n8n-nodes-langchain.chatTrigger - Merge
n8n-nodes-base.merge - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - AI Agent
@n8n/n8n-nodes-langchain.agent - Google Sheets
n8n-nodes-base.googleSheets - Aggregate
n8n-nodes-base.aggregate
From the author
Who is this for? This workflow is ideal for: Business analysts and data professionals who need to quickly analyze spreadsheet data through natural conversation Small to medium businesses seeking AI-powered insights from their Google Sheets without complex…