🧾 βš›οΈπŸ‹πŸ€– Extract data from YAPE receipts via Telegram OCR and store in Google Sheets

⚑ 1,849 views · 🧾 Invoice Processing

πŸ’‘ Pro Tip β€” HTTP Request scraping tends to break when sites update their markup. If you’re scraping a major platform, check if ScraperNode covers it β€” it has maintained scrapers for LinkedIn, Instagram, TikTok, YouTube, and 20+ other platforms that return structured data.

View All Scrapers

Description

Detailed Technical Description

This n8n workflow automates Yape payment receipt processing, integrating Telegram bot, AI-powered OCR, and Google Sheets automation. By leveraging ChatGPT Vision Computing, it extracts and structures transaction details, eliminating the need for manual entry. Ideal for freelancers, businesses, and finance teams, this workflow ensures error-free, real-time financial tracking. The AI agent powered by DeepSeek refines and formats the extracted text, storing it in Google Sheets for easy accessibility and reporting. Users can track payments, monitor cash flow, and generate financial reports without any manual work. This seamless integration boosts efficiency, reduces errors, and automates financial record-keeping with 100% accuracy.

πŸ› οΈ Technologies Used:

βœ…n8n – Workflow orchestrator. βœ…Telegram – Handles image reception and notifications. βœ…Google Drive – Manages file creation and storage. βœ…Google Sheets – Automatically logs extracted data into spreadsheets.

πŸ€–Artificial Intelligence:

βœ…ChatGPT Vision Computing – Performs OCR on payment receipts. βœ…DeepSeek AI – Organizes and converts extracted data into a structured format.


πŸ“Œ pre-conditions:

πŸ“© A Telegram Bot – Must be created to receive images. Setup Guide πŸ”‘ Google Sheets API Key – Required to store extracted data. Setup Guide βš›οΈ ChatGPT API Key – Used for OCR and AI text extraction. Get it here πŸ‹ DeepSeek API Key – Processes extracted text into structured data. Get it here


1️⃣ Image Reception & OCR Processing πŸ“©

The user attaches a Yape payment receipt image to the Telegram bot conversation. 🀳🏻

image.png

2️⃣ Analyze Image (OCR) πŸ‘οΈβ€πŸ—¨οΈ

A βš›οΈChatGPT Vision Computing model processes the image and extracts all visible text, ensuring high-accuracy OCR for structured data extraction. image.png

3️⃣ Analyze and format text

Intelligent Data Processing with AI πŸ€– The extracted text is sent to a πŸ‹DeepSeek-based AI agent that: Identifies and structures key transaction details (amount, date, sender, transaction ID, etc.). Converts the data into a structured JSON format. image.png

4️⃣ Data Storage in Google Sheets πŸ“Š

Google Drive integration is established. If the Google Sheets file does not exist, it is automatically created.

Extracted data is automatically recorded in the corresponding spreadsheet, enabling effortless tracking and streamlined financial organization. image.png

πŸš€ Benefits:

βœ… Time-saving – Eliminates manual payment processing. βœ… Error-free data entry – Reduces human mistakes in record-keeping. βœ… 100% automation – No manual intervention required. βœ… Seamless integration – Easily connects with other workflows.


πŸ’‘NOTE: The extracted transaction data will be stored in a Google Sheets file with the following columns:

Column NameDescription
idUnique identifier for each transaction.
beneficiaryNameName of the recipient of the payment.
amountPayment amount in the specified currency.
currencyCurrency used for the transaction (e.g., PEN, USD).
companyThe entity or service handling the transaction.
dateDate of the transaction in a human-readable format.
hourTime of the transaction.
originalDateThe exact date extracted from the receipt.
dateToISOStandardized ISO 8601 date format.
operationType of financial operation (e.g., deposit, transfer).
operationNumberUnique operation number provided by the payment system.
beneficiaryNumberAccount or phone number of the recipient.
commissionAny commission or fee charged for the transaction.
accountAccount number or reference used for the payment.
channelPayment method used (e.g., app, POS, bank transfer).
agentCodeIdentifier of the agent or entity processing the payment.

This workflow is perfect for businesses, freelancers, and individuals who need a fully automated solution to process Yape payment receipts efficiently. By leveraging AI-powered OCR and structured data extraction, it eliminates manual effort, reduces errors, and ensures that all transactions are accurately logged in Google Sheets. Whether you’re managing personal finances, freelance payments, or business transactions, this system provides a seamless, hands-free approach to financial tracking, allowing you to focus on what truly matters.

πŸ”— Nodes Used

Google Sheets, Telegram, Telegram Trigger, Google Drive, AI Agent, OpenAI

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup