Workflow specification
Each step, its rules, where the model is used and where it is not, and the review points.
We design and integrate AI capabilities into the processes where work already happens: documents read and checked, knowledge retrieved with its sources, requests triaged, and every consequential output reviewed by a person who can see why it was proposed.
Vague terms produce vague projects. These are the five building blocks we design with, and what each one actually does.
Three distinct operations that are often bundled under one name. OCR turns an image of a page into text. Extraction maps that text to named fields: supplier, date, amount, clause. Consistency checking compares the fields with each other and with reference data: the lines add up to the total, the supplier exists, the date falls in the open period. The model does the second; ordinary code should do the third.
Retrieval-augmented generation (RAG) searches a curated, access-controlled set of documents and gives the model only the passages it found, so the answer can cite them. Its quality depends on the corpus before the model: duplicates, outdated versions and documents without an owner produce confident wrong answers.
Classifying incoming requests by type, urgency and required skill, then routing them. Usually rules plus a classifier; a language model helps when requests arrive as free text in several languages.
The layer that sequences steps, calls systems, retries safely and records state. It should be ordinary, deterministic software. An agent, in the precise sense, is a model allowed to choose which tool to call next. We grant that freedom sparingly, inside bounded permissions, and only where the path genuinely cannot be specified in advance.
The screen where a person sees what the system proposes, the evidence behind it and how uncertain it is, then approves, corrects or rejects. Corrections are stored and become test cases. This is where most of the design effort should go, because it is where trust is built or lost.
Invoice intake is a good reference because almost every organization has it. The same structure applies to contracts, claims or onboarding files. This is an illustrative design; we do not claim it is deployed for a client.
Workflows · Reference process
Scroll the diagram sideways to see all of it.
Notice where the model is not. It does not decide whether a document is a duplicate, whether totals add up or whether an invoice can be paid. It reads layouts that rules cannot read, and its output is checked before anyone relies on it.
A pilot is judged on its happy path. Operations are judged on everything else. Each failure below has a defined detection and a defined response before the system goes live.
| Failure | How it is detected | What happens |
|---|---|---|
| Duplicate input | Same content hash, or same supplier, number, amount and date. | Held and linked to the original. A person confirms; nothing is deleted automatically. |
| Missing document | Mandatory-attachment rule, such as a purchase order above a threshold. | Case parked as incomplete, sender notified from a template, follow-up timer set. |
| Low-confidence extraction | Field confidence below threshold, or a failed consistency check. | Field highlighted for review with the reason. Never silently accepted. Rate tracked per layout. |
| API timeout | Timeout or error code from the model service or the business system. | Retry with backoff and the same idempotency key, then park in a queue visible to operations. No partial export. |
| Human override | Reviewer changes a value or reverses the proposed decision. | Stored with reason, user and time. Feeds the evaluation set. Override rate monitored as an early warning. |
| Retry or replay | Operator action or scheduled job after an incident. | Re-run from the last committed step with the same component versions, or with new versions logged as such. |
Saying where not to use a model is part of the job. In these cases ordinary software is cheaper, more reliable, or both.
Each step, its rules, where the model is used and where it is not, and the review points.
How the workflow reads from and writes to your existing systems, with idempotency and error contracts.
Built against the specification on synthetic data or an approved sample, never on production data by default.
Labelled cases, acceptance criteria and the failure scenarios above, scripted.
Exceptions, retries, overrides and rollback, written for the team that will run it.
Describe the documents or requests involved and what happens to them today. We will tell you which parts a model should touch, and which it should not.