Templates / File Google Drive inbox documents into dated folders with a Google Sheets audit log

File Google Drive inbox documents into dated folders with a Google Sheets audit log

Ready for 3.0

by Kevin Yu ✓ · 12 views · created 2026-07-03 · File Management

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This workflow has 15 nodes and runs on Google Drive events (file created). Along the way it connects Google Drive and Google Sheets.

How it runs

Trigger: On Google Drive events (file created).

  1. Plan Destination From Rules (Code): runs custom JavaScript code
  2. Route By Document Type (Switch): routes items into 4 branches
  3. Log Filing Failure (Google Sheets): append (sheet)
  4. Find Year Folder (Google Drive): search (file folder)
  5. Year Folder Exists? (If): checks a condition and branches into true / false
  6. Find Month Folder (Google Drive): search (file folder)
  7. Create Year Folder (Google Drive): create (folder)
  8. Month Folder Exists? (If): checks a condition and branches into true / false
  9. Find Type Folder (Google Drive): search (file folder)
  10. Create Month Folder (Google Drive): create (folder)

…plus 4 more steps. See the full node list below.

Services it uses

Google DriveGoogle Sheets

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (6)

From the author

Quick overview This workflow monitors a Google Drive inbox folder for new files, classifies them by filename regex rules, files them into a Year/Month/Type folder structure in Google Drive, and logs each success or failure to a Google Sheets audit log. How it…

Excerpt from Kevin Yu's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.