Generate multi-period financial reports from Google Sheets with AI analysis
Ready for 3.0What this workflow does
This AI workflow has 25 nodes and runs when a chat message arrives (plus 1 other trigger). Along the way it connects DeepSeek Chat Model and Google Sheets.
How it runs
Trigger: When a chat message arrives (plus 1 other trigger).
- AI Agent: runs an AI agent, with model: DeepSeek Chat Model; 1 tool (Call n8n Workflow Tool); memory: Window Buffer Memory
- Format Date (Edit Fields (Set)): sets or maps fields
- Get revenual from google sheet (Google Sheets): uses Google Sheets
- Format data current circle (Edit Fields (Set)): sets or maps fields
- Format data last circle (Edit Fields (Set)): sets or maps fields
- Format data last year circle (Edit Fields (Set)): sets or maps fields
- Pivot current circle (Code): runs custom JavaScript code
- Pivot last circle (Code): runs custom JavaScript code
- Pivot last year cirle (Code): runs custom JavaScript code
- Sum data current transfer month (Merge): merges the data from its input branches
…plus 10 more steps. See the full node list below.
Services it uses
Other DeepSeek + Google Sheets templates (26)
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (11)
- DeepSeek Chat Model
@n8n/n8n-nodes-langchain.lmChatDeepSeek - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - Call n8n Workflow Tool
@n8n/n8n-nodes-langchain.toolWorkflow - Chat Trigger
@n8n/n8n-nodes-langchain.chatTrigger - AI Agent
@n8n/n8n-nodes-langchain.agent - Execute Workflow Trigger
n8n-nodes-base.executeWorkflowTrigger - Edit Fields (Set)
n8n-nodes-base.set - Google Sheets
n8n-nodes-base.googleSheets - Code
n8n-nodes-base.code - Aggregate
n8n-nodes-base.aggregate - Merge
n8n-nodes-base.merge
From the author
Description: 1. Overview This workflow generates automated revenue and expense comparison reports from a structured Google Sheet. It enables users to compare financial data across the current period, last month, and last year, then uses an AI agent to analyze…