Detect and move duplicate Google Drive files with Supabase and Slack
Ready for 3.0Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.
Nodes used (8)
- Google Drive Trigger
n8n-nodes-base.googleDriveTrigger - Code
n8n-nodes-base.code - Google Drive
n8n-nodes-base.googleDrive - If
n8n-nodes-base.if - Crypto
n8n-nodes-base.crypto - Supabase
n8n-nodes-base.supabase - Slack
n8n-nodes-base.slack - No Operation, do nothing
n8n-nodes-base.noOp
What it does
This workflow automatically detects duplicate files uploaded to a specific Google Drive folder by generating an MD5 hash of each file and comparing it against a Supabase database. If a duplicate is found, the file is moved to a dedicated Duplicates folder and a Slack notification is sent. All events, including unique uploads, duplicates, race conditions, and errors, are logged for audit purposes. It is designed for teams that handle high file volumes and need reliable, content based deduplication instead of simple filename checks. How it works - Monitors a specific Google Drive folder for new files. - Normalizes file metadata and downloads the binary content. - Generates an MD5 hash from the file binary. - Checks Supabase to see if the hash already exists. - If duplicate, moves the file to a Duplicates folder and sends a Slack alert. - If unique, stores the hash in Supabase. - Logs every outcome, including errors and race conditions, in an audit table. Setup steps - Connect your Google Drive account and select the folder to monitor. - Connect your Supabase account and create the required tables: filehashes dedupauditlog - Connect your Slack account and select a channel for duplicate alerts. - Update the Duplicates folder ID in the Google Drive Move node. Setup typically takes 10 to 15 minutes if your Supabase project is ready.