⚛️🐋🤖 Extract data from YAPE receipts via Telegram OCR and store in Google Sheets
Needs changesWhat 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.
- 🔀 Message Classifier (Switch): routes items into branches
- 🔀 Start Command Handle (Switch): routes items into branches
- 🖼️Retrieve Image Attachment (Telegram): uses Telegram
- 🗂️Select Best Quality Image (Code): runs custom JavaScript code
- ✉️ Send Welcome Message (Telegram): uses Telegram
- 📄 Extract Text with OCR (OpenAI): uses OpenAI
- 🖼️Download High-Quality Image (Telegram): uses Telegram
- 🤖 AI Data Processor (AI Agent): runs an AI agent, with model: 🧠 AI Model for Processing
- 🔍 Find Google Sheet in Drive (Google Drive): uses Google Drive
- 🔄 Prepare Data for Insertion (Code): runs custom JavaScript code
…plus 2 more steps. See the full node list below.
Services it uses
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.0 | Replace 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)
- Telegram Trigger
n8n-nodes-base.telegramTrigger - Switch
n8n-nodes-base.switch - Telegram
n8n-nodes-base.telegram - Code
n8n-nodes-base.code - OpenAI
@n8n/n8n-nodes-langchain.openAi - AI Agent
@n8n/n8n-nodes-langchain.agent - DeepSeek Chat Model
@n8n/n8n-nodes-langchain.lmChatDeepSeek - Google Drive
n8n-nodes-base.googleDrive - Google Sheets
n8n-nodes-base.googleSheets
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,…