PERSONAL PRODUCTIVITY
Auto-File Gmail Attachments into Smart Drive Folders
Watches your inbox, classifies each attachment with AI, and files it into the right Google Drive folder — no manual sorting, no lost invoices.
How it runs
The automated pipeline, trigger to output.
- TriggerNew Gmail email receivedGmail
- LogicSkip if no attachment
- ActionDownload attachment from GmailGmail
- LogicClassify document & pick target folderOpenAI
- OutputUpload file to matching Drive folderGoogle Drive
What it does
This workflow turns your inbox into a self-organizing filing cabinet. Whenever a new email arrives with an attachment, it pulls the file down, reads the email's subject, sender, and body, and asks an OpenAI model to decide where the document belongs — Invoices, Contracts, Receipts, Resumes, or any folder taxonomy you define. It then uploads the attachment into the matching Google Drive folder, renaming it with a clean, consistent convention (for example `2026-06-16__Acme-Corp__invoice.pdf`). Emails with no attachments are skipped, so the workflow only acts when there is something to file.
When to use it
Reach for this when attachments pile up in your inbox faster than you can sort them: finance teams drowning in vendor invoices and receipts, recruiters collecting resumes, operations staff archiving signed contracts and statements of work, or anyone who keeps "I'll file it later" emails that never get filed. It is especially useful when the right destination depends on what the document actually is rather than who sent it — the AI classification step reads content, not just the sender address, so a receipt forwarded from a colleague still lands in Receipts.
How it works
The trigger fires on each new Gmail message. A filter check short-circuits anything without an attachment. For qualifying messages, the workflow downloads the attachment and passes the email metadata (subject, sender, snippet) plus the filename to OpenAI, which returns a target folder name from your predefined list and a normalized filename. Finally the file is uploaded to that Google Drive folder. You configure the folder taxonomy and naming pattern once in the OpenAI step's prompt; everything after that runs unattended on Sim. Because it runs on Hive's own engine, the Gmail watch and Drive writes execute against live credentials in your colony — not a brittle third-party relay.
Set it up
What you configure once, before turning it on.
- 1Connect GmailRead, draft, send, label.
- 2Connect OpenAIModels, embeddings, files.
- 3Connect Google DriveDocs, sheets, slides, files.
- 4Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
- 5Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
- 6Test, then turn it onRun once against a sample, confirm the output, then enable the trigger.
More Personal Productivity workflows
Log Outlook promises to Airtable with per-recipient commitment rollups
Captures promises from sent Outlook mail into an Airtable base, linking each commitment to a recipient record so you get a running per-contact view of everything you've promised…
Turn Outlook email promises into assigned Asana tasks with due dates
When you send an email containing a commitment, an LLM extracts the promise and its deadline and creates a corresponding Asana task assigned to you with the due date set.
Auto-decline low-priority invites that collide with deep-work blocks
When a new calendar invite lands on top of a protected deep-work block, an AI scores its priority and auto-declines low-value meetings with a polite note proposing alternative…
Decline focus-block meetings and auto-propose a free slot via Notion log
When a low-priority invite hits a focus block, it declines the meeting, finds your next genuinely free slot, replies with a counter-proposal.
Monthly Meeting Cost Report by Email
On the first of each month, tallies every recurring meeting's total person-hours across the team, converts to an estimated dollar cost.
Auto-create weekly focus blocks around existing meetings and guard them
Every Sunday an agent reads next week's confirmed meetings, carves protected deep-work blocks into the open gaps, sets your Slack status to defend them.
Run it inside a business
This workflow drops into a full company template. Import the org, and this is one of the playbooks its agents run.

Run this workflow in your colony.
14-day trial. No DevOps. No Sales call. Provisioned in under a minute.
