Templates / Detect and move duplicate Google Drive files with Supabase and Slack

Detect and move duplicate Google Drive files with Supabase and Slack

Ready for 3.0

by Shashwat Singh ✓ · 218 views · created 2026-02-20 · File Management

Ready 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.

What this workflow does

This workflow has 21 nodes and runs on Google Drive events (file created). Along the way it connects Google Drive, Supabase and Slack.

How it runs

Trigger: On Google Drive events (file created).

  1. Prepare File Info (Code): runs custom JavaScript code
  2. Download File (Google Drive): download
  3. Validate Binary (If): checks a condition and branches into true / false
  4. Crypto: hashes or encrypts values
  5. Handle Missing Binary (Code): runs custom JavaScript code
  6. Check Hash Exists (Supabase): get many
  7. Prepare Error Log Data (Code): runs custom JavaScript code
  8. Same File Re-triggered? (If): checks a condition and branches into true / false
  9. Log Error Event (Supabase): uses Supabase
  10. Hash Matched Different File? (If): checks a condition and branches into true / false

…plus 9 more steps. See the full node list below.

Services it uses

Google DriveSupabaseSlack

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (8)

From the author

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…

Excerpt from Shashwat Singh's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.