Automate receipt data entry using this powerful n8n workflow. Extract YAPE or general receipt details via Telegram OCR and instantly save them to Google Sheets using OpenAI.
Download this n8n workflow template and start using it instantly.
Managing expense receipts manually is time-consuming and prone to errors. This specialized n8n workflow provides a seamless, end-to-end solution for capturing, analyzing, and logging financial data. By simply sending a photo of a receipt via Telegram, the user initiates a powerful process. This n8n automation uses advanced OCR capabilities (via an OpenAI n8n node) to read the text, and then an AI Agent (powered by DeepSeek) structures that raw text into clean, usable data (date, vendor, amount). Finally, the structured data is logged immediately into a designated Google Sheet. This makes the n8n template an invaluable tool for financial management, ensuring high accuracy and instant logging without manual intervention.
The entire process is initiated by the n8n trigger, the Telegram Listener, which monitors for new messages.
/start) or a photo receipt.🗂️Select Best Quality Image) ensures the highest resolution image attachment is selected for maximum OCR accuracy. The Telegram n8n node then downloads this high-quality receipt image.📄 Extract Text with OCR), which uses vision capabilities to perform Optical Character Recognition, transforming the image content into raw text.🤖 AI Data Processor), which uses a specialized Language Model (🧠 AI Model for Processing) to parse the text and extract specific fields (e.g., total amount, transaction date, vendor name), outputting clean, structured data.🔄 Prepare Data for Insertion) prepares the AI-structured data payload for the spreadsheet. The Google Sheets n8n node then appends this new row of receipt data to the specified sheet.To deploy this comprehensive n8n workflow, follow these steps:
🛎️Telegram Listener (n8n trigger): The starting point of the n8n workflow. It monitors for all incoming messages sent to the connected Telegram Bot.
🔀 Message Classifier (Switch n8n node): Routes the execution path based on the type of Telegram message received (command vs. image).
🗂️Select Best Quality Image (Code n8n node): Custom JavaScript n8n code used to iterate through the photo array provided by Telegram metadata and identify the file_id corresponding to the largest/highest-quality version of the receipt image.
🖼️Download High-Quality Image (Telegram n8n node): Downloads the actual image file content using the file ID extracted in the previous step, making it available for subsequent OCR processing.
📄 Extract Text with OCR (OpenAI n8n node): Takes the binary image data and uses an AI model (like GPT-4 Vision) to perform OCR, converting the receipt image into machine-readable text.
🤖 AI Data Processor (Langchain Agent n8n node): This crucial n8n node acts as an intelligent agent, utilizing the raw OCR text and prompt engineering to extract and structure key receipt details into a usable format.
🧠 AI Model for Processing (DeepSeek n8n node): Provides the underlying language model used by the AI Agent to perform the specialized data structuring tasks.
📑 Insert Data into Google Sheets (Google Sheets n8n node): The final action n8n node. It appends the clean, AI-verified receipt data as a new row in the designated Google Sheet, completing the automated logging process.
Use this essential n8n workflow to identify parameters utilizing deprecated expressions (like beginningOf, minus) across all active n8n templates after upgrading to n8n v1. Audit your n8n nodes quickly.

Learn how to build a powerful automated daily quote email sender using this customizable n8n workflow. Integrate APIs, scheduling, and the Gmail n8n node easily.

An n8n workflow that sets up an MCP server endpoint, exposing the Polls API as tools for AI agents. Easily integrate external APIs into your LLM chain using this robust n8n template and the powerful n8n trigger node.

Automate YouTube transcript extraction, use GPT-4o-mini via LangChain to generate structured summaries, and deliver results via Telegram. This powerful n8n workflow template accelerates video content analysis.

JASP402 | Developer Fullstack y QA Automation | Apasionado por la automatización con n8n. Creo workflows personalizados y eficientes para optimizar tus procesos. He desarrollado frameworks y librerías para potenciar la automatización. ¡Conecta conmigo para descubrir cómo puedo ayudarte!







































