{"product_id":"n8n-expense-receipt-automation-gmail-telegram-to-notion","title":"n8n Expense Receipt Automation: Gmail + Telegram to Notion","description":"\u003ch3\u003eAutomatically log your receipts from Gmail and Telegram into Notion—no manual data entry\u003c\/h3\u003e\n\u003cp\u003eThis n8n Expense Receipt Automation workflow reads receipt attachments from \u003cstrong\u003eGmail\u003c\/strong\u003e and receipt photos from \u003cstrong\u003eTelegram\u003c\/strong\u003e, extracts structured expense fields using \u003cstrong\u003eOpenAI (gpt-4o-mini)\u003c\/strong\u003e, and creates a new expense entry in your \u003cstrong\u003eNotion\u003c\/strong\u003e database—then sends a Telegram confirmation. If anything goes wrong, it alerts you via \u003cstrong\u003eSlack\u003c\/strong\u003e and \u003cstrong\u003eTelegram\u003c\/strong\u003e.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGmail receipt intake:\u003c\/strong\u003e Triggers on a new Gmail message that matches your receipt search filter and includes an attachment.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eAttachment handling:\u003c\/strong\u003e Grabs the first email attachment, detects whether it’s a \u003cstrong\u003ePDF\u003c\/strong\u003e, and extracts PDF text when applicable.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReceipt extraction with OpenAI:\u003c\/strong\u003e Sends either the PDF text or the receipt image content to \u003cstrong\u003eOpenAI (gpt-4o-mini)\u003c\/strong\u003e to return receipt data as \u003cstrong\u003eJSON\u003c\/strong\u003e (vendor, date, amount, currency, category, summary).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eTelegram receipt photo intake:\u003c\/strong\u003e Triggers on a new Telegram message and continues only if the message includes a \u003cstrong\u003ephoto\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eImage preparation:\u003c\/strong\u003e Downloads the highest-resolution Telegram photo, converts it to a \u003cstrong\u003ebase64 data URL\u003c\/strong\u003e, and sends it to OpenAI for JSON extraction.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eNotion logging:\u003c\/strong\u003e Parses the OpenAI response into normalized fields and creates a new page in your \u003cstrong\u003eNotion expenses database\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eConfirmation + error alerts:\u003c\/strong\u003e Sends a Telegram message confirming the logged expense; on workflow errors, posts alerts to \u003cstrong\u003eSlack\u003c\/strong\u003e and \u003cstrong\u003eTelegram\u003c\/strong\u003e.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eExpense tracking for SaaS operators: automatically capture receipts sent to Gmail or submitted in Telegram.\u003c\/li\u003e\n  \u003cli\u003eFreelancers and teams: centralize vendor\/date\/amount\/category in Notion without copying from PDFs or images.\u003c\/li\u003e\n  \u003cli\u003eAutomation engineers: a practical n8n pattern for Gmail + Telegram ingestion, OpenAI extraction, and Notion persistence.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eNodes\/stack:\u003c\/strong\u003e if, code, no op, slack, notion, telegram\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eIntegrations:\u003c\/strong\u003e Gmail OAuth2, Telegram Bot API, OpenAI, Notion, and Slack OAuth2 (for error alerts)\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSetup requirement:\u003c\/strong\u003e Set \u003ccode\u003eREPLACE_WITH_YOUR_NOTION_EXPENSES_DATABASE_ID\u003c\/code\u003e and ensure the database has matching properties (Vendor, Amount, Currency, Date, Category, Source, Notes).\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":46029288210611,"sku":"N8N-19619","price":75.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/Nz4Wmw_OljJZumXKjGuU1_bjfi7Ws5.png?v=1789462929","url":"https:\/\/buyflowscripts.com\/products\/n8n-expense-receipt-automation-gmail-telegram-to-notion","provider":"N8N Commerce","version":"1.0","type":"link"}