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