Gmail Attachment Classification and Automatic Saving to Google Drive Workflow
This workflow is designed to automatically monitor unread emails in a specific Gmail account, download attachments from specific senders, and intelligently classify them based on attachment size. Large files will trigger a notification alert, medium-sized files will be automatically uploaded to a designated Google Drive folder, while small files will be ignored. This enables efficient management and automatic archiving of email attachments, helping users save time and effort, and enhancing office productivity.

Workflow Name
Gmail Attachment Classification and Automatic Saving to Google Drive Workflow
Key Features and Highlights
This workflow automatically monitors unread emails from a specified sender (ray.thomas@charter.com) in a designated Gmail account, downloads all attachments from these emails, and intelligently classifies them based on file size. Large files trigger notification alerts, medium-sized files are automatically uploaded to a specified Google Drive folder, and small files are ignored. This enables efficient management and automated archiving of email attachments.
Core Problems Addressed
- Automates the processing of email attachments from a specific sender, eliminating the need for manual downloading and sorting.
- Classifies attachments by size to optimize storage allocation and notification strategies.
- Prevents missing important large attachments by ensuring timely alerts.
Use Cases
- Enterprises or individuals needing automated management of email attachments from fixed senders.
- Teams requiring centralized storage of important attachments in Google Drive for easy sharing and future reference.
- Scenarios where attachments vary in size and require automatic classification to avoid storage waste or overlooking critical files.
Main Workflow Steps
- Use the Gmail Trigger node to monitor unread emails from the specified sender every minute.
- Download all attachments from the emails and use the Split Out node to separate multiple attachments into individual processing items.
- Use the Switch node to classify attachments based on size:
- Attachments larger than 300MB trigger the “Send Large File Notification” node (example action, extensible).
- Attachments larger than 10MB and up to 300MB are automatically uploaded to a designated Google Drive folder.
- Attachments 10MB or smaller are ignored (example action, extensible).
- After uploading, attachments are saved into a specified “misc” folder in Google Drive for unified management.
Systems or Services Involved
- Gmail (retrieves emails from the specified sender and downloads attachments)
- Google Drive (stores and manages attachments)
- Built-in n8n nodes (Split Out, Switch, notification, and other auxiliary workflow nodes)
Target Users and Value
- Corporate administrative staff, project managers, or anyone needing automated handling of specific email attachments.
- Users aiming to reduce daily workload related to email attachment management through automation, thereby improving office efficiency.
- Scenarios requiring differentiated handling of attachments by size to avoid storage waste or missing important files.
This workflow centers on intelligent automation to help users manage email attachments efficiently and securely, suitable for a variety of office automation needs.