Automation library · Money admin

Approve invoices with Claude and Google Drive

Started by an event in a connected app, and works across Google Drive and Google Sheets. 28 steps, 3 branches, 1 loop or waits: large, and worth reading before you trust it with anything live.

Large

28 stepsLarge: read it before trusting it with anything live
3Branches: places the flow splits
1Loop or waits
2Services it connects to

The flow

Starts it 2Logic 17Service 9

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

  1. 1When File Added to Drive InboxGoogle Drive triggerStarts it
  2. 2Manual Execution TriggerManual triggerStarts it
  3. 3Download Invoice from DriveGoogle DriveService
  4. 4Set Configuration ParametersSetLogic
  5. 5Extract Base64 from BinaryCodeLogic
  6. 6Normalize Invoice DataCodeLogic
  7. 7Prepare Vision API RequestCodeLogic
  8. 8Post to Anthropic Vision APIHttp RequestService
  9. 9Parse Vision API ResponseCodeLogic
  10. 10Perform Arithmetic CheckCodeLogic
  11. 11Read Sheets for DuplicatesGoogle SheetsService
  12. 12Check for Invoice DuplicatesCodeLogic
  13. 13If Immediate Review NeededIfLogic
  14. 14Build Approval RequestCodeLogic
  15. 15If Under Approval ThresholdIfLogic
  16. 16Post Approval Request NotificationHttp RequestService
  17. 17Automatically Approve InvoiceCodeLogic
  18. 18Wait for Approval ActionWaitLogic
  19. 19Aggregate for LoggingCodeLogic
  20. 20Process Approval DecisionCodeLogic
  21. 21Read Vendor Total from SheetsGoogle SheetsService
  22. 22Calculate Vendor TotalCodeLogic
  23. 23Construct Ledger EntryCodeLogic
  24. 24Append Ledger in SheetsGoogle SheetsService
  25. 25If Invoice ApprovedIfLogic
  26. 26Move Approved to ProcessedGoogle DriveService
  27. 27Move Denied to FlaggedGoogle DriveService
  28. 28Send Final NotificationHttp RequestService

How it's built

Starts on
An event in a connected app
Steps
28, with 3 branches, 1 loop or waits
Size
Large: read it before trusting it with anything live
Connects to
Google Drive, Google Sheets
Model
None. This is plumbing, not judgement

Questions

What does it need to run?

An n8n account, plus your own Google Drive and Google Sheets 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 28 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 28 steps before you point it at anything that matters.