How do you combine AI analysis with deterministic posting logic?

The workable answer is a division of labour with a hard boundary. The language model reads documents, codes them and proposes an entry. What it does not decide is whether that entry is made: that decision belongs to a layer of fixed conditions, approvals and locks which either lets a proposal through or rejects it with a stated reason. The model's confidence scores feed into that check, but only as a measurement against a fixed threshold. The decision follows a rule, not a probability.

This article sets out where the boundary runs, how it is anchored in the system, and which five questions follow from it when choosing a platform.

The debate is framed too narrowly

The popular formulation runs: the companies building the models don't trust them with their own accounting, therefore automated accounting isn't ready.

The argument is rhetorically strong and logically weak. That a general-purpose AI assistant doesn't write entries into a general ledger says something about the product category, not about feasibility. A chat tool has no audit trail, no segregation of duties, no materiality thresholds and no period lock, because it was never built to have them. It is like concluding from the fact that nobody prepares a balance sheet in a word processor that software is unsuited to financial reporting.

The core of the criticism holds: closing the books is a judgement problem. AI can draft, a person has to decide. So the interesting question is this: where exactly does the boundary between proposal and posting run, and what is it anchored to when nobody is watching?

The test: what happens when nobody looks?

Two systems, both promising that the human stays in control. They differ in the direction of the default.

System A: objectionSystem B: consent
The entry is madeunless somebody objectsonly if somebody consents
The human's roleafter-the-fact review of a queueapproval, without which nothing exists
If the control lapsesan unreviewed entry sits in the ledgeran unprocessed proposal sits in a list
The error surfaces asa wrong figure in the accountsa missing document on the open proposals list

How this plays out at the close

A supplier invoice for EUR 12,400 arrives on 14 February. The model reads it correctly but codes it to the cost centre of last year's completed project, because the same supplier was booked there twelve times. The colleague responsible is off sick for a week and nobody works the queue.

In System A it is posted. February closes with EUR 12,400 on a cost centre that no longer exists in the current year. The accounts are complete, the totals balance, nothing stands out. It surfaces in the quarterly reporting when a project manager queries his costs, and by then it needs a correcting entry in a period that may already be closed.

In System B it is not posted. The proposal stays where it is and appears on the open proposals list at the close. That is also an error, since the expense is missing from the period and has to be accrued.

So the difference is not error versus no error. It is a visible error versus an invisible one. A missing document sits on a list that gets reviewed before the close anyway. A miscoded document sits in accounts that balance.

Which is why the question comes down to a single point: are proposal and posting two separate objects, or is the proposal already an entry in a waiting state?

What the checking layer checks

Between proposal and posting sits a set of conditions, all of which must hold. A document that fails one of them is not posted but returned, with the reason.

The condition holds ifSet byWhat it prevents
automation is switched on for this entitypolicy per entitya newly created subsidiary running along before anyone released it for that
the document is still a draft, neither approved nor paiddocument statusan already processed document being posted a second time
all mandatory fields have been extractedoutput of document recognitionan incompletely read document being posted with guessed values
the model has not flagged the document for review itselfmodelposting despite the recognition having raised doubts
exactly one supplier account is unambiguously assignedmaster datapostings to a collective supplier account or to the wrong one of two similar names
the document is not held as an open card paymentdocument datadouble capture: once as an invoice, once through the card statement
any required departmental approval is presentpolicy, approval statusa department being charged with expense it has never seen
extraction and classification confidence are above the thresholdsthresholds from the policy, values from the modelpostings based on amounts or accounts read with low confidence
the amount is below the materiality threshold for automation, say EUR 2,500policy per entitya material one-off passing unnoticed through the automated queue
no risk flag is set, such as a changed bank account, a suspected duplicate invoice or an atypical amountcheck rules on document and master datapayments to changed bank details and duplicated invoices
enough comparable, human-confirmed transactions exist for this supplierminimum count from the policy, document historyautomation for a supplier whose coding pattern nobody has confirmed yet

The middle column separates two kinds of condition that often get conflated. Some are facts drawn from the document or the master data and are not open to negotiation. Others are settings you determine: which entity takes part, above which amount a person decides, what confidence is required, how many confirmed transactions a supplier needs. That second group is your risk policy, not the vendor's.

Example: the same invoice, two outcomes

Case 1. EUR 890, a supplier of two years' standing, monthly, always the same expense account, always this order of magnitude. All mandatory fields cleanly extracted, extraction and classification confidence above the thresholds, 24 confirmed transactions, and the amount is below the materiality threshold of EUR 2,500 set in the policy. All conditions hold, the proposal may be posted.

Case 2. The same invoice, one detail different: the bank account differs from the one on file. The risk flag applies, the document goes back to a person, however confident the model was.

Case 2 is not a step backwards from automation. It is its purpose.

Two properties without which the list would be worthless

The thresholds are versioned. They do not sit in program code but in a policy per entity, with a version number and a validity period. If the auditor asks in May which rule applied in January, the answer is the version in force at the time, not somebody's recollection.

A rejection states its reason. The document carries notes such as "not extracted" or "cost owner approval required". A system that only reports "not processed automatically" has merely inverted the black box.

Shadow mode: evidence instead of assurances

Whether such a checking layer decides correctly in your organisation cannot be settled on a drawing board. It depends on your suppliers, your document formats and your coding habits, and the answer can only come from your own documents.

