Automation library · Money admin

Automate invoice processing with Google Drive and Sheets

Started by an event in a connected app, and works across Google Drive and Google Sheets. It hands the judgement calls to OpenAI. 21 steps, 1 branch, 2 loops or waits: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAI

21 stepsLarge: read it before trusting it with anything live
1Branch: places the flow splits
2Loops or waits
2Services it connects to

The flow

Starts it 1Model 2Logic 7Service 11

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

  1. 1Google Drive TriggerGoogle Drive triggerStarts it
  2. 2OpenAI Chat ModelLm Chat Open AiModel
  3. 3Jahre auswählenSetLogic
  4. 4Search files and foldersGoogle DriveService
  5. 5Information ExtractorInformation ExtractorModel
  6. 6Split OutSplit OutLogic
  7. 7LoopSplit In BatchesLogic
  8. 8GetYearFolderGoogle DriveService
  9. 9Loop Over ItemsSplit In BatchesLogic
  10. 10GetFileGoogle DriveService
  11. 11GetMonthFolderGoogle DriveService
  12. 12Jahresordner schon vorhanden?Google DriveService
  13. 13ExtractFromPDFExtract From FileService
  14. 14MoveFileGoogle DriveService
  15. 15Ordner noch nicht vorhandenIfLogic
  16. 16UpdateFileNameGoogle DriveService
  17. 17Jahresordner erstellenGoogle DriveService
  18. 18AddToOverviewGoogle SheetsService
  19. 19Monate als ListeSetLogic
  20. 20Split Out1Split OutLogic
  21. 21Monatsordner einfügenGoogle DriveService

How it's built

Starts on
An event in a connected app
Steps
21, with 1 branch, 2 loops or waits
Size
Large: read it before trusting it with anything live
Connects to
Google Drive, Google Sheets
Model
OpenAI

Questions

What does it need to run?

An n8n account, plus your own Google Drive and Google Sheets accounts, and a key for OpenAI. 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?

Yes. It calls OpenAI. Model calls are billed by the provider, not by n8n.

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.