Classify documents with Gemini and organize them in Google Drive
Who is this for Accountants and office managers who want to automatically classify and organize documents in Google Drive. What this workflow does Retrieves files from a Google Drive inbox folder, classifies each using Gemini 2.5 Flash OCR, then renames, moves, and logs them. Get inbox files → Loop through files → Download file fetches files one by one. Check file type routes PDFs and images to Convert to Base64; unsupported formats go to Handle unsupported format → Send error notification → Log
At a glance
Classify documents with Gemini and organize them in Google Drive is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects Gmail, Google Sheets, Google Drive, Google Calendar. It's free to download. Follow the 5-step import below to go live in minutes.
- Platform
- n8n
- Connects
- Gmail, Google Sheets, Google Drive, Google Calendar, Gemini
- Modules
- 20
- Price
- Free
- Version
- v1.0

About this workflow
Who is this for Accountants and office managers who want to automatically classify and organize documents in Google Drive. What this workflow does Retrieves files from a Google Drive inbox folder, classifies each using Gemini 2.5 Flash OCR, then renames, moves, and logs them. Get inbox files → Loop through files → Download file fetches files one by one. Check file type routes PDFs and images to Convert to Base64; unsupported formats go to Handle unsupported format → Send error notification → Log error to sheet for manual review. Gemini OCR classification classifies the document and Parse AI response extracts the result. If Classification check passes, Generate filename → Rename file → Move to folder organizes the file, and Log to spreadsheet records it in Google Sheets. If Has deadline? finds a due date, Add to calendar creates a Google Calendar event and Send deadline alert sends a Gmail reminder. How to set up 1. Set your inbox folder ID in Get inbox files. 2. Add a Gemini API key as a Query Auth credential (name: key). 3. Set folder IDs for each document type in Generate filename. 4. Set your spreadsheet ID in Log to spreadsheet and Log error to sheet. 5. Set calendar and email in Add to calendar, Send deadline alert, and Send error notification. Requirements - Google Drive, Google Sheets, Google Calendar, and Gmail accounts - Gemini API key (Google AI Studio) How to customize - Edit the prompt in Gemini OCR classification to change document categories. - Adjust the confidence threshold (default: 0.6) in Parse AI response. - Modify the naming pattern in Generate filename.
How to import this n8n workflow
- 1
Download the workflow JSON file after purchase.
- 2
Open n8n → click the menu → Import from File.
- 3
Select the downloaded JSON and import.
- 4
Set up credentials for each node that requires them.
- 5
Click Execute Workflow to test, then activate.
Setup guide
Setup guide included
Purchase to unlock the full step-by-step guide
Related N8n workflows
Send new e-mail to Gmail from new contact status in folk
Extract product info from website screenshots with Dumpling AI + Sheets
Add new ActiveCampaign subscribers to a Google Sheets spreadsheet
Analyze images and update Google Sheets rows based on filtered results
Generate product mockups with Nano Banana (Gemini 2.5 Flash Image)
Send new Facebook Lead Ads leads to Google Sheets and notify via Slack
Analyze Facebook Ads & send insights to Google Sheets with Gemini AI
Daily task reminder system: Airtable to Slack automated notifications
Reviews
No reviews yet
Be the first to buy and share your experience.
Leave a review
Sign in to share your experience with this workflow.
Create a free account to purchase workflows.
- JSON blueprint — instant download
- Setup guide PDF included
- 5 downloads · valid 30 days
- Works with n8n
Need help setting this up?
Book a 3-hour live setup session with an Agility consultant.
- Configure live on Google Meet / Zoom
- Free follow-up if workflow has defects
- Platform expert assigned to you