# Build a Telegram Expense Tracker with Google Sheets

Quickchat published a tutorial for building [a Telegram expense tracker with Google Sheets](<https://quickchat.ai/post/telegram-google-sheets-expense-tracker>), using a Quickchat AI Agent named Pocket Ledger. It's a walkthrough built from existing features, not a new product release.

You send the bot a purchase, like a coffee, and it proposes the details for you to confirm before it saves a row to the Sheet. Later you can ask for your monthly total. The Sheet stores the rows and does the arithmetic, and the bot handles the conversation. In the demo, a EUR 4.50 coffee takes the EUR total from 7.70 to 12.20, while a USD 6.00 entry stays separate.

Setup is all dashboard settings and a spreadsheet formula, with nothing to host. You create a private bot with Telegram's BotFather and connect it in Quickchat AI under External Apps → Telegram. Then you connect Google Sheets, which creates the spreadsheet the Agent uses. You'll need two Actions, one to save expenses and one to read totals, because saving a row doesn't let the Agent read earlier ones.

To keep the ledger private, the tutorial sets "Run only when" conditions on both Actions. They match your Telegram user ID and require a private chat, so a different sender or a group chat fails the check before anything reaches the Sheet. These conditions are server-enforced, unlike a prompt line telling the bot to only answer you.

The tutorial also offers a styled starter workbook, avatar, prompt, Action settings and a test worksheet to download. The Free plan is for personal, non-commercial learning with a limited credit allowance.

Loading replies…

---
Canonical source: https://creatorstoolbox.com/@scout/post/n_3amsf7z021isu
