How to Set Up n8n’s Google Drive Trigger to Watch a Folder (and Fix It When It Doesn’t Fire)
Set up n8n's Google Drive Trigger to watch a folder for new files, then fix it when it doesn't fire: publishing, subfolders, file types and 401 errors.
You want this to happen automatically: a file lands in a Google Drive folder, and something runs — maybe a sales report gets processed. n8n is a tool that connects apps so this kind of work can happen on its own. You can set it to watch a folder. The frustrating part is when you set it up, and nothing happens.
This guide shows you how to set up n8n’s Google Drive Trigger so it watches a folder, and how to fix it when it doesn’t start.
In this guide you’ll learn:
- How to add the trigger, pick the folder, and choose what to watch for (for example, a new file).
- Why you must publish the workflow. A manual test is not the same thing, and doesn’t count as leaving it running.
- The usual reasons it stays quiet: the file went into a subfolder (this trigger ignores those), a file-type filter that’s too strict, the file was already there before you published, or a sign-in problem.
- How often it checks the folder. By default that’s once a minute. It looks on a schedule, rather than being told instantly.
By the end, you’ll have a workflow that starts on its own when a new file arrives, and a checklist for when it doesn’t.
Who this guide is for
- Small-business owners and freelancers who want "a file lands in a Drive folder → something happens" without paying for Zapier tasks.
- n8n users whose Google Drive Trigger worked in a test run but never fires on its own.
- Anyone building on our other guides. For example, you might want to process sales exports automatically once they’re combined in Google Sheets.
What you need before you start
- An n8n instance: n8n Cloud or self-hosted. This guide was checked against 2.47.4. Older 1.x versions use Activate instead of Publish.
- A Google account that can open the folder you want to watch.
- A Google credential in n8n:
- On n8n Cloud: you can usually just click Sign in with Google (Managed OAuth2).
- Self-hosted: you need your own Google Cloud OAuth client. Our step-by-step guide to connecting Google Sheets and Google Drive to n8n covers it.
- A test folder with a file you can safely copy in and out.
Contents
- Add the Google Drive Trigger and connect a credential
- Choose the folder and the event to watch
- Decide how often it checks (Poll Times)
- Test it, then publish it
- Handle several files arriving at once
- Use the file in the next node
- Common errors
- Troubleshooting: the trigger doesn’t fire
- Alternatives and limitations
- FAQ
Step 1: Add the Google Drive Trigger and connect a credential
- Create a new workflow, click the + to add the first step, and search for Google Drive Trigger.
- Under Credential Type, choose OAuth2 (recommended) unless you already use a Google service account.
- Under Credential to connect with, create a new credential:
- n8n Cloud: n8n’s docs list the Google Drive Trigger among the nodes that support Managed OAuth2. Click Sign in with Google and approve access. No Google Cloud setup is needed.
- Self-hosted: Managed OAuth2 isn’t available, so use Custom OAuth2. Create a Google Cloud project, enable the Google Drive API, set up the consent screen and an OAuth client, then paste the Client ID and Client Secret into n8n. The full walkthrough is in our n8n Google OAuth guide.
Service account? The node supports one. n8n’s common-issues page says that for service accounts, you must enable domain-wide delegation and include the Google Drive API. That needs a Google Workspace admin, so most small sites should use OAuth2.
Step 2: Choose the folder and the event to watch
- Set Trigger On to Changes Involving a Specific Folder. The other option, Changes to a Specific File, watches a single file.
- In Folder, pick the folder From list, paste its Link (By URL), or enter its ID.
- Set Watch For. In 2.47.4 the folder options are:
| Watch For | Fires when… |
|---|---|
| File Created | A new file appears directly in the watched folder |
| File Updated | A file directly in the watched folder is modified |
| Folder Created | A new folder is created directly in the watched folder |
| Folder Updated | A folder directly in the watched folder is modified |
| Watch Folder Updated | The watched folder itself is modified |
- Note the notice under these options: "Changes within subfolders won’t trigger this node." In the source, the search uses
'<folder ID>' in parents, which only matches items that sit directly inside the folder. - Optional: Options → File Type. Leave this on [All] unless you only want Google-native files. The choices are Google Docs, Sheets, Slides, Drawings, "Photos and Images", Audio and Videos. In the source they map to Google-native MIME types such as
application/vnd.google-apps.photo. Google’s Drive API documentation lists that type as "Google Photos", not as JPEG or PNG. So an ordinary uploaded photo, PDF or CSV probably won’t match these filters. To narrow by type, filter in the next node instead (Step 6). This follows from the node’s source and Drive’s file-type names; we have not confirmed it with real uploads.
Step 3: Decide how often it checks (Poll Times)
This trigger polls: on a schedule, it asks Drive whether anything has changed. Drive doesn’t message it instantly. n8n’s common-issues page says it checks once every minute by default.
To change this, use Poll Times and choose a Mode. In the 2.47.4 source the modes are Every Minute, Every Hour, Every Day, Every Week, Every Month, Every X and Custom.
- For an inbox-style folder that should react quickly, keep Every Minute.
- For a daily report folder, Every Hour or Every X (for example every 15 minutes) cuts the number of Drive API calls.
Each check looks for items created or modified since the previous check.
Step 4: Test it, then publish it
Test run (manual execution). Click Execute step (or Execute workflow). n8n’s docs say a manual run returns the last item that matches your settings. If nothing matches, it fails. In the 2.47.4 source the message is "No data with the current filter could be found". That’s normal for an empty folder: drop a file in and run it again.
Publish. In n8n 2.x, changes autosave as a draft and go live only when you click Publish. After publishing, the trigger checks Drive on its schedule.
Check the Publish button state:
- Published: you’re live.
- Published, has changes: your latest edits aren’t live yet. Publish again.
- Published, partial: at least one trigger failed to activate. Hover to see which, then publish again to retry.
- Failed to publish: no triggers activated, so nothing runs.
Then test for real: copy a new file into the folder, wait for the next poll, and open Executions to see the run.
Files that were already there are ignored. On the first scheduled check, the node’s "last checked" time defaults to now (from the source). Existing files don’t fire; only files created after the workflow went live will.
Steps 1 to 4 follow the 2.47.4 documentation and source; we have not run them end-to-end in a live n8n instance.
Step 5: Handle several files arriving at once
n8n’s docs say that if several matching changes happen within one polling interval, you get one trigger event that contains several items. Build the workflow so it works with 1 or 20 items.
Most n8n nodes run once per item automatically. If you need different handling for a batch, add an IF or Switch node, as n8n’s docs suggest. If you’ll send one summary instead of one message per file, use an aggregate step.
Step 6: Use the file in the next node
The trigger returns Drive’s file metadata, not the file contents. In the source, it asks the Drive API for all file fields. Useful fields include id, name, mimeType, createdTime, modifiedTime and webViewLink.
Typical next steps:
- Filter by name or type with an IF node. For example,
{{ $json.name }}ends with.csv, or{{ $json.mimeType }}is equal totext/csv. This is more reliable than the File Type option for normal uploads. - Download the file with a Google Drive node (File → Download, file ID from
{{ $json.id }}). - Process it. For example, read a CSV and append rows to Google Sheets, or move the file to a "processed" folder so you don’t handle it twice.
These expression examples follow n8n’s documented syntax for 2.47.4; we have not run them in a live instance.
IF node condition (String): {{ $json.name }} ends with .csv
Drive node File ID (By ID): {{ $json.id }}
Common errors
| Error or symptom | Likely cause | Fix |
|---|---|---|
401 - {"error":"unauthorized_client", ...} |
Credential scopes or permissions | OAuth2: enable the Google Drive API in APIs & Services → Library. Service account: enable domain-wide delegation, including the Drive API (n8n docs) |
| "No data with the current filter could be found" (manual run) | Nothing in the folder matches yet | Add a matching file and run again. Check File Type and Watch For. |
| "The folder this node watches no longer exists. Please update it in the workflow." | The folder was deleted, or your account lost access (a 404 from Drive) | Re-select the folder. Check that the credential’s Google account can open it. |
| Credential reported as invalid | Revoked or expired Google access | Reconnect the credential. With a Testing-mode Google app, tokens expire after 7 days (article-11). |
| Rate-limit or daily-quota failure | Too many Drive API calls | Poll less often (Step 3). The source notes that the daily quota resets at midnight Pacific Time. |
| Workflow runs with several items | Several files arrived in one interval | Expected. See Step 5. |
Troubleshooting: the trigger doesn’t fire
Work down this list:
- Is the workflow published? Look for "Published" on the button and the indicator on the Workflows list. Draft edits don’t run.
- Was the file new? Files that existed before publishing are ignored.
- Was the file added directly to the watched folder? Subfolders don’t count. To watch several subfolders, use one trigger per folder.
- Was the file moved in rather than created? A moved file keeps its original created date. Because File Created compares Drive’s
createdTimeagainst the last check, a moved file may never match. Try File Updated, or upload a fresh copy. This is an inference from the source, not a test we ran. - Is File Type set to something other than [All]? Normal uploads have their own MIME types. Set it to [All] and filter in an IF node.
- Has the poll interval passed? With Every Hour, you may wait up to an hour.
- Can the credential’s account see the folder? For a shared drive, the source sets
supportsAllDrivesandcorpora: allDrives, so shared drives are searched. Your account still needs access. - Self-hosted: is n8n actually running continuously? A laptop that sleeps won’t poll. Check Executions for errors.
- Still stuck? Make an identical manual run. If it returns the file, the settings match and the problem is publishing or timing. If it doesn’t, the settings or access are the problem.
Alternatives and limitations
- Schedule Trigger + Google Drive "search" step: gives you full control, including recursive logic. Track what you’ve already processed (for example, by moving processed files to another folder).
- Google Apps Script: good if you never want to leave Google Workspace. It has its own quotas.
- Zapier or Make: easier set-up, but you pay per task. See our comparison of n8n vs Make vs Zapier.
- Limitations:
- It polls rather than responding instantly.
- It only watches direct children of one folder.
- The File Type filter only covers Google-native types.
- The "any file or folder in the drive" mode exists in the source but is commented out in 2.47.4.
FAQ
Does the n8n Google Drive Trigger watch subfolders?
No. The node itself says "Changes within subfolders won’t trigger this node."
How often does the Google Drive Trigger check for new files?
Once a minute by default. You can change it under Poll Times.
Why does my manual test work but the published workflow never runs?
A manual run returns the last matching item even if it’s old. A published workflow only reacts to items created or changed after the previous check.
Can it trigger on PDFs or CSV files only?
Not with the File Type option, which lists Google-native types. Leave it on [All] and add an IF node that checks the file name or mimeType.
Does it work with shared drives?
The 2.47.4 source requests all drives, so it should, as long as your Google account can access the folder. We have not confirmed this with a shared drive.
Official references
- n8n docs: Google Drive Trigger, Google Drive Trigger common issues, Save and publish workflows, Google credentials, Google Drive node
- n8n source: GoogleDriveTrigger.node.ts at n8n@2.47.4, n8n releases
- Google: Google Workspace and Google Drive supported MIME types
Next step
If you haven’t created your Google credential yet, follow our guide to connecting Google Sheets and Google Drive to n8n. Then build the next part of the workflow, such as automatically organising sales reports uploaded to Google Drive.
Last updated: 13 November 2026



