Track expenses from receipts with Telegram, Gemini, and Google Sheets
Ready for 3.0What this workflow does
This AI workflow has 28 nodes and runs on Telegram events (message, callback query). Along the way it connects Telegram, Google Gemini and Google Sheets.
How it runs
Trigger: On Telegram events (message, callback query).
- Route by Telegram Input (Switch): routes items into 4 branches
- Download Telegram Photo (Telegram): work with file
- Download Telegram Document (Telegram): work with file
- Handle Unsupported Text Input (Telegram): uses Telegram
- Parse Telegram Callback Data (Code): runs custom JavaScript code
- Analyze Receipt Photo with Gemini (Google Gemini): analyze (image)
- Analyze Receipt Document with Gemini (Google Gemini): work with document
- Route by Category Response (Switch): routes items into 3 branches
- Answer Telegram Callback Query (Telegram): work with callback
- Parse Photo Analysis JSON (Code): runs custom JavaScript code
…plus 17 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (11)
- Telegram Trigger
n8n-nodes-base.telegramTrigger - Switch
n8n-nodes-base.switch - Telegram
n8n-nodes-base.telegram - Google Gemini
@n8n/n8n-nodes-langchain.googleGemini - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Google Sheets
n8n-nodes-base.googleSheets - Data table
n8n-nodes-base.dataTable - Wait
n8n-nodes-base.wait - HTTP Request
n8n-nodes-base.httpRequest - Edit Fields (Set)
n8n-nodes-base.set
From the author
Quick overview This workflow uses a Telegram bot to receive receipt photos or documents, extracts expense details with Google Gemini, and appends the results to Google Sheets, asking the user to confirm or correct the category in Telegram when Gemini’s…