Extract text from images with Telegram Bot & Gemini 2.0 Flash OCR
Ready for 3.0What this workflow does
This workflow has 6 nodes and runs on Telegram events (message). Along the way it connects Telegram. It also calls generativelanguage.googleapis.com over HTTP.
How it runs
Trigger: On Telegram events (message).
- Clean Input Data (Edit Fields (Set)): sets 2 fields: chatID, Image
- get file (Telegram): work with file
- Extract from File: extracts data from a file (binary to propery)
- Gemini OCR (HTTP Request): calls generativelanguage.googleapis.com (POST)
- Telegram: uses Telegram
Services it uses
HTTP calls to: generativelanguage.googleapis.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (5)
- Telegram Trigger
n8n-nodes-base.telegramTrigger - Edit Fields (Set)
n8n-nodes-base.set - Telegram
n8n-nodes-base.telegram - HTTP Request
n8n-nodes-base.httpRequest - Extract from File
n8n-nodes-base.extractFromFile
From the author
Description Turn your Telegram bot into a powerful OCR (Optical Character Recognition) tool. This workflow allows you to send any image (like a screenshot, a photo of a document, or a picture of a sign) to your bot, and it will instantly extract and send back…