Automation library · Documents and files

Detect and move duplicate Google Drive files with Supabase

Started by an event in a connected app, and works across Google Drive, Slack and Supabase. 21 steps, 3 branches: large, and worth reading before you trust it with anything live.

Large

21 stepsLarge: read it before trusting it with anything live
3Branches: places the flow splits
0Loops or waits
3Services it connects to

The flow

Starts it 1Logic 11Service 9

The steps in the order they run, from what starts it.

  1. 1Google Drive TriggerGoogle Drive triggerStarts it
  2. 2Prepare File InfoCodeLogic
  3. 3Download FileGoogle DriveService
  4. 4Validate BinaryIfLogic
  5. 5CryptoCryptoService
  6. 6Handle Missing BinaryCodeLogic
  7. 7Check Hash ExistsSupabaseService
  8. 8Prepare Error Log DataCodeLogic
  9. 9Same File Re-triggered?IfLogic
  10. 10Log Error EventSupabaseService
  11. 11No Operation, do nothingNo OpLogic
  12. 12Hash Matched Different File?IfLogic
  13. 13Move to DuplicatesGoogle DriveService
  14. 14Prepare Hash DataCodeLogic
  15. 15Notify DuplicateSlackService
  16. 16Insert New HashSupabaseService
  17. 17Prepare Dup Log DataCodeLogic
  18. 18Handle DB ErrorCodeLogic
  19. 19Log Duplicate EventSupabaseService
  20. 20Prepare Unique Log DataCodeLogic
  21. 21Log Unique EventSupabaseService

How it's built

Starts on
An event in a connected app
Steps
21, with 3 branches
Size
Large: read it before trusting it with anything live
Connects to
Google Drive, Slack, Supabase
Model
None. This is plumbing, not judgement

Questions

What does it need to run?

An n8n account, plus your own Google Drive, Slack and Supabase accounts. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an event in a connected app.

Does it use AI?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

How long does it take to set up?

Take your time. At 21 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

Before you run it

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 21 steps before you point it at anything that matters.