Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

expense-ai-agent πŸ€–πŸ’Έ

An AI-powered automation built using n8n that captures expense details from a Telegram bot and logs them into an Excel sheet β€” smartly extracting insights using the Gemini API.

Workflow Screenshot

πŸš€ What It Does

Whenever a user sends an expense message via Telegram (e.g., β‚Ή200 lunch at Subway or Cab - β‚Ή450), this AI agent:

  1. Uses Gemini API to extract and interpret:

    • Amount
    • Item
    • Category (e.g., Food, Travel, Entertainment)
    • Description
    • Date (or assigns the current timestamp if missing)
  2. Writes the parsed data into an Excel file with the following structure:
    Date | Item | Amount | Category | Description

βœ… Supports messages with currency symbols
βœ… Intelligently categorizes expenses using Gemini
βœ… Uses current timestamp when date is missing


πŸ› οΈ Setup Instructions

  1. Clone this repository:
    git clone https://github.com/yourusername/expense-ai-agent.git
  2. Open n8n and import the provided .json workflow.
  3. Configure the node with the required credentials.
  4. Deploy the workflow and test it by sending an expense message to your Telegram bot. Your Excel sheet should update instantly!

πŸ™Œ Contribute

Feel free to fork this project, improve the logic, or add new features like multi-user support, analytics dashboard, or budget alerts. PRs are welcome!

About

AI agent that logs expense details sent via Telegram bot into Excel sheet with the help of Gemini API

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors