r/GoogleAppsScript • u/Double_Engineering51 • Aug 30 '26
Guide Built a Google Sheet + AppsScript for personal budget from transactions in Gmail
After noticing the large number of notification options for my various financial institutions (banks, credit cards, etc), I wondered how hard it would be to turn that info into a budget tracking sheet. Doing so would make it easy to get near instant transactions without using 3rd party or custom integrations with the banks. So I built an AppsScript that turns transaction-alert emails into a categorized Google Sheet. Parsing the emails looked like a good job for an LLM (doesn't need to be state-of-the-art). I created an AppsScript that pulls email from a known Gmail label on a time-based trigger. The whole thing runs as me, in my own account — no OAuth to a third party, no bank credentials anywhere, and the Sheet is just a Sheet I own. If you're interested, give it a try. I allowed limited usage of my LLM API key through a proxy to make it easier to try. The real effort is in configuring the banks to send transaction alerts an every email. I've been testing with a free Gemini api key (use flash-lite, it has higher free quota per day) and it seems to be working fine for me.
The sheet to get things kicked off is here (make a copy, the AppsScript builds the sheet during setup and provides instructions)
If you want to see what the final result looks like I built a dummy Sheet here.
Would love to hear if you find it useful (or not)
1
u/Nicowain_512 Aug 30 '26
You could build something similar with google workspace studio. Adding a trigger when a new email enters your Gmail account. Finally connect a gem with it to analyze the invoice and categorize it. The only issue is that it's not free but it's a no code solution.
Great initiative, cheers!
1
u/vlucas Aug 31 '26
If you want your transactions in a sheet, I built a tool for that man! 😅 https://www.budgetsheet.com/
It's more reliable (and likely also cheaper) than running an LLM on every transaction!
2
u/Tall_Guarantee7767 Aug 30 '26
True Reddit spirit of sharing new human knowledge. Thank you.
1
u/LabanauskasNajeeba 21d ago
careful with leaving your proxy key open even with limits, people will burn through that quota faster than you think. might be worth just having a cell in the config tab where users paste their own key since the free tier is pretty generous anyway
1
u/electric-handjob Aug 30 '26
This is awesome. I did something similar but it’s not instant. I have to pull a csv from my bank. Will definitely give this a try!