Develofly Autopilot
Templates › Email & Inbox › Auto-attachment saver

Auto-attachment saver

Save inbound attachments to Google Drive (or a folder) by rule.

Email & InboxEvery hour, or trigger: When a new email arrives

Download the app, freeOpen in Autopilot

Auto-attachment saver: what it does, step by step

What it does

Saves attachments from emails that match your rules (sender, subject, file types) to Google Drive or a folder on this computer, and logs each file. Google Drive works through a small Apps Script web app you deploy once in your own Google account (the script is in the guide, section “Save files to Google Drive”); no Google password is stored. The Drive folder can use {{sender}} and {{date}}. Emails handled before are skipped.

How it works

  1. Signs in to your email
  2. Reads your inbox
  3. Decides what to do next
  4. Goes through each item
  5. Saves the files where you want them
  6. Picks out the values
  7. Adds rows to your sheet
  8. Files the email
All 16 steps (as they appear in the app)
  1. Email account {{email_address}} ({{email_provider}})
  2. Check INBOX (1 steps each)
  3. If email_message_id seen in past runs
  4. sender = {{email_from_name}}
  5. If sender empty
  6. sender = {{email_from}}
  7. For each att in {{email_attachments}} (1 steps)
  8. If att matches \.({{file_types}})$
  9. If save_to equals Google Drive
  10. Save files to google drive
  11. If save_to equals A folder on this computer
  12. Save files to {{local_folder}}
  13. Find /[/\\](?:\d+_)?([^/\\]+)$/ → _file
  14. Add row: file, from, subject, received, saved_to
  15. If move_to not empty
  16. Mark email move → {{move_to}}

Get this template

1. Download Develofly Autopilot: free, for Ubuntu and other Linux desktops.

Download Develofly Autopilot

2. The app comes with every template, so this one is already in your library. Click below to open it (or find it under Templates).

Open in Autopilot

What you need

  • An email account (Gmail, Outlook, Yahoo or any IMAP)

You fill in: Email provider, Your email address, App password, From contains (optional), Subject contains (optional), File types, Look back (days), Save to, Google Drive: Apps Script web-app address, Google Drive folder, Folder on this computer, Then move the email to (optional).

Make it yours

Every step is editable in the app: change the site, the columns, the schedule, or chain it with other bots. Run it once, on a schedule, or sell it as your own bot.

More Email & Inbox templates

AI email triage and labellingAI sorts, scores and summarises your unread email.Daily AI email digestA daily AI summary of your unread email.Inbox assistantAI drafts replies to your email; you approve each one.Invoice and attachment downloaderSaves invoice attachments from your inbox.