AI Agents

Track expenses in Google Sheets with AI chat agent

10 nodes 346 153 Automatic trigger
Download

Workflow Description

An intelligent agent listens for expense entries via n8n chat, processes natural language input using OpenAI, extracts amounts and categories, stores them in Google Sheets, and maintains conversation history for context and quick reference.

How it works

  1. 1.Receive user message through n8n chat trigger
  2. 2.Process message with AI agent powered by OpenAI model
  3. 3.Extract expense details (amount, category, date) from free-text input
  4. 4.Save extracted data to dedicated Google Sheets spreadsheet
  5. 5.Maintain conversation history in memory buffer for context
  6. 6.Send confirmation message to user confirming expense logged

Use cases

  • Enable employees to log daily expenses without switching applications
  • Manage small project budgets with real-time expense tracking and categorization
  • Build historical expense datasets for financial analysis and reporting
  • Support multi-turn conversations to track related or recurring expenses

Requirements

  • Active n8n account with permissions to create AI agents
  • OpenAI API key for natural language processing capabilities
  • Connected Google account with edit permissions on Google Sheets
  • Basic understanding of expense data structure (categories, amounts, dates)

Service Value

Ideal as a smart automation service combining integrations and AI to produce ready-to-use results.

Apps Used

AI Agent Chat Trigger Twitter/X OpenAI Memory Google Sheets Tool

Details

Trigger Automatic trigger
Nodes 10
Apps 7
Views 346
Downloads 153

How to Use

  1. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (10)

AI Agent

Agent

#1

When chat message received

Chat Trigger

#2

Workflow Input Trigger

Execute Workflow Trigger

#3

OpenAI Chat Model

OpenAI

#4

Window Buffer Memory

Memory Buffer Window

#5

Sticky Note

Sticky Note

#6

OpenAI Chat Model1

OpenAI

#7

Expense text to JSON parser

Information Extractor

#8

Save expense into Google Sheets

Google Sheets

#9

Parse msg and save to Sheets

Tool Workflow

#10