{"product_id":"n8n-telegram-receipt-expense-tracker-w-gemini-google-sheets","title":"n8n Telegram Receipt Expense Tracker w\/ Gemini \u0026 Google Sheets","description":"\u003ch3\u003eCapture receipt expenses in Telegram—auto-extracted with Gemini and saved to Google Sheets\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow lets you send receipt photos or documents to a Telegram bot, automatically extracts vendor, amount, date, category, and payment method using \u003cstrong\u003eGoogle Gemini\u003c\/strong\u003e, and then appends the verified expense to \u003cstrong\u003eGoogle Sheets\u003c\/strong\u003e. If Gemini isn’t confident, it asks you to confirm the category right in Telegram.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eListens on Telegram\u003c\/strong\u003e for incoming messages containing a \u003cem\u003ephoto or document\u003c\/em\u003e (and for inline button callbacks).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eDownloads the receipt\u003c\/strong\u003e from Telegram and sends it to \u003cstrong\u003eGoogle Gemini\u003c\/strong\u003e for extraction.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReceives Gemini’s JSON output\u003c\/strong\u003e including vendor, amount, date, category, payment method, and a \u003cstrong\u003econfidence score\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eParses and normalizes data\u003c\/strong\u003e (invalid dates are normalized to \u003ccode\u003enull\u003c\/code\u003e).\u003c\/li\u003e\n  \u003cli\u003eIf \u003cstrong\u003econfidence \u0026gt; 0.65\u003c\/strong\u003e: saves the expense directly to \u003cstrong\u003eGoogle Sheets\u003c\/strong\u003e and notifies you in Telegram.\u003c\/li\u003e\n  \u003cli\u003eIf \u003cstrong\u003econfidence ≤ 0.65\u003c\/strong\u003e: stores the extracted expense and an \u003cstrong\u003en8n resume URL\u003c\/strong\u003e in an \u003cstrong\u003en8n Data Table\u003c\/strong\u003e, then prompts you in Telegram to confirm the detected category via inline buttons.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eResumes the workflow\u003c\/strong\u003e after your selection: either uses the existing category or asks you to choose a new one, then saves to Google Sheets and deletes the pending record.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eBusy teams capturing expenses on the go by snapping receipts and sending them to a Telegram bot.\u003c\/li\u003e\n  \u003cli\u003eFreelancers or SaaS operators maintaining a clean expense log without manually typing every receipt.\u003c\/li\u003e\n  \u003cli\u003eAutomation engineers deploying a reliable Telegram → Gemini → Google Sheets expense pipeline with human-in-the-loop category confirmation.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eTelegram integration\u003c\/strong\u003e (Telegram bot credentials) for photo\/document ingestion and inline button confirmations.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGoogle Gemini (PaLM)\u003c\/strong\u003e API credential for JSON-based receipt extraction and confidence scoring.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGoogle Sheets\u003c\/strong\u003e for appending approved expenses.\u003c\/li\u003e\n  \u003cli\u003en8n nodes used: \u003cstrong\u003eif\u003c\/strong\u003e, \u003cstrong\u003eset\u003c\/strong\u003e, \u003cstrong\u003ecode\u003c\/strong\u003e, \u003cstrong\u003ewait\u003c\/strong\u003e, \u003cstrong\u003eswitch\u003c\/strong\u003e, \u003cstrong\u003etelegram\u003c\/strong\u003e (plus an n8n Data Table for pending approvals).\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003cp\u003e\u003cstrong\u003eSetup tip:\u003c\/strong\u003e connect your Telegram bot credential to all Telegram nodes, add your \u003cstrong\u003eGoogle Gemini (PaLM)\u003c\/strong\u003e API credential, and configure the Google Sheets destination.\u003c\/p\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":46236464283827,"sku":"N8N-21003","price":31.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/wQkSYNgy_e85ZSTbVT0sx_7ZiLJ28a.png?v=1792228004","url":"https:\/\/buyflowscripts.com\/products\/n8n-telegram-receipt-expense-tracker-w-gemini-google-sheets","provider":"N8N Commerce","version":"1.0","type":"link"}