Automation library · Money admin

AI-powered invoice processing automation with Google Sheets

Started by another system calling it, and works across Google Drive and Google Sheets. It puts OpenAI behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 44 steps, 2 branches: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAIRetrieval

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

The flow

Starts it 1Model 11Logic 14Service 18

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

  1. 1OpenAI Chat ModelLm Chat Open AiModel
  2. 2OpenAI Chat Model1Lm Chat Open AiModel
  3. 3OpenAI Chat Model2Lm Chat Open AiModel
  4. 4Simple MemoryMemory Buffer WindowModel
  5. 5get_facturasGoogle Sheets ToolService
  6. 6calculadoraTool CalculatorModel
  7. 7download_facturasGoogle Drive ToolService
  8. 8search_facturasGoogle Drive ToolService
  9. 9WebhookWebhookStarts it
  10. 10Extractor de InformaciónInformation ExtractorModel
  11. 11Extractor de Información2Information ExtractorModel
  12. 12AI AgentAgentModel
  13. 13normalizar_datosSetLogic
  14. 14MergeMergeLogic
  15. 15Edit FieldsSetLogic
  16. 16Merge1MergeLogic
  17. 17Edit Fields1SetLogic
  18. 18Code1CodeLogic
  19. 19SwitchSwitchLogic
  20. 20Upload fileGoogle DriveService
  21. 21Merge3MergeLogic
  22. 22Upload file1Google DriveService
  23. 23Merge4MergeLogic
  24. 24IfIfLogic
  25. 25Obter m dia em base64Evolution ApiService
  26. 26Obter m dia em baseEvolution ApiService
  27. 27Edit Fields2SetLogic
  28. 28Obter m dia em base65Evolution ApiService
  29. 29Sheets #1Google SheetsService
  30. 30Sheets #Google SheetsService
  31. 31Code2CodeLogic
  32. 32CodeCodeLogic
  33. 33Convert to FileConvert To FileService
  34. 34Convert to File1Convert To FileService
  35. 35Merge2MergeLogic
  36. 36Convert to File2Convert To FileService
  37. 37Download file1Google DriveService
  38. 38Enviar texto1Evolution ApiService
  39. 39PDFKitPdf KitService
  40. 40Extraer Texto1Mistral AiModel
  41. 41Transcribe a recordingOpen AiModel
  42. 42Extract from File1Extract From FileService
  43. 43Extraer TextoMistral AiModel
  44. 44Enviar documento1Evolution ApiService

How it's built

Starts on
Another system calling it
Steps
44, with 2 branches
Size
Large: read it before trusting it with anything live
Connects to
Google Drive, Google Sheets
Model
OpenAI
Retrieval
Answers are drawn from documents you supply, not from the model alone

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 another system calling it.

Does it use AI?

Yes. It calls OpenAI. Its answers draw on documents you give it, not on the model alone. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

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