Automate deep PDF analysis across nested OneDrive folders using this advanced n8n workflow. It extracts text, summarizes documents with Mistral AI, and stores structured data in an n8n Data Table.
Download this n8n workflow template and start using it instantly.
Organizations needing automated extraction and summarization of documents stored in Microsoft OneDrive.
Users managing large repositories of PDF files who want structured data (dates, locations, key findings) extracted instantly.
Technical specialists looking for sophisticated n8n templates integrating cloud storage, PDF processing, and advanced LLM chains.
Automation experts requiring a robust n8n workflow for multi-level folder traversal and conditional processing.
This powerful n8n workflow is designed to solve the challenge of automatically processing unstructured data locked within documents spread across deeply nested folder structures in OneDrive. By leveraging the flexibility of the n8n platform, this solution first scans up to eight levels of subfolders for new PDF documents. It then intelligently filters out files that have already been processed and those exceeding a 10MB size limit. The core value lies in the subsequent AI pipeline: downloaded PDFs are parsed, and the extracted text is fed into a Mistral AI model via the LangChain n8n node, which performs two critical tasks: generating a concise, markdown-formatted executive summary and extracting structured metadata (dates, locations, key personnel). Finally, this rich, structured information is automatically mapped and inserted into an n8n Data Table, creating a searchable, organized repository of document insights. This complex n8n template transforms cloud storage into an intelligent, actionable knowledge base, optimizing productivity by handling tedious document review.
The execution of this n8n workflow is initiated by the Schedule Trigger1 n8n trigger, set to run daily at 8:00 PM.
Get row(s) n8n node.Get items in a folder n8n node instances recursively scans up to eight levels of subfolders within the main OneDrive folder.If PDF X n8n node filters the results, ensuring only documents with the application/pdf MIME type proceed. All valid results are then combined using the Merge n8n node.Compare Datasets n8n node, which filters out files already present in the Data Table, guaranteeing the n8n workflow only processes unique, new documents.Set File ID nodes to create useful path and file name variables. The If Size n8n node ensures files are under the 10MB limit to prevent oversized data from overwhelming the LLM service.Download file n8n node retrieves the document from OneDrive.Extract PDF Text n8n node converts the binary PDF into raw text data.Overview (Summary, Key Findings, Scope), and the second focuses on structured Document Information (Date, Location, Personnel).Structured Output Parser n8n nodes ensure the AI output is strictly converted into predictable JSON objects.Insert row n8n node, completing this automated n8n workflow cycle.To use this sophisticated n8n workflow, follow these steps:
Search for Main Folder, Get items in a folder, and Download file).Mistral Cloud Chat Model n8n node.Get row(s) and Insert row n8n nodes are connected to a running n8n Data Table.Insert row n8n node: Summary, KeyFindings, Scope, Date, Location, FileName, and Path. The table ID reference in the n8n node must be updated to match your new Data Table.Search for Main Folder n8n node and set the exact name of the OneDrive folder you wish to scan (currently set to 'PdM Test Folder'). Schedule Trigger (n8n trigger): Initiates the n8n workflow run daily at 20:00 (8 PM).
Microsoft OneDrive n8n node: Manages all file operations, including searching for the main directory, traversing up to eight levels of nested subfolders, and performing the Download file operation.
Data Table n8n node: Used as the database layer. Get row(s) retrieves analyzed file paths for deduplication, and Insert row stores the final AI-extracted summary data, utilizing dynamic expressions for mapping.
If n8n node: Performs conditional routing. Filters files based on MIME type (application/pdf) and uses If Size to block files over 10MB from proceeding to the LLM pipeline.
Compare Datasets n8n node: Compares the newly found PDFs against the list retrieved from the Data Table, ensuring the n8n workflow only processes documents that have not been analyzed yet.
Extract PDF Text n8n node: Converts the binary PDF file content downloaded from OneDrive into readable text that can be consumed by the AI models.
Mistral Cloud Chat Model n8n node: The core LLM provider. Uses the mistral-small-latest model for complex document summarization and key data extraction within this n8n template.
Agent n8n node (Overview, Document Information): Configures specific AI personalities (like the 'Document Review Specialist AI') using detailed system messages and constraints to guide the Mistral LLM in producing highly structured, analytical outputs. This is a critical LangChain n8n node component.
Use this powerful n8n workflow to convert natural language questions into Google Sheets Query Language (GQL) using GPT-4o. Automate data extraction and reporting with these advanced n8n templates.

Use this advanced n8n workflow to manage Todoist tasks, projects, and labels using natural language via GPT-4o. A powerful n8n template for task automation and agent orchestration.

Instantly query Pipedrive lead data using natural language with this advanced n8n workflow. Integrate GPT-4o-mini and the Pipedrive n8n node for data-grounded CRM insights.

Deploy a powerful n8n workflow for automated network vulnerability scanning using Nmap, NVD CVE enrichment, and PDF report generation. Secure and highly customizable n8n templates.

Streamline your SOC incident response using this comprehensive n8n workflow. Instantly notify Slack on new TheHive cases and enable analysts to update severity, status, and assignees directly from interactive Slack messages. This powerful n8n template speeds up case resolution.









































