Templates / ⚛️🐋🤖 Extract data from YAPE receipts via Telegram OCR and store in Google Sheets

⚛️🐋🤖 Extract data from YAPE receipts via Telegram OCR and store in Google Sheets

Needs changes

by Jesús Pérez · 1,879 views · created 2025-03-03 · Invoice Processing, AI Summarization

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 14 nodes and runs on Telegram events. Along the way it connects Telegram, OpenAI, DeepSeek Chat Model and Google Drive and 1 more.

How it runs

Trigger: On Telegram events.

  1. 🔀 Message Classifier (Switch): routes items into branches
  2. 🔀 Start Command Handle (Switch): routes items into branches
  3. 🖼️Retrieve Image Attachment (Telegram): uses Telegram
  4. 🗂️Select Best Quality Image (Code): runs custom JavaScript code
  5. ✉️ Send Welcome Message (Telegram): uses Telegram
  6. 📄 Extract Text with OCR (OpenAI): uses OpenAI
  7. 🖼️Download High-Quality Image (Telegram): uses Telegram
  8. 🤖 AI Data Processor (AI Agent): runs an AI agent, with model: 🧠 AI Model for Processing
  9. 🔍 Find Google Sheet in Drive (Google Drive): uses Google Drive
  10. 🔄 Prepare Data for Insertion (Code): runs custom JavaScript code

…plus 2 more steps. See the full node list below.

Services it uses

TelegramOpenAIDeepSeek Chat ModelGoogle DriveGoogle Sheets

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • AI Agent v1 (old agent modes) in 🤖 AI Data Processor (v1.7): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Removed in 3.0Replace with
AI Agent v1 (old agent modes)
🤖 AI Data Processor (v1.7)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (9)

From the author

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,…

Excerpt from Jesús Pérez 's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.