Automation library · Documents and files

Extract Arabic text from PDFs with Mistral and Telegram Bot

Started by an incoming Telegram message, and works across Google Docs and Telegram. 18 steps, 1 branch, 1 loop or waits: a working afternoon to understand properly.

Medium

18 stepsMedium: a working afternoon
1Branch: places the flow splits
1Loop or waits
2Services it connects to

The flow

Starts it 1Logic 4Service 13

The steps in the order they run, from what starts it.

  1. 1Telegram Bot TriggerTelegram triggerStarts it
  2. 2Check If Document AttachedIfLogic
  3. 3Download Document from TelegramTelegramService
  4. 4Request PDF File FormatTelegramService
  5. 5Upload PDF to Mistral AIHttp RequestService
  6. 6Status: File Received (1/5)TelegramService
  7. 7Get Mistral Signed URLHttp RequestService
  8. 8Status: Sent to Processor (2/5)TelegramService
  9. 9Process OCR with MistralHttp RequestService
  10. 10Status: File Signed (3/5)TelegramService
  11. 11Parse OCR Results by PageCodeLogic
  12. 12Status: Results Received (4/5)TelegramService
  13. 13Aggregate OCR ResultsAggregateLogic
  14. 14Create New Google DocGoogle DocsService
  15. 15Status: Creating Document (5/5)TelegramService
  16. 16Process Document UpdatesSplit In BatchesLogic
  17. 17Update Google Doc with ContentGoogle DocsService
  18. 18Send Document Link to UserTelegramService

How it's built

Starts on
An incoming Telegram message
Steps
18, with 1 branch, 1 loop or waits
Size
Medium: a working afternoon
Connects to
Google Docs, Telegram
Model
None. This is plumbing, not judgement

Questions

What does it need to run?

An n8n account, plus your own Google Docs and Telegram accounts. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an incoming Telegram message.

Does it use AI?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

How long does it take to set up?

Plan an afternoon. 18 steps is enough that you should read each one before running it.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

Before you run it

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 18 steps before you point it at anything that matters.