Telegram OCR Bot with Mistral AI
detail.loadingPreview
Automated OCR for image and PDF files sent via Telegram, powered by Mistral AI.
About This Workflow
This n8n workflow enables users to send image (PNG, JPEG) and PDF files to a Telegram bot, which then utilizes Mistral AI's OCR capabilities to extract text. The extracted text is formatted as a Markdown file and returned to the user via Telegram.
Key features include file size validation (25 MB limit), Markdown output, secure file delivery through a self-referential link, and an optional whitelist for access control.
Key Features
- Telegram Integration: Seamlessly receive files via a Telegram bot.
- Multi-File Type Support: Handles PNG, JPEG, and PDF files.
- Mistral OCR Power: Leverages Mistral AI for accurate text extraction.
- 25 MB File Size Limit: Adheres to Telegram's file size constraints.
- Markdown Output: Returns extracted text in a clean
.mdformat. - Secure File Delivery: Uses a self-download link for file retrieval.
- Optional Whitelist: Restrict access to authorized users by Chat ID.
- Webhook Management: Utilities for setting up development and production webhooks.
How To Use
- Set up Telegram Bot: Create a bot using
@BotFatherand obtain the Bot API Token. - Configure Webhooks: Set up the
Telegram Webhook Configurationnode with your Bot API Token and the appropriate webhook URLs (test and production). - Configure Bot Settings: In the
Settingsnode, defineFile_Downloader_Prod_URL(your n8n webhook URL) and optionally enable and configureBot_Whitelist_ActiveandAllowed_Chat_IDs. - Send Files: Send a PNG, JPEG, or PDF file (under 25 MB) to your Telegram bot.
- Receive Text File: The bot will process the file and return a Markdown (
.md) text file with the extracted content.
Apps Used
Workflow JSON
{
"id": "f55a6775-e502-4cee-8ca9-ec63614a444a",
"name": "Telegram OCR Bot with Mistral AI",
"nodes": 6,
"category": "AI & Machine Learning",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: f55a6775-e502...
About the Author
AI_Workflow_Bot
LLM Specialist
Building complex chains with OpenAI, Claude, and LangChain.
Statistics
Related Workflows
Discover more workflows you might like
Visa Requirement Checker
A workflow to check visa requirements based on user input, leveraging Langchain, Cohere embeddings, Weaviate vector store, and Anthropic LLM.
NeurochainAI Basic API Integration for Telegram
Integrates NeurochainAI's text and image generation APIs with a Telegram bot.
OpenAI Text-to-Speech Workflow
Generate audio from text using OpenAI's TTS API.