Templates / Extract text from images & PDFs via Telegram with Mistral OCR to Markdown

Extract text from images & PDFs via Telegram with Mistral OCR to Markdown

Ready for 3.0

by Rostislav · 2,909 views · created 2025-07-20 · 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-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This workflow has 32 nodes and runs manually, when you click “Execute workflow” (plus 1 other trigger). Along the way it connects Telegram. It also calls api.mistral.ai over HTTP.

How it runs

Trigger: Manually, when you click “Execute workflow” (plus 1 other trigger).

  1. Telegram Webhook Configuration (Edit Fields (Set)): sets 4 fields: Production_Mode, Bot_API_Key, Webhook_Prod_URL…
  2. Settings (Edit Fields (Set)): sets 4 fields: Bot_Whitelist_Active, Allowed_Chat_IDs, File_Downloader_Prod_URL…
  3. Check Production Mode (If): checks a condition and branches into true / false
  4. Determine Incoming Request Source Type (Switch): routes items into 2 branches
  5. Set Production Webhook (HTTP Request): calls an HTTP API
  6. Set Development Webhook (HTTP Request): calls an HTTP API
  7. Telegram Event Handler (Switch): routes items into 2 branches
  8. Get a file (Telegram): work with file
  9. Return Webhook Status (HTTP Request): calls an HTTP API
  10. Is Whitelist Disabled? (If): checks a condition and branches into true / false

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

Services it uses

Telegram

HTTP calls to: api.mistral.ai

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.

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (10)

From the author

This n8n template provides a complete solution for Optical Character Recognition (OCR) of image and PDF files directly within Telegram --- Users can simply send PNG, JPEG, or PDF documents to your Telegram bot, and the workflow will process them, extract text…

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