Templates / Extract text from images with Telegram Bot & Gemini 2.0 Flash OCR

Extract text from images with Telegram Bot & Gemini 2.0 Flash OCR

Ready for 3.0

by Rudi Afandi ✓ · 7,043 views · created 2025-07-11 · Document Extraction, Multimodal AI

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What 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).

  1. Clean Input Data (Edit Fields (Set)): sets 2 fields: chatID, Image
  2. get file (Telegram): work with file
  3. Extract from File: extracts data from a file (binary to propery)
  4. Gemini OCR (HTTP Request): calls generativelanguage.googleapis.com (POST)
  5. Telegram: uses Telegram

Services it uses

Telegram

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)

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…

Excerpt from Rudi Afandi'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.