Back to Catalog

Copy folder structure without files in Google Drive

Builds.CoolBuilds.Cool
189 views
2/3/2026
Official Page

Why?

Google Drive desktop lets you copy full foldersโ€”contents and all. But what if you only want to copy the folder names (not the files) from one drive location to another? Maybe you're reusing a folder structure or duplicating a template structure, but without this workflow each copy will hold different content. This n8n workflow helps you clone just the structureโ€”no clutter, no file duplicates.

How it works

  1. Load this workflow into your n8n instance
  2. Setup GDRIVE credentials if you have not already (see video below)
  3. Double-click "edit this node"
  4. Enter the SOURCE folder ID (into "EDIT_THIS_NODE") - see image on where to get folder ID
  5. Enter the DESTINATION folder ID
  6. Run the workflow

What it does

  • Creates all new folders in destination that were in the source folder
  • Skips folders in destination that already exist

What it doesn't do (yet)

  • Does not copy over any nested folders
  • Does not copy over any files

Requirements

  • n8n
  • Google drive API must be setup in your n8n ([https://www.youtube.com/watch?v=3Ai1EPznlAc](5min vid how to do that))

Future Updates

If I get requests for these features I would build them:

  • Copy nested folder structure within the destination drive.
  • Flag (on/off) - to copy nested folder structure
  • Better error handling
  • Some kind of feedback output log on what was created

Google Drive Folder Structure Copier

This n8n workflow provides a robust solution for replicating the folder structure of a Google Drive directory without copying any of the files within them. It's ideal for setting up new project directories, onboarding new team members with predefined folder layouts, or standardizing your Google Drive organization.

What it does

This workflow is designed to be triggered manually and then systematically process a specified Google Drive folder to recreate its hierarchy.

  1. Manual Trigger: The workflow starts when manually initiated, allowing you to control exactly when the folder structure replication occurs.
  2. Google Drive Folder Listing: It connects to your Google Drive account to list all folders within a specified parent folder.
  3. Loop Over Folders: The workflow iterates through each identified folder.
  4. Conditional Logic: For each item, it checks if it's a folder.
  5. Create New Folder (if applicable): If the item is a folder, it proceeds to create a new folder with the same name in a designated destination.
  6. Merge Results: The results from the folder creation are merged back into the main flow.
  7. Edit Fields: Placeholder for potential data manipulation or logging (currently a passthrough).

Prerequisites/Requirements

  • n8n Instance: A running instance of n8n.
  • Google Drive Account: A Google account with access to the Google Drive you wish to manage.
  • Google Drive Credentials: Configured Google Drive OAuth2 or API Key credentials within n8n.

Setup/Usage

  1. Import the workflow: Import the provided JSON into your n8n instance.
  2. Configure Google Drive Credentials:
    • Locate the "Google Drive" node.
    • Click on the "Credential" field and select your existing Google Drive OAuth2 credential. If you don't have one, click "Create New" and follow the n8n instructions to set up a Google Drive OAuth2 credential.
  3. Specify Source Folder:
    • In the "Google Drive" node, ensure the operation is set to "Get All" or "List" (depending on the exact node configuration for listing folders).
    • You will need to specify the Parent Folder ID of the Google Drive folder whose structure you want to copy.
  4. Specify Destination Folder:
    • In the "Google Drive" node responsible for creating new folders (which is implied by the flow but not explicitly present in the provided JSON, this would be a "Create" operation), you will need to specify the Parent Folder ID where the new folder structure should be created.
  5. Execute the workflow: Click the "Execute Workflow" button in the n8n editor to run the workflow. The workflow will then replicate the folder structure in your specified destination.

Note: The provided JSON only outlines the core logic nodes. A complete workflow for this task would typically include two "Google Drive" nodes: one to list the folders from the source and another within the loop to create folders in the destination. You will need to add and configure these Google Drive nodes based on your specific source and destination folder IDs and credentials.

Related Templates

Create verified user profiles with email validation, PDF generation & Gmail delivery

Verified User Profile Creation - Automated Email Validation & PDF Generation --- Overview This comprehensive automation workflow streamlines the user onboarding process by validating email addresses, generating professional profile PDFs, and delivering them seamlessly to verified users. ๐ŸŽฏ What This Workflow Does: Receives User Data - Webhook trigger accepts user signup information (name, email, city, profession, bio) Validates Email Addresses - Uses VerifiEmail API to ensure only legitimate email addresses proceed Conditional Branching - Smart logic splits workflow based on email verification results Generates HTML Profile - Creates beautifully styled HTML templates with user information Converts to PDF - Transforms HTML into professional, downloadable PDF documents Email Delivery - Sends personalized welcome emails with PDF attachments to verified users Data Logging - Records all verified users in Google Sheets for analytics and tracking Rejection Handling - Notifies users with invalid emails and provides guidance โœจ Key Features: โœ… Email Verification - Prevents fake registrations and maintains data quality ๐Ÿ“„ Professional PDF Generation - Beautiful, branded profile documents ๐Ÿ“ง Automated Email Delivery - Personalized welcome messages with attachments ๐Ÿ“Š Google Sheets Logging - Complete audit trail of all verified users ๐Ÿ”€ Smart Branching - Separate paths for valid and invalid emails ๐ŸŽจ Modern Design - Clean, responsive HTML/CSS templates ๐Ÿ”’ Secure Webhook - POST endpoint for seamless form integration ๐ŸŽฏ Perfect Use Cases: User registration systems Community membership verification Professional certification programs Event registration with verified attendees Customer onboarding processes Newsletter signup verification Educational platform enrollments Membership card generation ๐Ÿ“ฆ What's Included: Complete workflow with 12 informative sticky notes Pre-configured webhook endpoint Email verification integration PDF generation setup Gmail sending configuration Google Sheets logging Error handling guidelines Rejection email template ๐Ÿ› ๏ธ Required Integrations: VerifiEmail - For email validation (https://verifi.email) HTMLcsstoPDF - For PDF generation (https://htmlcsstopdf.com) Gmail OAuth2 - For email delivery Google Sheets OAuth2 - For data logging โšก Quick Setup Time: 15-20 minutes ๐ŸŽ“ Skill Level: Beginner to Intermediate --- Benefits: โœ… Reduces manual verification work by 100% โœ… Prevents spam and fake registrations โœ… Delivers professional branded documents automatically โœ… Maintains complete audit trail โœ… Scales effortlessly with user growth โœ… Provides excellent user experience โœ… Easy integration with any form or application --- Technical Details: Trigger Type: Webhook (POST) Total Nodes: 11 (including 12 documentation sticky notes) Execution Time: ~3-5 seconds per user API Calls: 3 external (VerifiEmail, HTMLcsstoPDF, Google Sheets) Email Format: HTML with binary PDF attachment Data Storage: Google Sheets (optional) --- License: MIT (Free to use and modify) --- ๐ŸŽ BONUS FEATURES: Comprehensive sticky notes explaining each step Beautiful, mobile-responsive email template Professional PDF styling with modern design Easily customizable for your branding Ready-to-use webhook endpoint Error handling guidelines included --- Perfect for: Developers, No-code enthusiasts, Business owners, SaaS platforms, Community managers, Event organizers Start automating your user verification process today! ๐Ÿš€

Jitesh DugarBy Jitesh Dugar
51

Automate Reddit brand monitoring & responses with GPT-4o-mini, Sheets & Slack

How it Works This workflow automates intelligent Reddit marketing by monitoring brand mentions, analyzing sentiment with AI, and engaging authentically with communities. Every 24 hours, the system searches Reddit for posts containing your configured brand keywords across all subreddits, finding up to 50 of the newest mentions to analyze. Each discovered post is sent to OpenAI's GPT-4o-mini model for comprehensive analysis. The AI evaluates sentiment (positive/neutral/negative), assigns an engagement score (0-100), determines relevance to your brand, and generates contextual, helpful responses that add genuine value to the conversation. It also classifies the response type (educational/supportive/promotional) and provides reasoning for whether engagement is appropriate. The workflow intelligently filters posts using a multi-criteria system: only posts that are relevant to your brand, score above 60 in engagement quality, and warrant a response type other than "pass" proceed to engagement. This prevents spam and ensures every interaction is meaningful. Selected posts are processed one at a time through a loop to respect Reddit's rate limits. For each worthy post, the AI-generated comment is posted, and complete interaction data is logged to Google Sheets including timestamp, post details, sentiment, engagement scores, and success status. This creates a permanent audit trail and analytics database. At the end of each run, the workflow aggregates all data into a comprehensive daily summary report with total posts analyzed, comments posted, engagement rate, sentiment breakdown, and the top 5 engagement opportunities ranked by score. This report is automatically sent to Slack with formatted metrics, giving your team instant visibility into your Reddit marketing performance. --- Who is this for? Brand managers and marketing teams needing automated social listening and engagement on Reddit Community managers responsible for authentic brand presence across multiple subreddits Startup founders and growth marketers who want to scale Reddit marketing without hiring a team PR and reputation teams monitoring brand sentiment and responding to discussions in real-time Product marketers seeking organic engagement opportunities in product-related communities Any business that wants to build authentic Reddit presence while avoiding spammy marketing tactics --- Setup Steps Setup time: Approx. 30-40 minutes (credential configuration, keyword setup, Google Sheets creation, Slack integration) Requirements: Reddit account with OAuth2 application credentials (create at reddit.com/prefs/apps) OpenAI API key with GPT-4o-mini access Google account with a new Google Sheet for tracking interactions Slack workspace with posting permissions to a marketing/monitoring channel Brand keywords and subreddit strategy prepared Create Reddit OAuth Application: Visit reddit.com/prefs/apps, create a "script" type app, and obtain your client ID and secret Configure Reddit Credentials in n8n: Add Reddit OAuth2 credentials with your app credentials and authorize access Set up OpenAI API: Obtain API key from platform.openai.com and configure in n8n OpenAI credentials Create Google Sheet: Set up a new sheet with columns: timestamp, postId, postTitle, subreddit, postUrl, sentiment, engagementScore, responseType, commentPosted, reasoning Configure these nodes: Brand Keywords Config: Edit the JavaScript code to include your brand name, product names, and relevant industry keywords Search Brand Mentions: Adjust the limit (default 50) and sort preference based on your needs AI Post Analysis: Customize the prompt to match your brand voice and engagement guidelines Filter Engagement-Worthy: Adjust the engagementScore threshold (default 60) based on your quality standards Loop Through Posts: Configure max iterations and batch size for rate limit compliance Log to Google Sheets: Replace YOURSHEETID with your actual Google Sheets document ID Send Slack Report: Replace YOURCHANNELID with your Slack channel ID Test the workflow: Run manually first to verify all connections work and adjust AI prompts Activate for daily runs: Once tested, activate the Schedule Trigger to run automatically every 24 hours --- Node Descriptions (10 words each) Daily Marketing Check - Schedule trigger runs workflow every 24 hours automatically daily Brand Keywords Config - JavaScript code node defining brand keywords to monitor Reddit Search Brand Mentions - Reddit node searches all subreddits for brand keyword mentions AI Post Analysis - OpenAI analyzes sentiment, relevance, generates contextual helpful comment responses Filter Engagement-Worthy - Conditional node filters only high-quality relevant posts worth engaging Loop Through Posts - Split in batches processes each post individually respecting limits Post Helpful Comment - Reddit node posts AI-generated comment to worthy Reddit discussions Log to Google Sheets - Appends all interaction data to spreadsheet for permanent tracking Generate Daily Summary - JavaScript aggregates metrics, sentiment breakdown, generates comprehensive daily report Send Slack Report - Posts formatted daily summary with metrics to team Slack channel

Daniel ShashkoBy Daniel Shashko
679

Automate financial transaction tracking with Gmail, GPT, Notion & Telegram alerts

๐Ÿ“ฉ Automatically Log Transactions from Gmail into Notion and Get Telegram Alerts Whoโ€™s it for This workflow is for individuals or entrepreneurs who receive bank alerts, invoices, and payment emails in Gmail and want them to be automatically organized in Notion โ€” while also receiving quick Telegram notifications for each transaction. If you manage personal or business finances and find it tedious to manually record every debit, credit, or invoice โ€” this automation does it all for you. --- How it works The workflow acts as an AI-powered Accountant Agent that reads incoming Gmail messages and decides whether each email represents a Debit Transaction, Credit Transaction, Debit Invoice, or Credit Invoice. The Gmail Trigger watches your selected inboxes (like forwarding@bayesian-labs.com, support@bayesian-labs, anoop.karnik@bayesian-labs). The Classifier (GPT-5-nano) determines the correct transaction type. The appropriate Agent (GPT-5) then extracts amount, currency, and description details. The Agent uses Notion API tools to log structured data into your Personal Finance System Notion template (Financial Transactions & Income databases). Finally, a Telegram notification is sent summarizing the entry (From, To, Subject, Snippet). In short: every time your bank emails you โ€” Notion gets updated, and you get notified. --- How to set up Duplicate the Personal Finance System Notion template into your workspace. Create a Telegram Bot with BotFather โ†’ copy the bot token and your chat ID. Generate an OpenRouter API key for GPT-5 / GPT-5-nano. Create a Notion Integration Token and connect it to your duplicated finance databases. Add your Gmail accounts (forwarding@, support@, and/or personal Gmail) under Gmail OAuth2 credentials in n8n. Import the workflow JSON into n8n โ†’ fill in the credential names as listed below: n8ncloudregular_usage โ†’ OpenRouter Notion account โ†’ Notion API Accountant AI โ†’ Telegram Bot Gmail OAuth2 for each inbox trigger Once active, n8n polls Gmail every minute, classifies emails, updates Notion, and sends Telegram updates. --- Requirements n8n instance (self-hosted or cloud) Gmail accounts connected via OAuth2 OpenRouter API key Telegram bot token & chat ID Notion integration token Your duplicated Personal Finance System Notion template --- How to customize the workflow You can extend this workflow to: Track credit card statements, subscriptions, or payroll notifications. Add Slack or WhatsApp alerts alongside Telegram. Include live FX rates for USDโ†’INR conversion using an API node. Connect Google Sheets as a backup ledger or export target. Add error-handling branches to mark Gmail messages as processed or label them โ€œLogged to Notionโ€.

AnoopBy Anoop
92