Skip to main content

Monitor and download changed files from Google Drive automatically

Workflow preview

Workflow preview
100%
Monitor and download changed files from Google Drive automatically preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Description This workflow automates the download of new or updated files from a Google Drive folder, processing only files changed since the last run using a timestamp control file. How It Works Tr...

Best for

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

Tools used

n8n-nodes-base.noop, n8n-nodes-base.merge, n8n-nodes-base.code, n8n-nodes-base.scheduletrigger, n8n-nodes-base.googledrive, n8n-nodes-base.if, n8n-nodes-base.set, n8n-nodes-base.extractfromfile

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Monitor and download changed files from Google Drive automatically
Workflow name
Monitor and download changed files from Google Drive automatically

Description

This workflow automates the download of new or updated files from a Google Drive folder, processing only files changed since the last run using a timestamp control file.

How It Works

  • Triggered on a schedule.
  • Checks for a n8n_last_run.txt file in your Google Drive to read when the workflow last ran.
  • If missing, defaults to processing changes in the last 24 hours.
  • Searches for new or modified files in your specified folder.
  • Downloads new/changed files.
  • Replaces the timestamp file with the current time for future runs.

Setup Steps

  1. Set up your Google Drive credentials in n8n.
  2. Find the Folder ID of the Google Drive folder you wish to monitor.
  3. Edit all Google Drive nodes:
    • Select your credentials
    • Paste the Folder ID
  4. Adjust the schedule trigger if needed.
  5. Activate the workflow.

Features

  • No duplicate file processing (idempotent)
  • Handles missing timestamp files
  • Clear logical sticky notes in the editor
  • Modular, extendable design

Prerequisites

  • Google Drive API credentials connected to n8n
  • Target Google Drive folder accessible by the credentials

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 - No Operation

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

Block 2 - Merge

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

Block 3 - Create Timestamp File

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

Block 4 - Schedule Trigger1

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.1

Block 5 - Search for Timestamp File1

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

Block 6 - Download Timestamp File1

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

Block 7 - Download New Files2

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

Block 8 - Upload New Timestamp2

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

Block 9 - If

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 10 - Edit Fields

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

Block 11 - Extract Timestamp Text1

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

Block 12 - Edit Fields2

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

Block 13 - Search for New Files2

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

Block 14 - Get Current Time1

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

Block 15 - Delete Old Timestamp File1

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

Block 16 - Sticky Note

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

Block 17 - Sticky Note1

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

Block 18 - Sticky Note2

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

Block 19 - Sticky Note3

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

3. Summary Table

Workflow Monitor and download changed files from Google Drive automatically
Complexity advanced
Nodes 19
Categories File Management
Author Anurag
Published 20 Jul 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/6193/6193.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 Monitor and download changed files from Google Drive automatically do?

Description This workflow automates the download of new or updated files from a Google Drive folder, processing only files changed since the last run using a timestamp control file. How It Works Tr...

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.