Save Gmail attachments to a Google Drive folder with Zapier (2026)
What you’ll have at the end
A Zap in Zapier, switched on, that saves the attachments of new Gmail emails matching your search to a Google Drive folder. Zapier calls switching a Zap on "publishing".
You'll also have seen Zapier's own test of the trigger and the action, and a test file in your folder.
Before you start
You’ll need
- A Zapier account (Zapier's pages show no Premium tag on Gmail or Google Drive)
- A Gmail account, either free or paid, without Google's Advanced Protection Program turned on
- A Google Drive folder that you own, to receive the files
What it costs. Zapier's Free plan page lists two-step Zaps, one trigger and one action, and Zapier's app pages show no Premium tag for Gmail or Google Drive. Zapier's help lists no separate Gmail or Google Drive charge.
You'll need three things, one in each tool.
- In Gmail: a Gmail account, free or paid. Zapier's help says that if Google's Advanced Protection Program is turned on for your account, you must turn it off to use Gmail with Zapier.
- In Google Drive: a folder that you own. Zapier's help says Google Drive requires you to be the owner of a folder to use it in Zapier, for example to upload a file into it.
- In Zapier: an account. Zapier's pages for Gmail and Google Drive show no Premium tag. Zapier's Free plan page lists two-step Zaps, with one trigger and one action, which is what this guide builds.
Zapier's help also says Zaps only trigger on new items, so this Zap won't save attachments from emails you already have.
You'll move between Google Drive, Gmail and Zapier a few times. Each step's heading names the tool it happens in: Google Drive for steps 1, 9, 12 and 15, Gmail for steps 2, 5 and 14, and Zapier for steps 3, 4, 6 to 8, 10, 11 and 13.
Following steps from somewhere else? You’re welcome to bring them here.
Steps
1. Google Drive: create a folder
Now please switch to Google Drive.
Google's help says to go to drive.google.com, click New on the left, then Folder, enter a name for the folder, and click Create.
2. Gmail: try your search in Gmail first
Now please switch to Gmail.
Please click the search box at the top and enter the search you'd like Zapier to use, then look at the emails it finds. Google's help lists search operators you can combine. Examples include
from:for a sender,subject:for words in the subject line,has:attachmentfor emails with attachments,filename:pdffor a file type, andlabel:for a label.Please keep the text of your search. You'll paste it into Zapier. Zapier's help suggests trying a search in Gmail's own search box first when you want to find the right operators.
3. Zapier: start a new Zap
Now please switch to Zapier, and log in to your Zapier account.
In the left sidebar, click + Create, then select Zap workflows. Zapier's help says you're taken to the Zap editor in a new browser tab or window.
4. Zapier: choose Gmail as the trigger and start connecting
In the Zap editor, select the Trigger step. In the search box, search for Gmail and select it. The right sidebar opens to the Setup tab.
Click the Trigger event field and select New Attachment. Zapier's page describes it as triggering when you receive a new attachment.
Then click the Account field. If you've never connected Gmail, Zapier's help says you'll see a Sign in button. If you have, you'll see a Select button, and you can pick an account or click + Connect a new account. A new browser tab or window opens. If nothing happens, Zapier's help says to turn off your browser's pop-up blocker.
5. Gmail: log in and allow Zapier (asks for Google login details)
You can pause screen sharing while you fill in this page, and continue afterwards.
Now please switch to Gmail, in the page that just opened.
If you're sharing your screen, you can pause sharing for this part and continue afterwards.
Please log in to your Google account and grant Zapier permission to access your account if you're asked. This is a sign-in and permission screen. Zapier's help says Google's Advanced Protection Program must be turned off to use Gmail with Zapier. Please read what the screen asks before you agree.
Please go back to Zapier when it finishes.
6. Zapier: enter your search
Now please go back to Zapier.
Select the Configure tab. Zapier's help on Gmail search errors says this trigger has a Search String field. Please paste the search you tried in step 2 into it. If the tab offers other options, please read them and fill in only what you need.
7. Zapier: test the Gmail trigger
Select the Test tab and click Test trigger. Zapier loads recent emails that match, as test records. Please select one, and click Continue with selected record.
Zapier's help says that if it has trouble finding test data, you can create a new event in the trigger app, here an email with an attachment that matches your search, and test again.
8. Zapier: choose Google Drive as the action and start connecting
Select the Action step. Search for Google Drive and select it.
Click the Action event field and select Upload File. Zapier's help says it copies an existing file from another service to Google Drive.
Then click the Account field, and click Sign in or Select, as in step 4. A new browser tab or window opens.
9. Google Drive: log in and allow Zapier (asks for Google login details)
You can pause screen sharing while you fill in this page, and continue afterwards.
Now please switch to Google Drive, in the page that just opened.
If you're sharing your screen, you can pause sharing for this part and continue afterwards.
Please log in to your Google account and grant Zapier permission to access your account if you're asked. This is a second sign-in and permission screen. Please read what it asks before you agree.
Please go back to Zapier when it finishes.
10. Zapier: choose the folder and the file
Now please go back to Zapier.
Select the Configure tab. Please choose your Google Drive and the folder you created in step 1.
For the file, please choose the attachment from the Gmail step. Zapier's Google Drive help says that if you don't pick a file field from the trigger step, Zapier creates a text file instead. File fields appear in grey in the list of fields from the earlier step.
Please fill in any other fields your screen marks as required.
Zapier's Google Drive help says that if you can't see your folder in the dropdown, it's because you must be the owner of the folder.
11. Zapier: test the Google Drive action (adds a file)
Zapier's help says that when you test an action step, Zapier performs the action on your behalf, that testing is live, and that it may change things in your app. Here it will upload a real file to your folder.
Select the Test tab and click Test step. If there's an error, Zapier's help says the Data out tab shows the message.
12. Google Drive: check the test file
Now please switch to Google Drive.
Please open your folder. You should see the attachment from the test email you chose in step 7.
13. Zapier: publish the Zap
Now please go back to Zapier.
Click Publish in the upper right. Zapier's help says this turns the Zap on, that Zapier then watches your trigger app for new data, and that it only reacts to data that happens after you publish. If Publish is greyed out, Zapier's help says it stays disabled until the trigger step has been tested successfully.
14. Gmail: let a matching email arrive
Now please switch to Gmail.
When a new email that matches your search and has an attachment arrives, the Zap should run. If you'd like to try it now, please ask someone, or use another address of yours, to send an email that matches your search with a file attached.
Gmail is a polling trigger. Zapier's Free plan page says Zaps with polling triggers check for updates every 15 minutes, according to Zapier's page on the Free plan. Zapier's help says paid plans can poll faster.
15. Google Drive: check that the new attachment was saved
Now please switch to Google Drive.
Please open your folder and look for the attachment from the new email. If it's there, the Zap is working. This guide ends here.
If the file doesn't appear, Zapier's help says you can see a log of all your Zap activity, including the data in and out of each step, in Zap History.
If something looks different
- If Zapier shows the error "Nothing could be found for the search", its help says the Search String field didn't match any message. It says to try the search in Gmail's own search box first, then add the working operators to your Zap.
- Zapier's help says if you put several files in the file field of the Google Drive action, Zapier zips them into one file.
- Zapier's help says Zapier turns a Zap off by itself if it keeps failing, and sends an email when it does.
Related guides
Sources
- Add new Gmail attachments to Google Drive
- Gmail Google Drive Integration - Quick Connect - Zapier
- How to get started with Gmail on Zapier – Zapier
- Gmail error: Nothing could be found for the search – Zapier
- How to get started with Google Drive on Zapier – Zapier
- Common Problems with Google Drive – Zapier
- Set up your Zap trigger – Zapier
- Set up your Zap action – Zapier
- Test Zap steps – Zapier
- Connect your app accounts to Zapier – Zapier
- What’s included in Zapier's Free plan? – Zapier
- Refine searches in Gmail - Computer - Gmail Help
- Organize your files in Google Drive - Computer - Google Drive Help
Alongrail isn't affiliated with Zapier or Google.