Natural language Google Sheets data analysis with Gemini AI
Ready for 3.0What this workflow does
This AI workflow has 18 nodes and runs when another workflow calls it. Along the way it connects Google Gemini Chat Model and Google Sheets.
How it runs
Trigger: When another workflow calls it.
- Get Data (Google Sheets): uses Google Sheets
- Type of Aggregation (Switch): routes items into 6 branches
- Count Unique (Summarize): summarizes / groups the items
- Sum (Summarize): summarizes / groups the items
- Average (Summarize): summarizes / groups the items
- Min (Summarize): summarizes / groups the items
- Max (Summarize): summarizes / groups the items
- Count (Summarize): summarizes / groups the items
- Bring All Data together (Aggregate): combines items into one
- Write into Table Output (AI Agent): runs an AI agent, with model: Google Gemini Chat Model
…plus 2 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (11)
- Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Google Sheets Tool
n8n-nodes-base.googleSheetsTool - Execute Workflow Trigger
n8n-nodes-base.executeWorkflowTrigger - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - AI Agent
@n8n/n8n-nodes-langchain.agent - Execute Sub-workflow
n8n-nodes-base.executeWorkflow - Google Sheets
n8n-nodes-base.googleSheets - Switch
n8n-nodes-base.switch - Aggregate
n8n-nodes-base.aggregate - Summarize
n8n-nodes-base.summarize
From the author
This n8n workflow template creates an efficient data analysis system that uses Google Gemini AI to interpret user questions about spreadsheet data and processes them through a specialized sub-workflow for optimized token usage and faster responses. What This…