Automation library · Documents and files

Document parsing & data extraction with Mistral

Started by an incoming Telegram message, and works across Gmail and Telegram. It hands the judgement calls to Mistral and OpenAI. 18 steps: a working afternoon to understand properly.

MediumCalls a model: Mistral, OpenAI

18 stepsMedium: a working afternoon
0Branches: places the flow splits
0Loops or waits
2Services it connects to

The flow

Starts it 2Model 4Logic 4Service 8

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

  1. 1Mistral Cloud Chat Model1Lm Chat Mistral CloudModel
  2. 2GmailGmailService
  3. 3OpenAI Chat ModelLm Chat Open AiModel
  4. 4Telegram TriggerTelegram triggerStarts it
  5. 5Download FileHttp RequestService
  6. 6Send ConfirmationTelegramService
  7. 7Telegram1TelegramService
  8. 8On form submissionForm triggerStarts it
  9. 9AI AgentAgentModel
  10. 10AI Agent1AgentModel
  11. 11TelegramTelegramService
  12. 12CodeCodeLogic
  13. 13Edit FieldsSetLogic
  14. 14send pdf to MistralHttp RequestService
  15. 15MarkdownMarkdownLogic
  16. 16mistral - get signed urlHttp RequestService
  17. 17Edit Fields2SetLogic
  18. 18Get Parsed InvoiceHttp RequestService

How it's built

Starts on
An incoming Telegram message
Steps
18
Size
Medium: a working afternoon
Connects to
Gmail, Telegram
Model
Mistral, OpenAI

Questions

What does it need to run?

An n8n account, plus your own Gmail and Telegram accounts, and a key for Mistral and OpenAI. 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?

Yes. It calls Mistral and OpenAI. Model calls are billed by the provider, not by n8n.

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.