Skip to content
NEWMarketplace and the trig8n Agent: sell what you build, and get plans and changes that are tested before you see them. See what is new

Library / Finance, Invoices & Accounting

Finance, Invoices & Accounting

Log Receipts from Telegram Photos with Google Vision OCR

When a photo arrives in Telegram, the workflow reads it with Google Vision OCR, has an LLM structure the data and records it in Google Sheets.

What it does

## Automated Financial Reporting Using Google Vision OCR, Telegram & Google Sheets This workflow automates the process of recording financial transactions from photos of receipts or shopping receipts. Users simply send an image of the receipt via Telegram. The image is processed using the Google Vision API to detect text, then extracted and structured by LLM via OpenRouter. The final result is saved to Google Sheets and also displayed to the user via a Telegram bot. 🧾 Google Sheets Template Create a Google Sheet using this template: Financial Reporting ## 🛠️ Key Features - The workflow starts when a user sends a photo of a receipt to the Telegram bot. - The image is converted to text using the Google Vision API's OCR. - Data processing with LLM (OpenRouter) helps identify and structure transaction elements such as: date, vendor name & address, receipt/invoice number, item list (product name, quantity, unit price, total), and transaction category. - Cleaned and structured data is automatically recorded to Google Sheets per item. - The system also sends a summary of the recording results in an easy to read text format. - Users can also send text messages to the bot to query stored transaction data, which will be answered by a Google Sheets-based AI Agent. ## 🔧 Requirements - Active Telegram Bot + API Token - Google Vision API Key - OpenRouter Account + API Key - Google Sheets connected to n8n ## 🧩 Setup Instructions 1. Replace all API keys and tokens with your own in the relevant nodes. - Google Vision API Key: Set in 'Set Vision API' node. - Telegram Bot Token: Set in 'Set Telegram Token' node and all Telegram nodes. - OpenRouter API Key: Set in all OpenRouter nodes. - Google Sheets: Connect your own Google Sheets credential. 2. Use the provided Google Sheets template or your own. 3. Activate the workflow after configuration. 4. (Optional) Review sticky notes for step-by-step explanations.

The steps

  1. Telegram Trigger
  2. If
  3. Get Path
  4. Get URL
  5. Set Vision API
  6. HTTP Request
  7. Code
  8. Basic LLM Chain
  9. OpenRouter Chat Model
  10. Structured Output Parser
  11. Append or update row in sheet
  12. Split Out
  13. Basic LLM Chain1
  14. OpenRouter Chat Model1

23 steps in total.

Similar automations