Read the fields again after a correction
If accounting rejects an invoice, the person who uploaded it corrects it, for example with a new version from the vendor. Then the AI reads the fields of the current version again. What it reads differently appears on the document as a suggestion that a person accepts or dismisses; the AI changes no field itself. Then accounting approves again.
The workflow
Section titled “The workflow”The workflow starts for every document of the type incoming-invoice. Its file workflow.yaml:
$schema: 'https://docs.acriva.de/schemas/workflow.schema.json'format: 1schemaVersion: 5sdk: '1.0.0'key: extract-againname: Nach Korrektur erneut auslesentemplate: customtrigger: documentType: incoming-invoicefields: []start: approvalsteps: - kind: humanTask name: approval label: Freigabe Buchhaltung taskKind: approve assignees: [] fallback: kind: role role: Buchhaltung options: excludeRequester: true excludeActorsOfSteps: [] pickFile: false next: approved onRejected: correction - kind: humanTask name: correction label: Rechnung korrigieren taskKind: fix assignees: [] fallback: kind: requester options: excludeRequester: false excludeActorsOfSteps: [] pickFile: false next: readAgain onRejected: rejected - kind: aiAction name: readAgain label: Felder erneut auslesen action: extractAgain next: secondApproval onSkipped: secondApproval - kind: humanTask name: secondApproval label: Erneute Freigabe Buchhaltung taskKind: approve assignees: [] fallback: kind: role role: Buchhaltung options: excludeRequester: true excludeActorsOfSteps: [] pickFile: false next: approved onRejected: rejected - kind: end name: approved label: Freigegeben outcome: approved - kind: end name: rejected label: Zurückgewiesen outcome: rejected