AI agent: expense tracker in Google Sheets and n8n chat
Configured with Agent, Chat Trigger, Execute Workflow Trigger, Google Sheets, and additional nodes. Review the connections and setup before adapting this template.
Node categories in this workflow
- AI & models
- Trigger
- Data store
- Subworkflow
Icons describe general node roles, inferred from node types. Inspect the parameters for the configured action.
Drag to pan; use + and − to zoom. Reconstructed from the exported node positions; nothing runs here. Dashed lines represent non-main connections. Full node names and notes appear below.
How it works
The exported workflow contains the following configured nodes. Their connections are shown above; inspect the JSON for the complete logic, expressions, and external actions.
| Node | Category | Type | Operation |
|---|---|---|---|
| AI Agent | AI & models | Agent | See node parameters |
| When chat message received | Trigger | Chat Trigger | See node parameters |
| Workflow Input Trigger | Trigger | Execute Workflow Trigger | See node parameters |
| OpenAI Chat Model | AI & models | OpenAI Chat Model | See node parameters |
| Window Buffer Memory | Data store | Memory Buffer Window | See node parameters |
| OpenAI Chat Model1 | AI & models | OpenAI Chat Model | See node parameters |
| Expense text to JSON parser | AI & models | Information Extractor | See node parameters |
| Save expense into Google Sheets | Data store | Google Sheets | append |
| Parse msg and save to Sheets | Subworkflow | Tool Workflow | See node parameters |
Setup
- Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
- Connect your own credentials through n8n’s credential store. Replace
REPLACE_WITH_*values with your resource identifiers. - Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
- Run with synthetic data and harmless destinations. Enable triggers only after checking the actual outputs.
Requirements
An n8n instance with the listed node types and compatible versions. Service-connected workflows may require accounts, credentials, or paid APIs.
Credential types declared in the source
googleSheetsOAuth2ApiopenAiApi
Workflow notes
Save your expenses via chat message.
Save your expenses via chat message.
LLM will parse your message to structured JSON and save as a new row into Google Sheet.
Installation
1. Set up Google Sheets:
Clone this Sheet: https://docs.google.com/spreadsheets/d/REPLACE_WITH_DOCUMENT_ID/edit?gid=0#gid=0
(File -> Make a copy)
Choose this sheet into "Save expense into Google Sheets" node.
2. Fix sub-workflow dropdown:
open "Parse msg and save to Sheets" node (which is an n8n sub-workflow executor tool) and choose the SAME workflow in the dropdown. it will allow n8n to call "Workflow Input Trigger" properly when needed.
3. Activate the workflow to make chat work properly.
Sent message to chat, something like "car wash; 59.3 usd; 25 jan 2024"
you should get a response: Your expense saved, here is the output of save sub-workflow:{"cost":59.3,"descr":"car wash","date":"2024-01-25","msg":"car wash; 59.3 usd; 25 jan 2024"}
and new row in Google sheets should be inserted!
Parse msg and save to Sheets
Make sure that this SAME workflow is chosen in the Workflow dropdown!
AI agent: expense tracker in Google Sheets and n8n chat
AI agent: expense tracker in Google Sheets and n8n chat
Purpose and structure
This folder contains the AI agent: expense tracker in Google Sheets and n8n chat workflow. Its executable nodes use agent, chatTrigger, executeWorkflowTrigger, googleSheets, informationExtractor, lmChatOpenAi, memoryBufferWindow, toolWorkflow. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.
Setup
Import inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.
Entry points
When chat message received, Workflow Input Trigger
Verification
Sanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.
Attribution
https://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Googlesheets/1661_GoogleSheets_Stickynote_Monitor_Triggered.json MIT; preserve source notices.