๐Ÿค– Agent workflow plan

Agent design: supplier invoice processing

Summary

Invoices arriving in the shared mailbox are read by a document-extraction model, checked against the purchase order and goods receipt in the ERP (three-way matching), and prepared for payment. Clean matches go to a two-person approval step; mismatches go to an exception queue with the reason explained. No payment is ever released without two human approvals, and every step is logged for audit. Targets: reduce manual keying, cut the 12% mismatch-handling time and remove most of the 1,400 a month in late-payment fees.

Workflow

StepActorToolOutput
1MailboxShared invoice mailboxNew email with PDF attachment
2AgentDocument-extraction modelSupplier, invoice number, date, PO number, lines, totals, tax
3AgentERP APISupplier record, PO and goods-receipt lines
4AgentRules + LLMThree-way match result and a plain-English explanation of any difference
5AgentERP APIDraft invoice record (status: pending approval)
6ClerkApproval toolApprover 1 reviews match and approves or rejects
7Finance managerApproval toolApprover 2 approves payment
8ERPERP payment runPayment scheduled; audit log closed

Decision rules

Approval gates

ActionGate
Creating a draft invoice recordAutomatic (status stays "pending")
Approving a matched invoiceApprover 1 (accounts clerk)
Releasing paymentApprover 2 (finance manager), who must be a different person from Approver 1
Changing supplier bank detailsOutside this workflow; existing verification process only

Segregation of duties is enforced in the approval tool: the same user cannot approve both steps.

Failure handling

Security, privacy and audit

Metrics

MetricBaselineTarget
Invoices keyed by hand~900 a monthUnder 20%
Invoices with mismatches12%Same rate, but resolved in under 2 working days [measure current time]
Late-payment fees~1,400 a monthUnder 300 a month
Payments released without two approvals00
Extraction accuracy on key fields[measure]98%

Rollout plan

  1. Weeks 1โ€“2: run in parallel with manual keying on 100 invoices; compare extracted fields.
  2. Weeks 3โ€“4: use agent drafts for suppliers with clean matches only.
  3. Then: extend to all suppliers once accuracy and exception rates hit target.

Next: a 2-week pilot plan and a risk register. Constraints respected: segregation of duties, two human approvals for every payment and a 7-year audit trail.