← All N8N workflows
AI & researchAgentChat TriggerExecute Workflow TriggerGoogle SheetsInformation Extractor

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.

Workflow preview
AI & modelsAI AgentAgentTriggerWhen chat messagereceivedChat TriggerTriggerWorkflow Input TriggerExecute Workflow TriggerAI & modelsOpenAI Chat ModelOpenAI Chat ModelData storeWindow Buffer MemoryMemory Buffer WindowAI & modelsOpenAI Chat Model1OpenAI Chat ModelAI & modelsExpense text to JSONparserInformation ExtractorData storeSave expense intoGoogle SheetsGoogle SheetsSubworkflowParse msg and save toSheetsTool Workflow

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.

Workflow node names, types, and operations
NodeCategoryTypeOperation
AI AgentAI & modelsAgentSee node parameters
When chat message receivedTriggerChat TriggerSee node parameters
Workflow Input TriggerTriggerExecute Workflow TriggerSee node parameters
OpenAI Chat ModelAI & modelsOpenAI Chat ModelSee node parameters
Window Buffer MemoryData storeMemory Buffer WindowSee node parameters
OpenAI Chat Model1AI & modelsOpenAI Chat ModelSee node parameters
Expense text to JSON parserAI & modelsInformation ExtractorSee node parameters
Save expense into Google SheetsData storeGoogle Sheetsappend
Parse msg and save to SheetsSubworkflowTool WorkflowSee node parameters

Setup

  1. Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
  2. Connect your own credentials through n8n’s credential store. Replace REPLACE_WITH_* values with your resource identifiers.
  3. Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
  4. 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

  • googleSheetsOAuth2Api
  • openAiApi

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.

More in AI & research