Automation library · Documents and files

Extract timesheet data with Mistral and Gmail

Started by an event in a connected app, and works across Gmail and Google Drive. It hands the judgement calls to Mistral. 23 steps, 1 branch, 1 loop or waits: large, and worth reading before you trust it with anything live.

LargeCalls a model: Mistral

23 stepsLarge: read it before trusting it with anything live
1Branch: places the flow splits
1Loop or waits
2Services it connects to

The flow

Starts it 1Model 2Logic 11Service 9

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

  1. 1When clicking ‘Test workflow’Manual triggerStarts it
  2. 2Mistral Cloud Chat Model2Lm Chat Mistral CloudModel
  3. 3Search files and foldersGoogle DriveService
  4. 4AI Agent to clean and format exctracred dataAgentModel
  5. 5Loop Over Items2Split In BatchesLogic
  6. 6clean ai outputCodeLogic
  7. 7Set File ID1SetLogic
  8. 8json to htmlCodeLogic
  9. 9Download FileGoogle DriveService
  10. 10Send a messageGmailService
  11. 11Switch File TypeSwitchLogic
  12. 12Upload fileGoogle DriveService
  13. 13Edit Fields3SetLogic
  14. 14Read Spreadsheet FileSpreadsheet FileService
  15. 15HTTP Request1Http RequestService
  16. 16Mistral UploadHttp RequestService
  17. 17Clean excel data formatCodeLogic
  18. 18normalize output2SetLogic
  19. 19Mistral Signed URLHttp RequestService
  20. 20AggregateAggregateLogic
  21. 21Mistral DOC OCRHttp RequestService
  22. 22normalize outputSetLogic
  23. 23normalize output1SetLogic

How it's built

Starts on
An event in a connected app
Steps
23, with 1 branch, 1 loop or waits
Size
Large: read it before trusting it with anything live
Connects to
Gmail, Google Drive
Model
Mistral

Questions

What does it need to run?

An n8n account, plus your own Gmail and Google Drive accounts, and a key for Mistral. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an event in a connected app.

Does it use AI?

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

How long does it take to set up?

Take your time. At 23 steps it is large: read it before trusting it with anything live.

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 23 steps before you point it at anything that matters.