Skip to main content

Index new Google Drive folder files into Google Sheets automatically

Workflow preview

Workflow preview
100%
Index new Google Drive folder files into Google Sheets automatically preview
Open on n8n.io

1. Workflow Overview

Description: Automatically catalog the contents of any Google Drive folder into a Google Sheets spreadsheet — capturing file names, types, extensions, Drive links, and timestamps in one click. Idea...

Best for

  • File Management automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.manualtrigger, n8n-nodes-base.set, n8n-nodes-base.googledrive, n8n-nodes-base.googlesheets, n8n-nodes-base.code, n8n-nodes-base.merge, n8n-nodes-base.stickynote

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Christine.

Original n8n.io source

1.1 Workflow description

Title
Index new Google Drive folder files into Google Sheets automatically
Workflow name
Index new Google Drive folder files into Google Sheets automatically

Description:

Automatically catalog the contents of any Google Drive folder into a Google Sheets spreadsheet — capturing file names, types, extensions, Drive links, and timestamps in one click. Ideal for teams or individuals who need a living, auditable inventory of shared Drive folders without manually tracking files.

How it works

  • On execution, the workflow reads a target Google Drive folder ID and destination spreadsheet from a single Config node — the only place you need to make changes.
  • Two branches run in parallel: one lists all files and folders inside the target Drive folder; the other reads any rows already present in the index spreadsheet.
  • A filter step compares the two lists by File ID, ensuring only new, previously unindexed files are processed — re-running the workflow will never create duplicates.
  • Each new file is formatted into a structured row containing: File Name, MIME Type, File Extension, Google Drive URL, File ID, and an ISO timestamp of when it was indexed.
  • New rows are appended to the specified sheet automatically.

Set up steps

  1. Connect your Google Drive and Google Sheets OAuth2 accounts in n8n credentials.
  2. Create a Google Sheet with the following column headers in row 1 (order does not matter): File Name, MIME Type, File Extension, Google Drive URL, File ID, Indexed At.
  3. Open the Config node and fill in three values: your target Google Drive folder ID, your Google Sheets spreadsheet ID, and the sheet tab name (defaults to Sheet1).
  4. Run the workflow manually to populate the index. Re-run anytime to append newly added files — existing entries are skipped automatically.

Requirements

  • Google Drive OAuth2 credentials (n8n built-in)
  • Google Sheets OAuth2 credentials (n8n built-in)
  • A Google Drive folder you want to index
  • A Google Sheet with the column headers listed above already in place

How to customize

  • Change what's captured: Edit the List files and folders node to request additional Drive file fields (e.g. createdTime, modifiedTime, owners), then add the corresponding columns to the Prepare Index Row code node.
  • Limit file volume: For folders with 50+ files, add an n8n Limit node between List files and folders and Merge to process in batches and avoid timeouts.
  • Schedule it: Swap the manual trigger for a Schedule trigger to keep your index automatically up to date on a recurring basis.
  • Filter by file type: Add an If or Filter node after List files and folders to only index specific MIME types (e.g. Google Docs only, PDFs only).

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - When clicking ‘Execute workflow’

Type / Role
n8n-nodes-base.manualTrigger - manualTrigger
Config choices
Version 1

Block 2 - Config

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 3 - List files and folders

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Block 4 - Get Existing Index Rows

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 5 - Filter Already Indexed Files

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 6 - Prepare Index Row

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 7 - Append Row to Index Sheet

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 8 - Merge

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 9 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 10 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 13 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Index new Google Drive folder files into Google Sheets automatically
Complexity intermediate
Nodes 13
Categories File Management
Author Christine
Published 03 May 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/15456/15456.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Index new Google Drive folder files into Google Sheets automatically do?

Description: Automatically catalog the contents of any Google Drive folder into a Google Sheets spreadsheet — capturing file names, types, extensions, Drive links, and timestamps in one click. Idea...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your File Management use case.