Email Attachment Organiser
Example prompt: "When I receive an email with a PDF or spreadsheet attachment, save it to the right Google Drive folder based on the sender, log the file name and date to a Google Sheet, and message me on Slack with a link."
How to automate email attachment filing with GloriaMundo
The Problem
Attachments pile up. Contracts arrive from one client, invoices from another, reports from a third — all landing in your inbox with no organisation beyond the email thread they came in on. You download them when you remember, dump them into a Downloads folder, and then spend 10 minutes hunting for that specific PDF when you actually need it. Meanwhile, important attachments you never downloaded sit buried in old emails. The more attachments you receive, the worse it gets, and there is no reliable record of what arrived when.
How GloriaMundo Solves It
We build a workflow that watches your Gmail for incoming emails with attachments matching your criteria — file type, sender domain, or label. When a match arrives, an integration step downloads the attachment and saves it to a Google Drive folder, using the sender or subject to pick the right subfolder. A code step normalises the file name so it is consistent and searchable. An integration step logs the file name, sender, date, and Drive link to a Google Sheet so you have a running manifest of everything that has been filed. Finally, a Slack message lets you know what was saved and where. Glass Box preview shows you the filing rules before anything moves, so you can adjust which senders or file types are included.
Example Workflow Steps
- Trigger (composio_event): New email arrives in Gmail with an attachment matching your criteria (PDF, XLSX, DOCX).
- Step 1 (integration): Download the attachment from the Gmail message.
- Step 2 (code): Normalise the file name and determine the correct Drive subfolder based on the sender domain or email label.
- Step 3 (integration): Upload the file to the appropriate Google Drive folder.
- Step 4 (integration): Append a row to a Google Sheet with the file name, sender, date received, and a direct link to the Drive file.
- Step 5 (integration): Send a Slack notification with the file name and Drive link.
Integrations Used
- Gmail — source of incoming emails and attachments
- Google Drive — destination for organised file storage
- Google Sheets — running log of all filed attachments
- Slack — notification when a new attachment is saved
Who This Is For
Freelancers, accountants, project managers, and anyone who receives 10+ email attachments per week and wastes time downloading, renaming, and filing them manually. Particularly useful for roles that need an audit trail of received documents.
Time & Cost Saved
Manually downloading, renaming, and organising attachments takes roughly 2-3 minutes per file. At 10 attachments per week, that is 20-30 minutes of filing work — plus the hidden cost of searching for misfiled documents later. Over a month, this workflow saves 2-3 hours of tedious file management and gives you a searchable spreadsheet log as a bonus. The workflow uses integration and code steps, costing a few credits per triggered run.