Telegram AI Expense Tracker: Track Expenses via Bot to Google Sheets
Expense tracking apps require separate logins and complex interfaces, making it hard to quickly record purchases. Receipt photos get lost in your phone gallery. This workflow creates a Telegram bot where you can send simple messages like 'Coffee $4.50 at Starbucks' and have AI automatically extract the amount, category, merchant, and timestamp into a Google Sheet for easy analysis.
What this workflow does
- A Telegram Trigger listens for messages sent to your bot.
- An OpenAI node extracts amount, category, and merchant from the message text.
- A Code node validates the extracted data and formats it for Sheets.
- A Google Sheets node appends the expense to your expense tracking spreadsheet.
- The bot sends a confirmation message back to the user.
Setup guide
- Import the JSON into n8n (Workflows > Import from File).
- Connect Telegram, OpenAI, and Google Sheets in their respective nodes.
- Replace REPLACE_WITH_BOT_TOKEN with your Telegram bot token.
- Replace REPLACE_WITH_SPREADSHEET with your Google Sheet ID.
- Create a Google Sheet with columns: Date, Amount, Category, Merchant, Note.
- Set up your Telegram bot webhook to point to this workflow's Telegram Trigger URL.
Want this running 24/7?
Self-host n8n on a cheap VPS and this workflow runs around the clock for less than a coffee a month.
Get an n8n VPS from $5/monthFAQ
Want the workflows this one is a warm-up for?
The Mega Bundle packs both WorkflowForge Pro volumes — 32 production-grade workflows: automations (cart recovery, lead scoring, invoice extraction) and AI agents (support agent, calendar assistant, research agent), each with a setup guide. $39 for both, instant download.
Get the Mega Bundle →Need it customized for your exact process?
I build custom n8n automations and AI agents professionally: your tools, your edge cases, tested and documented.
Hire me on Fiverr →