Organize Gmail attachments in Google Drive folders based on sender’s email
📩🤖 This workflow automatically processes emails received in Gmail, extracts their attachments, and organizes them into specific folders in Google Drive based on the sender's email address. Note: The workflow avoids ...
Template notes
📩🤖 This workflow automatically processes emails received in Gmail, extracts their attachments, and organizes them into specific folders in Google Drive based on the sender's email address.
Note: The workflow avoids duplicates by checking folder existence before creation.
---
Benefits:
✅ Automated Organization: No need to manually sort or download email attachments. 📁 Sender-based Categorization: Files are stored in clearly labeled folders per sender, improving traceability and reducing clutter. ⏱ Time-saving: Reduces repetitive administrative tasks by automating the workflow end-to-end. 🔁 Modular and Scalable: Can be easily extended or reused with other services (e.g., Dropbox, S3) or integrated into larger document workflows. 🔐 Secure Cloud Storage: Attachments are safely backed up in Google Drive, minimizing the risk of data loss from email.
---
How It Works 1. Trigger: - The workflow can be triggered manually ("When clicking ‘Execute workflow’) or automatically (via Gmail Trigger polling emails every minute). 2. Email Processing: - Fetches emails (with attachments) from Gmail within a date range (default: July 6–9, 2025). - For each email, checks if it contains attachments (via IF node). 3. Folder Management: - Searches Google Drive for a folder named after the sender’s email address (under parent folder "Email Attachments"). - Creates the folder if it doesn’t exist. 4. Attachment Handling: - Splits out binary attachments, extracts filenames, and uploads each file to the sender’s dedicated folder in Google Drive. 5. Sub-Workflow Execution: - Uses Execute Workflow to modularize the upload process (reusable for other workflows).
---