In brief
An AI Worker learns your chart of accounts from four sources: the company chart of accounts in the accounting policy, cost center and project lists, a cleaned-up history of coding decisions from recent months, and a rules card written with the chief accountant. It is not trained from scratch: it receives these materials as context and backs every proposed entry with a rule or an earlier entry. Accountants' corrections change the rules card only after approval, so learning stays under control.
What exactly needs to be learned
A chart of accounts is more than a list of numbers. An accountant who codes an invoice draws on knowledge in three layers:
| Layer | Example | Where it is written down |
|---|---|---|
| structure | account 402 external services, sub-account 402-03 IT services | company chart of accounts |
| dimensions | cost center "maintenance", project "line 3" | lists in the ERP |
| company habits | a software subscription for the sales team goes to 402-03 and the sales cost center, unless the tool is for a client project | the accountant's head and the coding history |
The first two layers are documented. The third usually is not, and it is the one that decides whether the AI Worker's proposal will be correct. Article 10 of the Polish Accounting Act requires a company to have a chart of accounts as part of its accounting policy, but it does not require habits to be written down. That is why most of the deployment effort goes into the third layer.
The AI Worker's four sources of knowledge
The Cost accountant from DYNAMINDS Labs receives four sets of material, not "a model trained on accounting".
- The company chart of accounts and accounting policy. The list of accounts with descriptions, materiality thresholds (for example the amount above which a purchase is a fixed asset) and rules for accruals and prepayments.
- Lists of cost centers, projects and other dimensions. With the owner of each cost center and which ones are active.
- Coding history. Usually from the last several to a dozen or so months: invoice, supplier, description and the entry the accountant approved.
- The rules card. Rules written with the chief accountant that take precedence over history.
For each invoice, the AI Worker first looks for a rule in the rules card. When there is none, it turns to history: how the company coded invoices from this supplier and similar items. When history is silent too, it does not guess but marks the invoice as a "new case" for the accountant to decide. The overall split of work in describing and coding invoices is covered in AI invoice coding in accounts payable.
Coding history needs cleaning up
History is the best source of the company's habits, but also a source of its mistakes. Before the AI Worker starts using it, it is worth reviewing it for four problems:
- chart of accounts changes. Account 402-07 was retired in January and its costs moved to 402-03. Old entries need to be mapped to the new account or excluded.
- cost center reorganizations. The logistics team was split into two cost centers. History from before the change points to a cost center that no longer accepts costs.
- errors and corrections. An invoice posted to the wrong account and later reposted. The AI Worker should learn from the entry after the correction, not before it.
- inconsistencies. The same service sometimes on 402-03 and sometimes on 409. If both are acceptable, the rules card has to pick one.
This review is valuable to the company regardless of the AI Worker. Inconsistencies in the history are often the same discrepancies an auditor points out when auditing the financial statements.
The rules card: how to write it
The rules card does not have to be long. A few dozen rules for recurring suppliers and cost types are enough, plus a clear rule for everything else. Examples of rules in a form that both the accountant and the AI Worker understand:
- Regular supplier, fixed account. Invoices from the electricity supplier: 401-02 energy consumption, cost center according to the metering point in the contract.
- Cost type regardless of supplier. Employee medical checkups: 409-05, the cost center of the employee's department from the referral.
- An exception to history. From January 1, software licenses above the threshold in the accounting policy go to a decision "intangible asset or expense", even if they used to be expensed.
- Project takes precedence over cost center. When the order names a project, the cost goes to the project, and the cost center follows from the project.
- When there is no rule and no history. No account proposed, a question to the accountant with the two closest options.
Each rule has an owner and an effective date. After a change to the chart of accounts, it is then clear which rules need reviewing.
Corrections that teach, and chart of accounts changes
The accountant corrects a proposal: changes the account or the cost center. The correction goes into the log and is a signal, but it does not change the rules automatically. Once a week or once a month, the AI Worker gathers the corrections and proposes changes to the rules card, for example "the last 6 invoices from supplier X were corrected from 402-03 to 402-05, I propose a new rule". The chief accountant approves the change.
This setup protects against two risks. A single slip during a correction does not change the AI Worker's behavior. And when two accountants code the same cost differently, the difference surfaces and has to be settled, instead of the AI Worker learning one version one day and the other the next.
A change to the chart of accounts, usually at the start of the year, is the moment to review the rules card. The AI Worker points to rules that refer to retired accounts and cost centers, and the accountant updates them before the first invoices of the new year.
Accuracy is measured separately for each cost category, not as a single average: the share of proposals accepted without changes, the share of "new cases" and the number of errors on accounts with non-deductible VAT. How to set up such measurement is covered in How to measure the quality of an AI Worker's work, and coding invoices in foreign currencies in Foreign and foreign-currency invoices. The deployment flow is shown in the case study on describing and coding cost invoices at a factoring company, where managers' corrections inform subsequent proposals.
Questions and answers
Does the AI Worker have to be trained on my company's data?
Not in the sense of training a model from scratch. The AI Worker receives the chart of accounts, lists, coding history and rules card as material it uses for every invoice. The data does not have to leave the company: it can stay on the company's server or in a data center in Poland.
How much coding history is needed?
Usually several months to a year or so, enough to cover seasonal and annual costs such as insurance or licenses. Quality matters more than length: history after corrections, mapped to the current chart of accounts. A pilot at DYNAMINDS Labs usually takes 4 weeks and starts with exactly this review of the history.
What if two accountants code the same cost differently?
The AI Worker will show it, because it sees two different entries for the same type of cost in the history. The chief accountant settles it, and the result goes into the rules card. This is one of the benefits of a deployment: inconsistencies surface before the audit rather than during it.
Will the AI Worker post an entry by itself when it is confident?
No. It proposes the account, cost center and VAT treatment with a reason, and the responsible person in the finance team approves the entry. For high-confidence invoices approval is quick, but it remains a person's decision, as does deducting VAT in an unusual case.