{"product_id":"telegram-receipt-ai-expense-tracker-gemini-google-sheets","title":"Telegram Receipt AI Expense Tracker (Gemini + Google Sheets)","description":"\u003ch3\u003eTurn Telegram receipt photos into clean expense rows—automatically\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow captures receipt images you send to your \u003cb\u003eTelegram bot\u003c\/b\u003e, uses \u003cb\u003eGoogle Gemini\u003c\/b\u003e to extract the expense details as structured JSON, and logs them into a \u003cb\u003eGoogle Sheets “Expenses”\u003c\/b\u003e sheet—while detecting duplicates by \u003cb\u003eTelegram message ID\u003c\/b\u003e and sending you a confirmation (or duplicate warning) right in Telegram.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cb\u003eListens for new Telegram messages\u003c\/b\u003e sent to your bot.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cb\u003eChecks for a receipt photo\u003c\/b\u003e in the incoming payload and normalizes the message for processing.\u003c\/li\u003e\n  \u003cli\u003eIf no photo is attached, it \u003cb\u003ereplies in Telegram\u003c\/b\u003e asking the user to upload a clear receipt image.\u003c\/li\u003e\n  \u003cli\u003eIf a photo is attached, it \u003cb\u003edownloads the image from Telegram\u003c\/b\u003e and sends it to \u003cb\u003eGoogle Gemini\u003c\/b\u003e (via an AI agent) to extract receipt fields as JSON.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cb\u003eParses and validates extracted data\u003c\/b\u003e, including a confidence score; receipts with missing or uncertain key fields are \u003cb\u003eflagged for review\u003c\/b\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cb\u003ePrevents duplicate logging\u003c\/b\u003e by searching the Telegram \u003cb\u003emessage ID\u003c\/b\u003e in the Google Sheets “Expenses” sheet.\u003c\/li\u003e\n  \u003cli\u003eIf duplicate: sends a \u003cb\u003eduplicate notice\u003c\/b\u003e via Telegram. If not: \u003cb\u003eappends the expense\u003c\/b\u003e to Google Sheets and sends back a \u003cb\u003eformatted summary\u003c\/b\u003e.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003ePersonal or team expense tracking by simply forwarding receipt photos to Telegram.\u003c\/li\u003e\n  \u003cli\u003eSaaS operators logging travel, office, and vendor receipts without manual spreadsheet entry.\u003c\/li\u003e\n  \u003cli\u003eAutomation engineers building a reliable receipt pipeline with AI extraction and duplicate protection.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cb\u003eTelegram\u003c\/b\u003e trigger for new bot messages and Telegram replies.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cb\u003eGoogle Gemini (Google PaLM)\u003c\/b\u003e via an \u003cb\u003en8n-nodes-langchainagent\u003c\/b\u003e AI agent for receipt-to-JSON extraction.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cb\u003eGoogle Sheets\u003c\/b\u003e integration to store expenses in the “Expenses” sheet and check message ID duplicates.\u003c\/li\u003e\n  \u003cli\u003eUses n8n logic nodes such as \u003cb\u003eif\u003c\/b\u003e and \u003cb\u003ecode\u003c\/b\u003e for validation, parsing, and flow control.\u003c\/li\u003e\n  \u003cli\u003eSetup includes Telegram bot credentials (BotFather), Gemini API credentials, and Google Sheets OAuth2.\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45837411549363,"sku":"N8N-18286","price":45.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/vG_n8h6c8lCPfDwOazJrN_zrhH59Mc.png?v=1786793973","url":"https:\/\/buyflowscripts.com\/products\/telegram-receipt-ai-expense-tracker-gemini-google-sheets","provider":"N8N Commerce","version":"1.0","type":"link"}