Automation library · Documents and files

Archive HR and legal documents with UploadToURL

Started by another system calling it, and works across Airtable, Gmail and Google Drive. 26 steps, 4 branches: large, and worth reading before you trust it with anything live.

Large

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

The flow

Starts it 4Logic 12Service 10

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

  1. 1Webhook - Receive ContractWebhookStarts it
  2. 2Error HandlerCodeLogic
  3. 3Validate & Enrich PayloadCodeLogic
  4. 4Respond with ErrorRespond To WebhookStarts it
  5. 5Airtable - Duplicate CheckAirtableService
  6. 6IF Duplicate Exists?IfLogic
  7. 7Respond - 409 DuplicateRespond To WebhookStarts it
  8. 8Has Remote URL?IfLogic
  9. 9Upload to URL - RemoteUpload To UrlService
  10. 10Upload to URL - BinaryUpload To UrlService
  11. 11Extract CDN URLCodeLogic
  12. 12Drive - Find Employee FolderGoogle DriveService
  13. 13Resolve Folder IDCodeLogic
  14. 14Needs New Folder?IfLogic
  15. 15Drive - Create Employee FolderGoogle DriveService
  16. 16Merge Folder IDCodeLogic
  17. 17Drive - Upload DocumentGoogle DriveService
  18. 18Airtable - Find Employee RecordAirtableService
  19. 19Prepare Airtable UpdateCodeLogic
  20. 20Airtable Record Exists?IfLogic
  21. 21Airtable - Update Existing RecordAirtableService
  22. 22Airtable - Create New RecordAirtableService
  23. 23Merge Airtable ResultCodeLogic
  24. 24Send Confirmation EmailGmailService
  25. 25Build Final ResponseCodeLogic
  26. 26Respond to WebhookRespond To WebhookStarts it

How it's built

Starts on
Another system calling it
Steps
26, with 4 branches
Size
Large: read it before trusting it with anything live
Connects to
Airtable, Gmail, Google Drive
Model
None. This is plumbing, not judgement

Questions

What does it need to run?

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

What starts it?

It starts on another system calling it.

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 26 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 26 steps before you point it at anything that matters.