Auto File Organizer for Google Drive: Sort PDFs, Images & Documents by Type
Go to WorkflowDescription
Description:
This ready-to-deploy n8n automation template smartly detects and classifies files uploaded to a specified Google Drive folder based on MIME type. It automatically moves each file into its correct destination folder: Documents, PDFs, or Images β ensuring a clean and organized Drive, effortlessly.
Perfect for remote teams, admins, educators, legal pros, and automation-focused operations, this workflow eliminates manual sorting and saves hours of repetitive work.
What This Template Does (Step-by-Step)
βοΈManual Trigger: Launch the workflow on demand using the "Execute Workflow" trigger.
π Search Files in Source Folder (Google Drive): Lists all files inside your chosen folder (e.g., "Uploads").
π Loop Over Files (SplitInBatches): Iterates through each file one-by-one to ensure reliability.
π₯ Download File (Google Drive): Retrieves file metadata and MIME type required for filtering.
π§ Smart File Type Detection via If Nodes
application/json β Move to Documents folder
application/pdf β Move to PDFs folder
image/jpeg β Move to Images folder
(Easily customizable to support additional types like PNG, DOCX, etc.)
π Move Files to Designated Folders: Uses Google Drive API to relocate each file to its proper location.
π Loop Returns for Next File
After each move, the loop picks the next file in queue.
Key Features
βοΈ Google Drive API v3 Integration
π OAuth2 for secure access
π MIME-typeβbased routing logic
π Batch-safe with looping logic
β
File properties are preserved
π Auto-removal from source after sorting
Required Integration
Google Drive (OAuth2)
Use Cases
Auto-organize client uploads
Separate scanned PDFs, images, or forms
Route invoices, receipts, or contracts into folders
Automatically sort uploaded assignments or resources
Maintain structured cloud storage without manual intervention
Why Use This Template?
β
No-code deployment
β
Saves hours of manual work
β
Works across teams, departments, or shared Drives
β
Easy to expand with more file types or routing rules
β
Keeps your Drive clean, fast, and organized