# Extract timesheet data with Mistral and Gmail: n8n workflow

> Started by an event in a connected app, and works across Gmail and Google Drive. It hands the judgement calls to Mistral.

Source: https://millionrounds.com/workflow/extract-timesheet-data-with-mistral-and-gmail (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Documents and files](https://millionrounds.com/workflows?category=Documents+and+files#library)

# 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.

Large Calls a model: Mistral

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fextract-timesheet-data-with-mistral-and-gmail)

**23 steps** Large: read it before trusting it with anything live

**1** Branch: places the flow splits

**1** Loop or waits

**2** Services it connects to

## The flow

Starts it 1 Model 2 Logic 11 Service 9

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

- 1 **When clicking ‘Test workflow’** Manual trigger *Starts it*
- 2 **Mistral Cloud Chat Model2** Lm Chat Mistral Cloud *Model*
- 3 **Search files and folders** Google Drive *Service*
- 4 **AI Agent to clean and format exctracred data** Agent *Model*
- 5 **Loop Over Items2** Split In Batches *Logic*
- 6 **clean ai output** Code *Logic*
- 7 **Set File ID1** Set *Logic*
- 8 **json to html** Code *Logic*
- 9 **Download File** Google Drive *Service*
- 10 **Send a message** Gmail *Service*
- 11 **Switch File Type** Switch *Logic*
- 12 **Upload file** Google Drive *Service*
- 13 **Edit Fields3** Set *Logic*
- 14 **Read Spreadsheet File** Spreadsheet File *Service*
- 15 **HTTP Request1** Http Request *Service*
- 16 **Mistral Upload** Http Request *Service*
- 17 **Clean excel data format** Code *Logic*
- 18 **normalize output2** Set *Logic*
- 19 **Mistral Signed URL** Http Request *Service*
- 20 **Aggregate** Aggregate *Logic*
- 21 **Mistral DOC OCR** Http Request *Service*
- 22 **normalize output** Set *Logic*
- 23 **normalize output1** Set *Logic*

## 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.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fextract-timesheet-data-with-mistral-and-gmail)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Gmail](https://millionrounds.com/workflows?service=Gmail#library)[Google Drive](https://millionrounds.com/workflows?service=Google+Drive#library)

## Workflows like it

Also documents and files, with the same services where possible, closest in size first.

- [**Chat with Supabase** 23 steps · calls a model · Gmail, Google Drive](https://millionrounds.com/workflow/chat-with-supabase)
- [**Process documents & build semantic search with OpenAI** 23 steps · calls a model · Google Drive, Qdrant](https://millionrounds.com/workflow/process-documents-and-build-semantic-search-with-openai)
- [**Process documents with Google Drive and OpenAI** 23 steps · calls a model · Google Drive, Supabase vectors](https://millionrounds.com/workflow/process-documents-with-google-drive-and-openai)
- [**Process signed DocuSign contracts with Supabase and Claude** 23 steps · Gmail, Outlook](https://millionrounds.com/workflow/process-signed-docusign-contracts-with-supabase-and-claude)
- [**Save & organize LINE message files in Google Drive with Sheets** 23 steps · Google Drive, Google Sheets](https://millionrounds.com/workflow/save-and-organize-line-message-files-in-google-drive-with-sh)
- [**Automate document ingestion & RAG system with Google Drive** 24 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/automate-document-ingestion-and-rag-system-with-google-drive)
