Create Google Drive folders by path
This workflow creates nested Google Drive folders from a path string (like Projects/Clients/Reports). It automatically handles the necessary folder lookups and creation steps required by Google Drive, then outputs the final folder's ID for immediate use. How it works This workflow streamlines the creation of nested folders in Google Drive: 1. Input: Provide a rootfolderid and a path (e.g., Projects/Clients/Reports) as input. 2. Path Parsing: The workflow splits the path into individual folder na
At a glance
Create Google Drive folders by path is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects Google Drive. It's free to download. Follow the 5-step import below to go live in minutes.
- Platform
- n8n
- Connects
- Google Drive
- Modules
- 11
- Price
- Free
- Version
- v1.0

About this workflow
This workflow creates nested Google Drive folders from a path string (like Projects/Clients/Reports). It automatically handles the necessary folder lookups and creation steps required by Google Drive, then outputs the final folder's ID for immediate use. How it works This workflow streamlines the creation of nested folders in Google Drive: 1. Input: Provide a rootfolderid and a path (e.g., Projects/Clients/Reports) as input. 2. Path Parsing: The workflow splits the path into individual folder names (based on the / separator) 3. Iterative Check & Create: Loops through each part of your path: - Searches within the current parent folder (starting with the rootfolderid) for a subfolder matching the name. - If found: Retrieves the existing folder's ID to use as the parent for the next iteration. - If not found: Creates a new folder with that name inside the current parent folder and uses the new folder's ID as the parent for the next iteration. 4. Output: Returns the Google Drive Folder ID of the very last folder in the specified path (e.g., the ID for Reports in the example above). This ID can then be directly used in subsequent n8n nodes to upload files, create documents, or perform other actions within that specific folder. Set up steps Setting up this workflow requires configuring the connection to Google Drive and knowing where to start creating folders: 1. Connect Google Drive Account: Ensure you have a Google Drive credential configured in your n8n instance. Then link your credentials in the workflow: there are 2 Google Drive nodes that will need to be updated. 2. Identify Starting Folder ID: Determine the Google Drive Folder ID where your nested structure should begin. You can either use the root of your Google Drive or a specific folder: - To use the root of Google Drive, simply set rootfolderid to root (also called "My Drive" in the UI) - To use a specific folder, open the folder in a webbrowser and look at the URL. The folder ID will be in the last part of the URL: 3. Prepare Inputs for Execution: When running the workflow (or triggering it), you will need to provide: - googledrivefolderid -> this is the root folder ID you identified in step 2. - desiredpath -> This is the path you want to create (e.g., Projects/Clients/Reports). Here's an example of how you can call this workflow in your other workflows:
How to import this n8n workflow
- 1
Download the workflow JSON file after purchase.
- 2
Open n8n → click the menu → Import from File.
- 3
Select the downloaded JSON and import.
- 4
Set up credentials for each node that requires them.
- 5
Click Execute Workflow to test, then activate.
Setup guide
Setup guide included
Purchase to unlock the full step-by-step guide
Related N8n workflows
Create Barcodes for new Zoho Inventory sales orders
Qualify lead lists and find professional emails with OpenAI and Google Sheets
Generate and post Instagram captions with Google Drive, GPT-4.1-mini, Gmail and Blotato
Generate an HTML/CSS Invoice from new Google Sheets rows
Retrieve and answer Gmail email queries with Llama 3.2, mxbai-embed, and Qdrant
Scrape & analyse Meta Ad Library image ads with Apify and OpenAI
AI-powered WhatsApp support bot with ticket creation for Google Sheets
Zoom AI meeting assistant creates mail summary, ClickUp tasks and follow-up call
Reviews
No reviews yet
Be the first to buy and share your experience.
Leave a review
Sign in to share your experience with this workflow.
Create a free account to purchase workflows.
- JSON blueprint — instant download
- Setup guide PDF included
- 5 downloads · valid 30 days
- Works with n8n
Need help setting this up?
Book a 3-hour live setup session with an Agility consultant.
- Configure live on Google Meet / Zoom
- Free follow-up if workflow has defects
- Platform expert assigned to you