Automation library · Money admin

Gmail invoice reader with Ollama

Started by an arriving email, and works across Gmail, Google Drive, Google Sheets and NocoDB. It hands the judgement calls to a local model. 40 steps, 3 branches: large, and worth reading before you trust it with anything live.

LargeCalls a model: a local model

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

The flow

Starts it 2Model 6Logic 16Service 16

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

  1. 1Gmail TriggerGmail triggerStarts it
  2. 2Ollama ModelLm OllamaModel
  3. 3Ollama Chat ModelLm Chat OllamaModel
  4. 4Google Drive TriggerGoogle Drive triggerStarts it
  5. 5Ollama Model1Lm OllamaModel
  6. 6Extract from FileExtract From FileService
  7. 7Convert to base64Extract From FileService
  8. 8Basic LLM ChainChain LlmModel
  9. 9Basic LLM Chain1Chain LlmModel
  10. 10Google DriveGoogle DriveService
  11. 11NocoDB1Noco DbService
  12. 12Basic LLM Chain3Chain LlmModel
  13. 13Upload to StorageHttp RequestService
  14. 14Transform To JSONSetLogic
  15. 15IfIfLogic
  16. 16Extract from File1Extract From FileService
  17. 17Convert to baseExtract From FileService
  18. 18Convert into single objectFunctionLogic
  19. 19Transform To JSON1SetLogic
  20. 20Edit FieldsSetLogic
  21. 21MergeMergeLogic
  22. 22No es FacturaNo OpLogic
  23. 23Merge1MergeLogic
  24. 24Merge3MergeLogic
  25. 25NocoDB2Noco DbService
  26. 26Final JSONSetLogic
  27. 27If2IfLogic
  28. 28If1IfLogic
  29. 29Google SheetsGoogle SheetsService
  30. 30NocoDBNoco DbService
  31. 31Upload to Storage1Http RequestService
  32. 32Merge2MergeLogic
  33. 33Edit Fields2SetLogic
  34. 34Google Drive1Google DriveService
  35. 35GmailGmailService
  36. 36Gmail1GmailService
  37. 37Edit Fields1SetLogic
  38. 38Final JSON1SetLogic
  39. 39Google Sheets1Google SheetsService
  40. 40NocoDB3Noco DbService

How it's built

Starts on
An arriving email
Steps
40, with 3 branches
Size
Large: read it before trusting it with anything live
Connects to
Gmail, Google Drive, Google Sheets, NocoDB
Model
a local model

Questions

What does it need to run?

An n8n account, plus your own Gmail, Google Drive, Google Sheets and NocoDB accounts, and a key for a local model. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an arriving email.

Does it use AI?

Yes. It calls a local model. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 40 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 40 steps before you point it at anything that matters.