Parse PDF, DOCX & images with Mistral OCR via Google Drive with Slack alerts
Ready for 3.0What this workflow does
This workflow has 33 nodes and runs on Google Drive events (file created) (plus 1 other trigger). Along the way it connects Google Drive, Google Sheets and Slack. It also calls api.mistral.ai over HTTP.
How it runs
Trigger: On Google Drive events (file created) (plus 1 other trigger).
- Loop over Items (Loop Over Items (Split in Batches)): loops over the items in batches
- Set File ID (Edit Fields (Set)): sets 5 fields: file_id, file_name, dest_folder…
- Workflow Configuration (Edit Fields (Set)): sets 2 fields: google_sheet_id, dest_folder_id
- Create Folder (Google Drive): work with folder
- Create Entry in sheet (Google Sheets): append or update
- Copy file (Google Drive): copy
- Add Source File in Sheet (Google Sheets): append or update
- Determine Document Type (Switch): routes items into 2 branches
- Use Document Url (Edit Fields (Set)): sets 1 field: document_type
- Use Image Url (Edit Fields (Set)): sets 1 field: document_type
…plus 21 more steps. See the full node list below.
Services it uses
HTTP calls to: api.mistral.ai
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (13)
- Google Drive Trigger
n8n-nodes-base.googleDriveTrigger - Edit Fields (Set)
n8n-nodes-base.set - Convert to File
n8n-nodes-base.convertToFile - Merge
n8n-nodes-base.merge - Google Drive
n8n-nodes-base.googleDrive - Split Out
n8n-nodes-base.splitOut - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - Aggregate
n8n-nodes-base.aggregate - Google Sheets
n8n-nodes-base.googleSheets - Switch
n8n-nodes-base.switch - Slack
n8n-nodes-base.slack - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches
From the author
Use cases Monitor Google Drive folder, parsing PDF, DOCX and image file into a destination folder, ready for further processing (e.g. RAG ingestion, translation, etc.) Keep processing log in Google Sheet and send Slack notifications. How it works Trigger:…