Save Gmail attachments to Google Drive automatically with Make.com: filter by label, rename files by date and sender, skip duplicates and log every file.
Every time a supplier invoice, signed contract or receipt lands in Gmail, someone has to open it, download the file, rename it and drop it in the right Drive folder. It takes a minute each time, and it is exactly the kind of minute that gets skipped on a busy day. Two weeks later nobody can find "that PDF from the client".
You can save Gmail attachments to Google Drive automatically with a short Cross-Platform Automation (XPA) in Make.com. This guide walks through the build our team uses: watch a Gmail label, upload every attachment to the right folder, rename each file in a consistent way, skip duplicates, and keep a log in Google Sheets.
The quick answer
To save Gmail attachments to Google Drive automatically with Make.com:
- Create a Gmail filter that applies a label (for example,
Receipts) to the emails you want archived. - In Make.com, add a Gmail > Watch emails trigger that only watches that label and only emails with attachments.
- Add an Iterator over the attachments so each file is handled on its own.
- Build a file name from the email date, sender and original file name.
- Add a Google Drive > Upload a file module that saves each attachment into your target folder with that name.
- Log each upload to Google Sheets and mark the email as processed.
The rest of this guide covers the details that make it reliable: naming rules, duplicate protection, converting files to Google Docs, and folder routing.
What you'll need
- Gmail: a label that marks only the emails you want processed
- Make.com: connections to Gmail, Google Drive and Google Sheets. A paid plan helps if you process a lot of mail, because every attachment uses operations.
- Google Drive: a target folder, or a small folder structure (Finance, Legal, Operations)
- Google Sheets: a log sheet with one row per uploaded file
- Permissions: the Google account you connect to Make needs edit access to the Drive folder and the log sheet. A shared drive owned by the business is better than one person's My Drive.
How the scenario works
Gmail label (trigger) > read sender, date and subject > split out each attachment > build the file name > check the log for duplicates > upload to Drive > write a log row > mark the email as processed.
The step most people leave out is the duplicate check. Gmail can surface the same message again, and Make retries failed runs. Without a check you end up with three copies of the same invoice.
Step-by-step setup
1) Label only the emails you want archived
In Gmail, create a label such as Receipts or To-Drive, then create a filter that applies it. Good filter rules include:
- From: your billing contacts or a supplier's domain
- Subject contains: Invoice, Statement, Contract or Quote
- Has attachment: ticked
Keep the filter narrow. Gmail labels whole conversations, so a long reply thread can pull in attachments you never meant to archive, such as email signature logos.
2) Set up the Gmail trigger in Make.com
Add Gmail > Watch emails and point it at your label. Use a Gmail search query such as label:receipts has:attachment so the trigger ignores anything without a file. Set a sensible maximum number of results per run so a backlog does not burn through your operations in one go.
3) Iterate over the attachments
An email can carry several files. Add a Flow Control > Iterator over the attachments array so every following module runs once per file.
To skip noise, add a filter after the iterator. Common rules: only allow PDF, DOCX, XLSX and image files, and drop images under a small size, which are usually signature logos.
4) Choose a consistent file name pattern
A good file name is sortable, readable and unique. This pattern works for most teams:
{yyyy-mm-dd}_{sender}_{subject}_{n}.{extension}
Example: 2026-06-08_jane-smith_client-onboarding_1.pdf
Rules worth following:
- Put the date first so files sort in date order in Drive.
- Lowercase the sender and subject, swap spaces for hyphens, and strip characters such as
/ \ : * ? " < > |. - Add a number when one email has several attachments.
- Always keep the original extension. If it is missing, map it from the file's MIME type or send the file to a "check manually" folder.
Make's built-in functions handle this. For example, formatDate(date; "YYYY-MM-DD") gives you the date, and lower() with replace() cleans up the sender and subject.
5) Stop duplicates before they happen
Create a key for each attachment, for example:
message ID | original file name | attachment number
Then add Google Sheets > Search rows for that key, followed by a Router:
- Found: skip the upload
- Not found: carry on to the upload
Do not check for duplicates on the new file name alone. If you ever change your naming pattern, old and new names will not match and you will re-upload everything.
6) Upload to Google Drive
Add Google Drive > Upload a file:
- Folder: your target folder
- File: the attachment data from the iterator
- File name: your pattern from step 4, including the extension
7) Log every file
Add Google Sheets > Add a row with the duplicate key, message ID, original file name, new file name, Drive file ID, Drive link and upload time. This sheet becomes the searchable index your team uses to find documents, and your audit trail.
8) Mark the email as processed last
In the success path only, remove the trigger label, add a Processed label, or mark the email as read. If you do this before the upload and the upload fails, the email drops out of the queue and the file never reaches Drive.
Worked example: receipts into a tax folder, named by sender domain
A request we see often: "Every attachment I receive under the label Receipts should be saved in a Google Drive folder called Tax-2026, and the file name should include the sender's domain."
Here is how to build it:
- Gmail filter: apply the label
Receiptsto emails from your suppliers, or to anything with "receipt", "invoice" or "tax invoice" in the subject. - Trigger: Gmail > Watch emails with the query
label:receipts has:attachment. - Sender domain: take the sender's email address and keep everything after the @. In Make that is
last(split(sender email; "@")), soaccounts@takealot.combecomestakealot.com. - File name:
{yyyy-mm-dd}_{sender domain}_{original file name}, for example2026-03-14_takealot.com_invoice-88231.pdf. - Folder: pick the
Tax-2026folder in Google Drive > Upload a file. To roll over each year without editing the scenario, use Search for files/folders to find a folder namedTax-plus the email's year, and create it if it does not exist. - Log: add the supplier domain as its own column in the log sheet. At year end your accountant can filter the sheet by supplier instead of digging through Gmail.
How to save Gmail attachments as Google Docs
If you want Word files to arrive as editable Google Docs rather than .docx files, open Show advanced settings on the Google Drive > Upload a file module, turn on Convert a file, and choose Google Docs as the target type. Spreadsheets can be converted to Google Sheets the same way.
Leave PDFs as PDFs. Converting a scanned PDF into a Doc usually scrambles the layout, and the original is what you want on record.
Route attachments into different folders
Once the basic flow works, add a Router after the file name step to send files to different folders:
- Subject contains "Invoice" >
Finance/Invoices - Subject contains "MSA" or "Contract" >
Legal/Contracts - Everything else >
Inbox/To sort
If you would rather drive routing from Gmail labels, our guide on routing Gmail attachments to Google Drive folders by label shows that version.
You can also chain further steps after the upload, for example turning a template into a PDF, as in generating a PDF from a Google Docs template with Make.com.
A note on POPIA
Attachments are often full of personal information: ID copies, payslips, bank statements and signed contracts. Under POPIA you are responsible for where that information ends up and who can open it. Save into a business-owned shared drive rather than someone's personal Drive, keep folder access to the people who need it, and do not copy sensitive files into extra tools just because you can. Our practical guide to POPIA-compliant automation covers what to check before you connect tools like Make.com to client data.
Where we have built this for clients
This pattern sits underneath several of our client builds. In our Zoom-to-Drive knowledge pipeline, recordings that a team used to upload by hand every day are now saved into the right Drive folders automatically and logged in Google Sheets with links. In smart email routing to Slack, incoming emails are routed to the right department without anyone forwarding them manually. Both start with the same idea as this guide: let the inbox trigger the work.
FAQ
Can Gmail save attachments to Google Drive automatically on its own?
No. Gmail lets you save a single attachment to Drive by hand from the email, but it has no built-in rule that does it automatically. You need an automation tool such as Make.com, Zapier or a Google Apps Script to do it for every email.
Will this save attachments from old emails?
The Gmail trigger looks for new matching emails from the point you choose when you first run it. To backfill old mail, apply your label to the old emails and let the scenario work through them in batches.
How do I stop email signature images being saved?
Add a filter after the iterator that only lets through the file types you want (for example PDF, DOCX and XLSX) or that blocks image files below a small size.
Can I rename the files using the sender's company?
Yes. Split the sender's email address at the @ and use the domain in the file name, as in the worked example above. For a friendlier name, keep a small lookup sheet that maps domains to supplier names.
What happens if the upload fails?
Make records the error and, if you mark the email as processed only after the upload and log steps succeed, the email stays in the queue for the next run. Add an error route that posts to Slack or email so someone can look at stubborn files.
Want this set up for your inbox?
A good attachment workflow saves your team a few minutes on every email and makes every document findable. If you want it built around your own labels, folder structure and POPIA needs, tell us which manual process costs your team the most time and we will map the automation with you.