Extract text from images & PDFs via Telegram with Mistral OCR to Markdown
Ready for 3.0What 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).
- Telegram Webhook Configuration (Edit Fields (Set)): sets 4 fields: Production_Mode, Bot_API_Key, Webhook_Prod_URL…
- Settings (Edit Fields (Set)): sets 4 fields: Bot_Whitelist_Active, Allowed_Chat_IDs, File_Downloader_Prod_URL…
- Check Production Mode (If): checks a condition and branches into true / false
- Determine Incoming Request Source Type (Switch): routes items into 2 branches
- Set Production Webhook (HTTP Request): calls an HTTP API
- Set Development Webhook (HTTP Request): calls an HTTP API
- Telegram Event Handler (Switch): routes items into 2 branches
- Get a file (Telegram): work with file
- Return Webhook Status (HTTP Request): calls an HTTP API
- 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
Other Telegram + Mistral AI templates (16)
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (10)
- If
n8n-nodes-base.if - HTTP Request
n8n-nodes-base.httpRequest - Edit Fields (Set)
n8n-nodes-base.set - Switch
n8n-nodes-base.switch - Telegram
n8n-nodes-base.telegram - Code
n8n-nodes-base.code - Convert to File
n8n-nodes-base.convertToFile - Manual Trigger
n8n-nodes-base.manualTrigger - Respond to Webhook
n8n-nodes-base.respondToWebhook - Webhook
n8n-nodes-base.webhook
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…