Dropbox Folder Synchronization and New File Detection - n8n Workflow

Use this sophisticated n8n workflow to monitor Dropbox folders for new files using webhooks, advanced filtering, database state tracking (NocoDB), and efficient sub-workflow execution.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?


  • Users needing real-time automation triggered by changes in cloud storage.

  • Developers or power users looking for robust, stateful monitoring n8n templates.

  • Professionals who need to track and process only new files in specific Dropbox folders without re-processing existing data.

  • Anyone seeking advanced examples of using the n8n node ecosystem for synchronization tasks.

Overview

Keeping track of new files uploaded to cloud storage can be challenging, especially when dealing with high-volume folders. This n8n workflow provides a solution by implementing two robust methods for Dropbox monitoring, triggered immediately by a Dropbox webhook.

Method 1 offers simple directory listing and sub-workflow execution for all files. Method 2 is far more efficient: it leverages a NocoDB instance to maintain a ledger of already-processed files. When the n8n trigger fires, the flow checks the latest Dropbox contents against the NocoDB list. Only files that are genuinely new are allowed to proceed to a downstream sub-workflow, ensuring resources are not wasted on redundant tasks. This sophisticated n8n workflow demonstrates powerful logic and efficient data handling.

How it Works

This comprehensive n8n workflow begins with an external trigger, the Webhook n8n node, configured to listen for notifications from Dropbox.


  1. Webook Trigger & Validation: The initial Webhook n8n trigger receives the notification. It immediately responds (using the Respond to Webhook n8n node) to the challenge query or confirmation, which is essential for maintaining the Dropbox webhook connection.

  2. Folder Configuration: The flow branches to parallel processes, defining the specific folder paths using Set n8n node assignments (e.g., /z_Apps/auphonic/whisper). This allows a single n8n workflow to manage multiple monitored directories.

  3. Data Retrieval & State Check (Path B - New File Detection): The Dropbox - List watched folder n8n node retrieves the current list of files in the monitored folder. Simultaneously, the NocoDB - Get know files to exclude n8n node fetches all known file IDs previously recorded in the database for that folder.

  4. Filtering New Items: The crucial Merge - Keep only new items n8n node compares these two lists. Using the keepNonMatches join mode, it outputs only those file items present in the Dropbox list that do not have a matching ID in the NocoDB list (i.e., the new files).

  5. Execution and Record Keeping: The new files are then passed to two final stages:

a. The NocoDB - Add this file in the table n8n node immediately records the new file’s metadata into the database, updating the state for future runs.
b. The Execute Workflow n8n node triggers a secondary n8n workflow (a specialized sub-workflow) to perform the actual processing task (e.g., transcription or indexing) on the newly added file.

Installation Guide

To deploy this n8n template, follow these steps:


  1. Import: Copy the provided JSON into your n8n instance using the 'New' -> 'Import from JSON' feature.

  2. Credentials Setup:

Dropbox: Configure the Dropbox get files and Dropbox - List watched folder n8n nodes with your OAuth2 credentials. Ensure the connection has necessary read permissions for the specified folders.
NocoDB: Set up the NocoDB API Token credentials for the NocoDB n8n node instances. You will need to specify the correct projectId and the tracking table name (m0tqa79y2sv4g0j in the JSON example, which you should confirm or recreate).

  1. Webhook Configuration: Activate the Webhook n8n trigger. Copy the test or production URL provided by the n8n node.

  2. Dropbox Webhook Setup: Go to your Dropbox App Console and configure a new webhook using the URL copied from the n8n trigger. Dropbox will perform a validation challenge which your n8n workflow is already set up to answer (via the Respond to Webhook node).

  3. Sub-Workflow Linking: Update the Execute Workflow n8n node parameters to link to your actual processing n8n templates (the child workflows that handle the file operations).

  4. Activation: Once credentials and links are verified, activate the main n8n workflow.

Node Details

Webhook (n8n trigger): Initiates the n8n workflow upon receiving a POST or GET request from Dropbox, signaling a change in monitored accounts.
Respond to Webhook (n8n node): Crucial for establishing the Dropbox connection. It responds immediately with the required challenge token, ensuring the Dropbox webhook validation succeeds.
Set (n8n node): Used twice (setfolder A, setfolder to watch B) to define the folder path variable (foldertowatch) that subsequent Dropbox and NocoDB n8n nodes use dynamically.
Dropbox (n8n node): Performs the list operation on the configured folder path to retrieve the latest file metadata.
NocoDB (n8n node): Used to getAll known file IDs from the tracking table, filtered by the current foldertowatch variable.
Merge (n8n node): The core logic engine. It uses the combine and keepNonMatches modes, merging the Dropbox list and the NocoDB list by ID (mergeByFields: id), effectively filtering down to only the new files. This is a powerful n8n node configuration for state management.
NocoDB (n8n node - Create): Inserts the metadata for the newly detected files into the database, marking them as 'known' for subsequent runs of the n8n workflow.
Execute Workflow (n8n node): Calls an external sub-workflow to execute the business logic (e.g., file download, transcription, notification) on the newly identified files.

Related n8n Workflows

Free

Nodes: 9 Nodes
Updated: December 26 2025
View all
Created by
David Levesque
David Levesque

Featured*