Guide

How To Save Email Attachments To A Folder Automatically

Gmail and Outlook can’t do this on their own. For a few files, use Gmail’s Add to Drive button or Outlook’s Save to OneDrive. To automate it for Outlook, build a Power Automate flow that saves attachments from new emails to OneDrive or SharePoint. For Gmail, use Zapier or a small Google Apps Script. Either way, name files consistently.

How To Do It

These steps work with the tools you already have, whatever you use.

  1. For A Few Files, Save By Hand

    In Gmail, hover over the attachment and click Add to Drive. In Outlook, open the attachment menu and choose Save to OneDrive, or Save all attachments for several at once.

  2. Outlook: Build A Power Automate Flow

    At make.powerautomate.com, choose Create › Automated cloud flow and the trigger “When a new email arrives (V3).” Set Include Attachments to Yes, then add a OneDrive or SharePoint “Create file” step using the attachment name and content.

  3. Gmail: Use A Connector Or A Script

    Zapier has ready-made Gmail to Google Drive setups. If you’re comfortable with a little code, Google Apps Script can check a label on a timer and save new attachments to a Drive folder.

  4. Filter What Gets Saved

    Only save from a label or folder, such as a Bills label filled by a filter. Saving every attachment from every email fills your drive with junk.

  5. Use One Naming Pattern

    Date, sender, type and number: 2026-10-30_Acme_Invoice-1043.pdf. Files sort themselves and you can search for them any time.

What To Watch Out For

  • Flows save signature logos and inline images too. Filter by file type, like PDF only, or by size.
  • Two files with the same name either overwrite each other or fail. Add the date or time to the name.
  • Power Automate only handles new emails, not ones already in your mailbox.
  • Don’t auto-save attachments from unknown senders. Attachments are a common way malware gets in.

How Octopus Prime Does It

Your Octopus Prime agent opens each email, looks at what the attachment actually is, and saves it to the right folder with a clear name, one email at a time.

  1. Say The Rule In Words

    “Every vendor invoice PDF goes to Drive › Finance › Bills, named date, vendor and amount. Signed contracts go to the client’s folder.”

  2. A Repeating Task Does The Rounds

    Each morning, the agent goes through new mail with attachments in your Gmail or Outlook, signed in from the Vault.

  3. It Reads Before It Files

    It can tell a W-9 from a lunch menu and pulls the vendor and amount from the document to build the file name.

  4. A List In The Project Log

    It notes what it saved and where in the project log, so your bookkeeper knows what arrived this week.

From $10/month 30 days free No credit card

Questions

Can Gmail save attachments to Google Drive automatically?

Not by itself. Add to Drive is a manual button. To automate it, use a connector like Zapier or a Google Apps Script.

Can Outlook save attachments automatically?

Not with a built-in rule. Power Automate, included with many Microsoft 365 business plans, can save attachments from new emails to OneDrive or SharePoint.

Does the agent need my Google Drive password?

No. You connect the account once at Settings › Connections; the login stays in the Vault and the agent never sees your password.

Can it rename files based on what’s inside?

Yes. It reads the document and names it by your pattern, such as date, vendor and invoice number.

Let your agent do the steps. You approve what matters.

From $10/month 30 days free No credit card