So the automation runs in shadow mode first. The sequence does not interfere with the work:

  • The document arrives, is extracted and pre-filled with a coding proposal, as in normal operation
  • In parallel the system evaluates whether this document would pass the automation check, and records the outcome of every individual condition
  • That evaluation has no effect. The document goes to a person as usual, who reviews it, corrects it where necessary and posts it
  • Finally the posted version is compared against the version that would have arisen without human involvement

That final step does not create a second coding. What is compared is the posted version against the proposal it was based on. So what gets measured is not whether the software codes better than your staff, but something simpler and decisive for this question: how often something was still changed in the proposal. Because it is exactly that correction which would fall away in unattended operation.

After a quarter this yields an analysis. By way of illustration it might look like this:

FindingCountWhat follows from it
Supplier invoices in the period1,240
Of which automation would have posted780460 would have stayed with a person anyway
Of those, taken over unchanged774
Correction: one supplier, varying cost centre4Exclude this supplier from automation
Correction: period cut-off at quarter end2No automatic posting in the final third of the month

One number thus turns into three concrete rules. The analysis is therefore two things at once: the basis on which the decision to go live is taken, and the documentation of that decision, with date, data basis and the rules that followed from it.

The evidence holds per client, not per product. A hit rate drawn from another company's suppliers says nothing about your own: different suppliers, different document formats, different coding habits, different materiality thresholds. Every entity therefore starts in shadow mode, regardless of how long the platform has been running. A product-wide accuracy figure may offer a first orientation. For the decision whether posting may happen unattended in your entities, it is not enough.

The live switch

Everything described so far is preparation. Whether the automation actually posts hangs on a single setting: the live switch.

With it off, the system produces only proposals, even for documents that passed every check. A person releases them, as before. With it on, every document that meets all conditions is posted with no further involvement.

There is exactly one such switch, and its default is off. Turning it on is therefore a deliberate, single decision that somebody takes and owns, not a state a system drifts into.

Two properties make it dependable:

  • It applies to every route into the general ledger. Entries do not arise only when somebody clicks post in the program. They also come from bulk imports, from interfaces to upstream systems, and from IT maintenance runs. A lock that sits only in the user interface does not catch those routes. The live switch is checked where the entries are stored, and therefore takes effect on all of them.
  • Every change is logged, with timestamp, user and stated reason.

To the question of what stops the system from posting into the general ledger without release, there is thus a verifiable answer rather than an assurance: the live switch is off, and the log shows whether and when that changed.

Controls that hold on every route

The live switch is not the only lock that has to work regardless of who or what is posting. Three others belong with it.

Closed periods stay closed. January is closed and audited. On 12 March a catch-up run processes an overlooked invoice dated 28 January. Without an effective lock it posts into January, and the audited accounts then look different from how they looked at the time of the audit. The lock therefore sits in the same place as the entries themselves, not only in the user interface. It applies to the catch-up run exactly as it does to keyboard entry.

Posted entries are reversed, not edited. A posted line is neither overwritten nor deleted. A correction creates an opposing entry linked to the original, and both remain visible. The practical benefit: an analysis you ran in February can still be reconciled in May. Whatever has changed since sits beside it as its own entry, with date and cause, instead of quietly replacing the original figure.

None of these controls stands alone. Who may use which function is kept narrow and reviewed regularly. That work never quite ends. Every new function raises the question afresh of which role may invoke it, and because nobody should be blocked, the permission tends to be granted generously, often by copying an existing role. It is rarely narrowed again afterwards. Anyone who has maintained a role concept over the years knows the effect.

This is why no control is left to carry the load alone. Even if somebody held access they should not have: they could not post into a closed period, and they could not quietly alter a posted line. It is the same idea as an internal control system in which no single control has to hold on its own.

Where AI genuinely is strong

The separation does not diminish the model, it assigns it the tasks at which it is superior:

  • Extracting unstructured documents in any layout and several languages
  • Proposing expense account and cost centre and naming the similarity to earlier transactions
  • Finding duplicate invoice submissions, atypical amounts and changed bank details
  • Answering questions about the data and tracking down differences
  • Preparing judgement calls so the accountant decides faster

In all five the model is an accelerator. In none of them is it the final authority.

Five questions for any vendor

QuestionGood answerWarning sign
Does the model produce an entry or a proposal?Separate objects, no posting without release"The user can always correct it"
Which conditions sit between proposal and posting?A named list, demonstrable one by one"Our model is very accurate"
Are the thresholds versioned?Policy per entity with version and validity periodThe thresholds sit in program code
Is it measured against my own documents?Shadow mode per entity before releaseA product-wide accuracy figure
Do period lock and reversal-only hold on every route?Yes, including imports and interfaces"The user interface doesn't allow that"

What Kontor does

In Kontor, a proposal and an entry are two different things. The checking layer evaluates named conditions per document against a versioned policy per entity and returns the conditions that failed. Automation runs in shadow mode per entity first and measures how often something was still changed in the proposal. The live switch is off and is only turned on once that analysis is available. Period lock and reversal-only hold on every route into the general ledger, not just through the user interface, and none of these controls depends on permissions having been set without a gap.

Last reviewed: August 2026

Read this article in German: Wie kombiniert man KI-Analyse mit deterministischer Buchungslogik?