Create Nested Google Drive Folders by Path
Automates creation of nested Google Drive folders from a path string like 'Projects/Clients/Reports', handling lookups and creations, and outputs the final folder ID.
This n8n workflow simplifies organizing Google Drive by creating entire nested folder structures from a single path string input, such as 'Projects/Clients/Reports'. It eliminates manual folder creation, ensuring efficiency and accuracy in file management tasks.
The process starts with user inputs: a root folder ID and the path. The workflow parses the path by splitting on '/' separators, then iteratively processes each segment. For every folder name, it searches within the current parent folder. If the subfolder exists, it retrieves its ID; if not, it creates a new one and captures the new ID as the parent for the next iteration. This loop handles any depth of nesting reliably.
Key benefits include time savings on repetitive setup, error prevention through automated checks, and seamless integration into broader automations like file uploads or document generation. Ideal for business operations, ERP systems, project management, and client reporting where structured file organization is crucial.
Use cases: Dynamically create client-specific folders during CRM integrations, organize reports in accounting workflows, or build project directories from form submissions. Setup requires Google Drive credentials on two nodes and a known root folder ID, making it quick to deploy.
New buyers can create an account from the cart to unlock a controlled $10 first-purchase credit on eligible orders of $25+.
Secure checkout powered by Stripe
Tags
Support
How to import this workflow into n8n
- 1Purchase or download the workflow to get the n8n workflow JSON file.
- 2In your n8n instance, open Workflows and choose "Import from File" (or paste the JSON with Ctrl+V on the canvas).
- 3Open each node marked with a credential warning and connect your own accounts and API keys.
- 4Run the workflow once manually to verify the data flow, then toggle it to Active.
Related Business Operations & ERPs workflows
- Automate Job Applications and Track Status with LinkedIn, Indeed, and Google Sheets$14.99
- Automated Stock Price Monitoring and Alerts for Indian & US Markets$9.99
- Build Custom Workflows Automatically with GPT-4o, RAG, and Web Search$24.99
- AI Chat Agent Receptionist for Clinics$150
- Automatically Archive Zoom Recordings to Google Drive and Log in Airtable$4.99
- Automate Call Scheduling with Voice AI Receptionist Using Twilio, Google Calendar & Airtable$24.99
More from Timo Salim
Need this deployed? We'll set it up for you.
Our automation experts deploy this workflow in your stack, connect your accounts, and verify it works — or build a custom solution from scratch.