# Nested PDF analysis with Mistral and OneDrive: n8n workflow

> Started by a clock, and works across n8n data table. It hands the judgement calls to Mistral.

Source: https://millionrounds.com/workflow/nested-pdf-analysis-with-mistral-and-onedrive (Millionrounds; every figure on the page links to its filing or article)

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

# Nested PDF analysis with Mistral and OneDrive

Started by a clock, and works across n8n data table. It hands the judgement calls to Mistral. 41 steps, 9 branches, 4 loops 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%2Fnested-pdf-analysis-with-mistral-and-onedrive)

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

**9** Branches: places the flow splits

**4** Loops or waits

**1** Service it connects to

## The flow

Starts it 1 Model 7 Logic 19 Service 14

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

- 1 **Schedule Trigger1** Schedule trigger *Starts it*
- 2 **Mistral Cloud Chat Model** Lm Chat Mistral Cloud *Model*
- 3 **Search for Main Folder** Microsoft One Drive *Service*
- 4 **Get row(s)** Data Table *Service*
- 5 **Document Information** Agent *Model*
- 6 **Document LLM Chain** Chain Llm *Model*
- 7 **Overview** Agent *Model*
- 8 **Overview LLM Chain** Chain Llm *Model*
- 9 **Structured Output Parser1** Output Parser Structured *Model*
- 10 **Structured Output Parser** Output Parser Structured *Model*
- 11 **Get items in a folder1** Microsoft One Drive *Service*
- 12 **Loop Over Items** Split In Batches *Logic*
- 13 **Merge1** Merge *Logic*
- 14 **If PDF 1** If *Logic*
- 15 **Compare Datasets** Compare Datasets *Service*
- 16 **Set File ID 1** Set *Logic*
- 17 **Aggregate** Aggregate *Logic*
- 18 **Merge** Merge *Logic*
- 19 **Get items in a folder2** Microsoft One Drive *Service*
- 20 **Loop Over Items 3** Split In Batches *Logic*
- 21 **Insert row** Data Table *Service*
- 22 **If Size** If *Logic*
- 23 **If PDF 2** If *Logic*
- 24 **2nd Loop Over Items1** Split In Batches *Logic*
- 25 **Set File ID 3** Set *Logic*
- 26 **Loop Over Items 2** Split In Batches *Logic*
- 27 **Get items in a folder3** Microsoft One Drive *Service*
- 28 **Download file** Microsoft One Drive *Service*
- 29 **Set File ID 2** Set *Logic*
- 30 **If PDF 3** If *Logic*
- 31 **Extract PDF Text** Extract From File *Service*
- 32 **Get items in a folder4** Microsoft One Drive *Service*
- 33 **If PDF 4** If *Logic*
- 34 **Get items in a folder5** Microsoft One Drive *Service*
- 35 **If PDF 5** If *Logic*
- 36 **Get items in a folder6** Microsoft One Drive *Service*
- 37 **If PDF 6** If *Logic*
- 38 **Get items in a folder7** Microsoft One Drive *Service*
- 39 **If PDF 7** If *Logic*
- 40 **Get items in a folder9** Microsoft One Drive *Service*
- 41 **If PDF 8** If *Logic*

## How it's built

- **Starts on:** A clock
- **Steps:** 41, with 9 branches, 4 loops or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** n8n data table
- **Model:** Mistral

## Questions

What does it need to run?

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

What starts it?

It starts on a clock.

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 41 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 41 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%2Fnested-pdf-analysis-with-mistral-and-onedrive)
- **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.

[n8n data table](https://millionrounds.com/workflows?service=n8n+data+table#library)

## Workflows like it

Also research and reporting, with the same services where possible, closest in size first.

- [**Advanced multi-source AI research with Bright Data and OpenAI** 37 steps · calls a model · Email, Redis](https://millionrounds.com/workflow/advanced-multi-source-ai-research-with-bright-data-and-opena)
- [**Send weekly TMetric time reports to employees on Slack** 34 steps · Slack, n8n data table](https://millionrounds.com/workflow/send-weekly-tmetric-time-reports-to-employees-on-slack)
- [**Orchestrate sustainability lifecycle analytics with OpenAI** 33 steps · calls a model · Gmail, Slack](https://millionrounds.com/workflow/orchestrate-sustainability-lifecycle-analytics-with-openai)
- [**Automate ESG compliance routing and reporting with OpenAI** 30 steps · calls a model · Airtable, Gmail](https://millionrounds.com/workflow/automate-esg-compliance-routing-and-reporting-with-openai)
- [**AI model usage dashboard: Track token metrics** 24 steps · calls a model · n8n data table](https://millionrounds.com/workflow/ai-model-usage-dashboard-track-token-metrics)
- [**Track competitor X announcements with Bright Data and OpenAI** 24 steps · calls a model · Google Sheets, Slack](https://millionrounds.com/workflow/track-competitor-x-announcements-with-bright-data-and-openai)
