Automation library · Money admin

Create work4all incoming invoices

Started by a clock, and works across Outlook. 26 steps, 6 branches: large, and worth reading before you trust it with anything live.

Large

26 stepsLarge: read it before trusting it with anything live
6Branches: places the flow splits
0Loops or waits
1Service it connects to

The flow

Starts it 2Logic 16Service 8

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

  1. 1Poll inbox every minuteSchedule triggerStarts it
  2. 2When called by parent workflowExecute Workflow triggerStarts it
  3. 3Set error recipientsSetLogic
  4. 4Has attachments?IfLogic
  5. 5Get inbox messagesMicrosoft OutlookService
  6. 6Has readable attachment?IfLogic
  7. 7No invoice - skipNo OpLogic
  8. 8Run invoice extraction sub-workflowExecute WorkflowLogic
  9. 9Extraction configSetLogic
  10. 10Build result (no invoice)CodeLogic
  11. 11Has errors?IfLogic
  12. 12Extract errorCodeLogic
  13. 13Use work4all AI backend?IfLogic
  14. 14Send error emailMicrosoft OutlookService
  15. 15Supplier/account/tax key set?IfLogic
  16. 16Extract invoice dataWork4allService
  17. 17Build LLM messagesCodeLogic
  18. 18Mark message redMicrosoft OutlookService
  19. 19Mark message yellow + greenMicrosoft OutlookService
  20. 20Mark message greenMicrosoft OutlookService
  21. 21Parse extraction resultCodeLogic
  22. 22Call LLMHttp RequestService
  23. 23Has invoice?IfLogic
  24. 24Filter attachments & normalizeCodeLogic
  25. 25Create incoming invoiceWork4allService
  26. 26Format work4all resultCodeLogic

How it's built

Starts on
A clock
Steps
26, with 6 branches
Size
Large: read it before trusting it with anything live
Connects to
Outlook
Model
None. This is plumbing, not judgement

Questions

What does it need to run?

An n8n account, plus your own Outlook account. You connect your own accounts after importing it; none are included.

What starts it?

It starts on a clock.

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.