Finance, Tax and Audit Agents
Let software gather and match. Keep judgment, approval and signature with people.
Finance agents are most useful at collecting, extracting, matching, explaining differences and drafting. Arithmetic, matching rules and limits should run in deterministic code. Keep separation of duties, require evidence for every figure and leave approvals, filings, accounting judgments and audit opinions to accountable people.
What you will learn: suitable finance, tax, audit and procurement uses, how controls apply to agents, how to build a matching step with exceptions, what auditors will ask and how to test such systems.
Prerequisites: ERP, CRM, API and Event Integration and Human-in-the-Loop and Approval Gates.
The example runs in November 2026 with Python 3.13 and only the standard library. All companies, amounts and tolerances are invented. This page is general information, not accounting, tax, audit or legal advice; requirements depend on your jurisdiction, reporting framework and circumstances.
Typical uses
| Area | Agent may help with | People keep |
|---|---|---|
| Payables | Read invoices, match to orders and receipts, chase missing items | Approval and payment release |
| Receivables | Apply remittance details, draft reminders | Disputes, write-offs |
| Reconciliation | Match transactions, explain breaks with evidence | Sign-off and adjustments |
| Period close | Track tasks, draft variance comments | Estimates, journals, certification |
| Expenses | Check receipts against policy | Exceptions and employee matters |
| Procurement | Compare quotes, check supplier documents | Award and contract signature |
| Tax research | Find and summarize sources with citations | Position and advice |
| Tax preparation | Gather data, flag gaps, draft workpapers | Review, filing and responsibility |
| Audit | Organize evidence, run defined tests, draft documentation | Skepticism, conclusions, opinion |
Models read, code calculates, people decide
Language models can misread a digit, drop a row or produce a confident explanation for a difference they did not verify. Divide the work accordingly.
Use exact decimal types for money, keep currencies and dates explicit and recompute every total from source lines. Never let a model's stated sum stand in for a calculation.
A few terms
- Control: an activity that prevents or detects error or fraud.
- Separation of duties: no one person, or agent, can both create and approve a transaction.
- Three-way match: compare invoice, purchase order and goods receipt.
- Audit evidence: information supporting a conclusion, with its source and reliability.
- Materiality: whether an error could influence decisions of users of financial statements.
Internal control over agent work
An agent inside a financial process becomes part of the control environment. In February 2026 the Committee of Sponsoring Organizations (COSO) published guidance on internal control over generative AI that applies its established internal control framework to this technology. Useful questions for each agent step:
| Risk | Control example | Evidence kept |
|---|---|---|
| Wrong extraction | Recompute totals; compare with order; review low confidence | Document, fields, check results |
| Missing items | Count and value reconciliation to the source | Control totals |
| Unauthorized action | Role limits enforced by the system | Access list, refused attempts |
| Self-approval | Agent identity cannot approve | Approval record |
| Changed behavior | Release testing on a fixed case set | Versions and results |
| Manipulated documents | Treat content as data; verify supplier changes separately | Verification record |
Invoices and emails can carry false bank details or instructions aimed at an agent. Never let content from a document change payee data. Verify changes through a separate, trusted channel and require a second person.
A three-way match with exceptions
The program matches invoices to orders and receipts, holds anything doubtful with reasons and checks that the person who raised an order cannot approve it.
"""Three-way match with exceptions and separation of duties."""
from decimal import Decimal as D
PRICE_TOLERANCE = D("0.02") # 2 percent
orders = {"PO1": dict(vendor="Acme", qty=100, price=D("4.00"), raised_by="kim"),
"PO2": dict(vendor="Birch", qty=10, price=D("250.00"), raised_by="lee"),
"PO3": dict(vendor="Cobalt", qty=40, price=D("12.50"), raised_by="ana")}
receipts = {"PO1": 100, "PO2": 8, "PO3": 40}
invoices = [
dict(no="A-100", po="PO1", vendor="Acme", qty=100, price=D("4.05")),
dict(no="B-77", po="PO2", vendor="Birch", qty=10, price=D("250.00")),
dict(no="C-9", po="PO3", vendor="Cobalt", qty=40, price=D("13.40")),
dict(no="A-100", po="PO1", vendor="Acme", qty=100, price=D("4.05")),
dict(no="X-1", po="PO9", vendor="Dune", qty=1, price=D("999.00")),
]
def match(inv, paid):
po = orders.get(inv["po"])
if po is None:
return ["no purchase order"]
problems = []
if (inv["vendor"], inv["no"]) in paid:
problems.append("possible duplicate")
if inv["vendor"] != po["vendor"]:
problems.append("vendor differs from order")
received = receipts.get(inv["po"], 0)
if inv["qty"] > received:
problems.append(f"billed {inv['qty']}, received {received}")
change = (inv["price"] - po["price"]) / po["price"]
if change > PRICE_TOLERANCE:
problems.append(f"price up {change:.1%}")
return problems
def can_release(po_id, approver):
return approver != orders[po_id]["raised_by"]
paid = set()
held = D(0)
for inv in invoices:
problems = match(inv, paid)
amount = inv["qty"] * inv["price"]
if problems:
held += amount
print(f"{inv['no']:6} {amount:9.2f} HOLD {'; '.join(problems)}")
else:
paid.add((inv["vendor"], inv["no"]))
print(f"{inv['no']:6} {amount:9.2f} READY matched, awaiting approval")
print(f"Held for review: {held:.2f}")
print("kim may approve PO1:", can_release("PO1", "kim"))
print("lee may approve PO1:", can_release("PO1", "lee"))
Output:
A-100 405.00 READY matched, awaiting approval
B-77 2500.00 HOLD billed 10, received 8
C-9 536.00 HOLD price up 7.2%
A-100 405.00 HOLD possible duplicate
X-1 999.00 HOLD no purchase order
Held for review: 4440.00
kim may approve PO1: False
lee may approve PO1: True
Only the first invoice is ready, and even it still awaits approval. The program holds short delivery, a price rise, a repeated invoice number and an invoice with no order. Duplicate detection here is deliberately simple; real checks also compare amounts, dates and near-identical numbers. A price decrease is accepted by this rule, which you may not want. A model's role would be to read the documents beforehand and draft the supplier query afterward, while this logic decides what is held.
Reconciliation and explanations
Matching usually runs in passes: exact reference and amount, then amount and date window, then grouped or partial matches. Let rules clear what they can, and let an agent investigate remaining breaks by searching permitted sources. Require each explanation to point to records that a reviewer can open, and label it proposed until accepted. "Timing difference" with no supporting item is not an explanation. Track aged breaks so that unexplained items do not quietly accumulate.
Close and reporting support
During a close, an agent can chase tasks, collect schedules, compare balances with prior periods and draft commentary. Guard against commentary that invents a business reason. Give the model the computed variance and the supporting transactions, ask it to say when the cause is not evident and have the owner of the account confirm. Restrict access to unpublished results, which may be price-sensitive information.
Tax research and preparation
Tax rules vary by place and period, change often and depend on facts. A research assistant should:
- Search an approved, dated collection of legislation, authority guidance and decisions.
- State the jurisdiction and tax period it assumed, and ask when unknown.
- Quote exact passages with links, and check that each quotation exists.
- Separate what sources say from its own reasoning.
- Show conflicting authority and uncertainty.
- Send conclusions to a qualified reviewer.
Preparation support follows the same discipline: reconcile data to ledgers, list missing information, record every mapping and adjustment and never submit a filing without authorized human approval. Taxpayer data is highly sensitive and may be subject to specific rules on disclosure to service providers, so confirm permission before any data reaches a model.
Agents in audit work
Auditors have long used data analysis, and agents can extend it: tracing samples, reading contracts for terms, testing whole populations against a rule and drafting working papers. Professional responsibility does not transfer to the tool.
For audits under US Public Company Accounting Oversight Board standards, amendments on technology-assisted analysis apply to fiscal years beginning on or after December 15, 2025. They address matters such as the evidence obtained when auditors analyze information in electronic form. Other audits follow other standards; check which apply.
| Question about an automated test | Why it matters |
|---|---|
| Is the population complete and accurate? | Testing a partial extract gives false comfort |
| Is the procedure defined and repeatable? | Another reviewer must understand it |
| How were exceptions investigated? | A flag is the start of work, not the end |
| What was verified about the tool? | Reliance needs a basis |
| Who reviewed the conclusion? | Judgment stays accountable |
Independence also matters: a firm must consider whether providing or operating an agent for a client conflicts with auditing it.
Auditing a process that uses agents
Expect auditors to ask what the agent does in the process, which controls depend on it, how changes are approved, who can alter prompts, tools and thresholds, how outputs are reviewed and whether logs are complete and protected. Prepare a short description per agent, a change history with test results, access reviews, exception reports and evidence that reviewers actually challenge items. Retain records for the periods your rules require.
Evidence that survives review
For each output that affects the books, keep the source documents or their stable references, extracted values, checks and results, rules and versions, model and prompt release, the reviewer, their decision and the time. Do not rely on a model's later account of why it did something. Store what actually happened (Transparency, Accountability and Audit Evidence).
Evaluating before reliance
| Measure | Note |
|---|---|
| Field accuracy by document type | Amounts and bank details deserve their own figure |
| False matches | Usually worse than missed matches |
| Exceptions correctly raised | Include planted errors and fraud patterns |
| Unsupported statements in drafts | Check each against evidence |
| Reviewer overrides | Signals both quality and attention |
| Value of items passed without review | Shows exposure |
Test on hard cases: credit notes, partial deliveries, multiple currencies, rounding, scanned pages, duplicates with altered numbers and instructions hidden in text. Rerun before changing models or prompts, and run old and new side by side across a close where practical (Chaos, Recovery Testing and Release Gates).
Rolling out
- Shadow the current process and compare results.
- Let the agent prepare; people decide everything.
- Pass clearly matched, low-value items to the normal approval step with sampling.
- Widen limits only with evidence and owner approval.
- Keep the manual route working, especially around period end.
Avoid first releases during year-end or filing deadlines.
An agent drafts a variance comment saying travel rose because of a conference. No conference expense exists in the ledger; the model supplied a plausible cause. A rule requiring each stated cause to cite transactions, with "cause not identified" as an allowed answer, would have prevented it. This scenario is invented.
Procurement and supplier work
Purchasing sits upstream of payables, and cleaner inputs there reduce exceptions later. An agent can turn a request into a draft requisition, suggest contracted suppliers, compare quotes in a common layout and check that supplier documents are present and in date.
| Step | Control |
|---|---|
| New supplier | Independent verification, sanctions and conflict checks by approved processes |
| Quote comparison | Original documents linked; exclusions and terms shown, not only price |
| Order splitting | Detect orders divided to stay under approval limits |
| Off-contract purchase | Reason recorded and approved |
| Award | Evaluation criteria set in advance; person decides |
An agent that exchanges messages with suppliers must not disclose competing prices or accept terms on its own.
Data foundations
Matching and explanation quality follow data quality. Agree one source for the chart of accounts, supplier records, exchange rates and calendars. Record the cut-off time of every extract so two runs can be compared. Reject files whose control totals do not reconcile before any model sees them. Keep entity, currency and period on every figure that travels between steps, including inside prompts and summaries, because a bare number is easy to attach to the wrong thing.
When something goes wrong
- Stop automated passing for the affected document type or supplier.
- Find every item processed under the same release and conditions.
- Assess accounting, tax, payment and reporting effects with owners.
- Correct through normal journals and credit processes, keeping history.
- Tell auditors and others as your policies require.
- Add the failure to the test set before restarting.
This is only possible if logs record which items each release handled.
Receivables and cash application
Customers often pay several invoices at once, short-pay or give unclear references. An agent can read remittance advice and emails, propose an allocation and draft a query about the difference. Apply cash automatically only when amounts and references match your rules exactly, keep the rest in a worklist with the evidence and never let a drafted reminder go to a customer whose invoice is in dispute. Credits and write-offs stay with authorized staff.
Judging whether it helped
Compare cycle time, error rates found by independent sampling, exception backlog, duplicate payments, late fees and reviewer hours before and after, over comparable periods. Include the time spent maintaining rules and investigating wrong extractions. A faster close that produces more later corrections is not an improvement.
Common mistakes
| Mistake | Consequence | Instead |
|---|---|---|
| Model does arithmetic | Silent errors | Compute in code |
| Agent can create and approve | Control failure | Separate identities and rights |
| Explanations without evidence | Misleading records | Require references |
| Acting on bank changes from email | Fraud loss | Independent verification |
| Undated tax sources | Wrong period or place | Date and scope every source |
| Changing models mid-close | Unexplained differences | Freeze around key dates |
Checklist
- Calculations and limits run in tested code.
- The agent cannot approve, pay or file.
- Completeness is reconciled to source totals.
- Every figure and explanation traces to evidence.
- Supplier and payee changes are verified separately.
- Releases are tested on fixed cases and logged.
- Auditors and control owners know where agents act.
- A manual fallback exists for critical periods.
Frequently asked questions
Can an agent post journal entries?
It can prepare them with support attached. Posting should follow your approval and separation-of-duties controls, with narrow exceptions only where those controls explicitly allow.
Are agent outputs acceptable audit evidence?
An output is not evidence by itself. What matters is the reliability of the underlying information and procedures, judged under the applicable standards.
Which finance task is a good first project?
Chasing missing documents or drafting explanations for reviewed exceptions, where errors are visible and nothing moves money.
Can we send ledger data to a hosted model?
Only if contracts, privacy rules, confidentiality duties and company policy permit it. Minimize fields and confirm storage and training terms.
References
- COSO: guidance on internal control over generative AI
- PCAOB: amendments on technology-assisted analysis
- NIST AI Risk Management Framework
Where to go next
Knowledge Management and Document Agents
Extract and validate documents.
Banking and Insurance Agents
Agents under financial regulation.
Finance, Tax, Audit and Contract Review
Study worked scenarios.