NORTHELL
SYSTEMS OPERATIONAL Start a project →
AI & Automation

AI for Accounts Payable: What an AP Agent Should Automate, What It Costs, and When to Build One

What an AI agent should and should not do in accounts payable, why exceptions drive cost, per-invoice model maths, fraud guardrails and a build-vs-buy matrix.

X / Twitter LinkedIn
AI for Accounts Payable: What an AP Agent Should Automate, What It Costs, and When to Build One
TL;DR

An AI agent earns its keep in accounts payable on exceptions, not on data capture: reading invoices is now cheap, while the price mismatches, missing receipts and vendor questions are where the hours go. Let the agent prepare and resolve routine exceptions, keep payment release and any vendor bank-detail change firmly human, and measure it against your own exception rate and cost per invoice. Buy an AP suite if your process is standard; build or extend when AP is part of your own product or your exceptions are unusual.

KEY TAKEAWAYS
  • Per Ardent Partners' 2025 benchmarks (as summarised by Tungsten Automation), the average invoice costs $9.40 to process against $2.78 for best-in-class teams, and even best-in-class only reaches 49.2% straight-through processing.
  • That means roughly half the invoices at the best teams still need a person. The agent's real job is that half: matching failures, missing receipts, price variances and vendor follow-ups.
  • Model cost is close to irrelevant. A two-page invoice through a small model costs around one or two cents at current list prices; your cost is exception minutes, integration work and controls.
  • Fraud pressure is real: AFP's 2026 survey found 74% of US organisations were affected by business email compromise in 2025. An AP agent must never be able to change vendor bank details or release payments.
  • Germany already requires businesses to receive structured e-invoices and phases in issuing from 2027. Design for structured data and PDFs side by side instead of over-investing in PDF extraction alone.
  • Buy when your AP process is standard and your ERP is supported; extend with a custom exception agent when your suite handles capture but drowns in exceptions; build when AP is a feature of your own product.
In This Article
  1. Where AP cost actually sits
  2. What the agent should do, task by task
  3. The fraud problem changes the design
  4. What it costs to run: the model is the cheap part
  5. Plan for structured e-invoices, not just PDFs
  6. Buy, extend or build: a decision matrix
  7. A seven-step pilot plan
  8. What to measure after launch
  9. The short version
  10. How Northell can help

Accounts payable is the back-office role where the AI agent pitch sounds most concrete. Invoices arrive, someone reads them, codes them, matches them to a purchase order, chases an approval and schedules a payment. Every vendor in the space now says an agent can do most of that. Some of it is true. The part that is not true is usually the part that costs you money.

This guide is for CFOs, finance operations leads and product teams at fintech and SaaS companies who are deciding whether to buy an AI-powered AP platform, add a custom agent to the tools they already have, or build AP automation into their own product. It covers where the time really goes, what an agent should and should not be allowed to do, what it costs to run, and how to pilot one without creating a new fraud risk.

Where AP cost actually sits

Start with the benchmarks, because they reframe the whole problem. Ardent Partners' 2025 accounts payable research, as summarised by Tungsten Automation, puts the average cost of processing a single invoice at $9.40, against $2.78 for best-in-class teams. The same summary reports an average invoice exception rate of 14% (9% for best-in-class), and says best-in-class organisations reach 49.2% straight-through processing. Only 24% of organisations had implemented fully automated invoicing, handling an average of 32.6% of invoices that way.

Read that last part again. Even the best teams in the study still have a person touching roughly half of their invoices. Capture technology has been around for years, so this is not a reading problem. It is a judgement problem: the quantity received does not match the purchase order, the unit price drifted, the PO was never raised, the approver is on holiday, the vendor sent the same invoice twice from two email addresses.

That is our main point of view on AP agents. Data capture is largely solved and cheap. The value of an agent is in the exception queue. If a vendor demo spends twenty minutes on extracting fields from a messy PDF and two minutes on what happens when the match fails, you are being sold the easy half.

What the agent should do, task by task

The cleanest way to scope an AP agent is to list the jobs in your process and decide, for each one, whether the agent prepares, recommends or acts. Here is the split we would start from for a mid-sized company with purchase orders and an ERP.

AP taskAgent role at launchWhy
Invoice capture and field extractionActs, with confidence thresholdsErrors are caught by matching downstream; low-confidence fields go to review.
GL coding and cost centreRecommendsHistory makes good suggestions, but miscoding distorts reporting quietly.
Two- and three-way matchingActs (it is deterministic)Use rules for the match itself. The model explains failures, it does not do arithmetic.
Exception triage and explanationPreparesThe biggest time saving: a one-paragraph summary of what failed and what evidence exists.
Routine exception resolution (within tolerance)Recommends, then acts after shadow periodNarrow, well-defined cases such as small price variances or freight lines.
Vendor and requester follow-up emailsDrafts; a person sends at firstOutbound messages carry your name. Move to auto-send only for templated status replies.
Approval routingActs, by rulesThe agent attaches a summary so approvers decide faster. It never approves.
Duplicate and anomaly detectionFlagsCheap to run on every invoice and valuable even when it is wrong occasionally.
Vendor master changes (bank details, addresses)No accessThe highest-risk action in AP. Human only, with out-of-band verification.
Payment releaseNo accessSegregation of duties. An agent that prepares an invoice must not pay it.

Two design rules come out of this table. First, keep deterministic work deterministic. Matching quantities and prices against a PO is a rules engine job; a language model adds risk there and nothing else. Use the model for the messy edges: reading, explaining, drafting and classifying. Second, decide the boundary of autonomy per task, not per agent. "The agent handles AP" is not a scope. "The agent prepares every exception and resolves price variances under 2% after eight weeks of shadow testing" is.

The fraud problem changes the design

AP is where payments fraud lands, so any agent you put there becomes part of your control environment. The 2026 AFP Payments Fraud and Control Survey, released in April 2026 and based on 465 US treasury practitioners, found that 76% of organisations experienced attempted or actual payments fraud in 2025, and about three in four (74%) were affected by business email compromise. Only 17% said they use AI to combat payments fraud.

Business email compromise is exactly the attack an inbox-reading agent is exposed to. A fake "updated bank details" email, or an invoice from a lookalike domain, is aimed at whoever processes the inbox. If that is now an agent, three things follow.

  • No tool for the dangerous actions. Do not rely on the prompt to say "never change bank details". Simply do not give the agent an API that can. Same for payment release and approving its own work.
  • Treat documents as data, not instructions. An invoice PDF or email body can contain text written to steer a model. The agent should extract and summarise content, and nothing in a document should be able to change what tools it calls.
  • Make the agent a detector. The upside of reading every invoice is that the agent can compare each one with vendor history: a new remittance address, a bank account that differs from the master record, an invoice number pattern that changed, an amount far outside the usual range. Flagging these is low risk and high value.

The same logic applies to any agent that touches money, which is why we cover similar boundaries in our guide to what an AI claims intake agent costs to build.

RELATED SERVICE

Working on something like this? See our Claude Agent Development →

What it costs to run: the model is the cheap part

Buyers often assume the language model will be the expensive line item. For AP it almost never is. Anthropic's PDF support documentation says each page typically uses 1,500 to 3,000 text tokens, plus at most 1,568 image tokens. A two-page invoice is therefore around 9,000 input tokens at the high end. On Anthropic's pricing page, Claude Haiku 4.5 is listed at $1 per million input tokens and $5 per million output tokens.

Step (two-page invoice)Approx. tokensApprox. cost at Haiku 4.5 list price
Extraction to structured fields9,000 in / 800 out$0.013
Coding suggestion with vendor history3,000 in / 200 out$0.004
Exception explanation (only on failed matches)4,000 in / 400 out$0.006
Total, worst caseabout $0.02

These are our own estimates from list prices and the token ranges above, not a quote, and they will move with your document mix and model choice. Running a larger model on the hard cases might multiply the figure several times. It still sits far below the $2.78 that best-in-class teams spend per invoice, let alone the $9.40 average.

So where does the money go? Into three places:

  1. Integration. Reading POs and receipts from your ERP, writing coded invoices back, pulling vendor history and approval chains. This is usually most of the build effort, and it is where off-the-shelf tools either fit your stack or do not.
  2. Exception handling time that remains. The agent shortens exceptions; it does not remove them. If your exception rate is 14% and each one takes fifteen minutes of a person's time, that is the number to attack.
  3. Controls and evaluation. Audit logs of every agent proposal and every human override, an evaluation set built from past invoices, and monitoring once live. Finance teams and auditors will ask for this, and it is cheaper to design in than to add later.

Plan for structured e-invoices, not just PDFs

A lot of AP AI is built around reading PDFs. That is still necessary, but in some markets the input is changing under you. According to the European Commission's eInvoicing country page for Germany, businesses there must be able to receive EN 16931-compliant e-invoices from 1 January 2025. Businesses with turnover above EUR 800,000 can no longer issue paper or unstructured electronic invoices from 1 January 2027, and the requirement extends to all businesses by 1 January 2028, with an exception for the domestic small-business scheme. XRechnung, ZUGFeRD (in its XRechnung profile) and Peppol BIS Billing 3.0 are all accepted.

The practical implication for anyone selling to or buying from German companies: build your pipeline to accept structured invoices as a first-class input and use the model only for PDFs, scans and emails. Structured data removes extraction errors, but it does nothing for a quantity mismatch or a missing goods receipt. The exception layer is where your investment keeps paying off regardless of format.

Buy, extend or build: a decision matrix

Most companies should not build AP software from scratch. The question is where custom work earns its place.

Your situationRecommended routeWhat you own
Standard PO-based process, mainstream ERP, under a few thousand invoices a monthBuy an AP automation suite with built-in AI capture and approvalsConfiguration and approval rules
Suite handles capture, but your team still lives in the exception queueExtend: a custom exception agent that reads from the suite and your ERPException logic, prompts, evaluation set, audit trail
Unusual documents (utilities, freight, healthcare claims, multi-entity intercompany)Extend or build the capture and matching layer for those typesDocument models and matching rules for your edge cases
You are a fintech, spend management or vertical SaaS company offering AP to customersBuild: AP is part of your productThe whole workflow, UX, data model and agent
Very low volume, no POsNeither; a bill-pay tool and good inbox rules will doNothing custom

The middle option is underrated. Many finance teams already pay for a capable AP platform and are told the fix for their exception backlog is to upgrade tiers. Sometimes it is. Often the exceptions are specific to how the business buys: a supplier that always invoices freight separately, project codes that live in a separate system, a parent company whose subsidiaries share vendors. A narrow agent that knows those patterns, sits on top of the existing tools and prepares each exception for a human can be a small, contained build. If you are weighing a broader custom finance system instead, our guide to custom accounting software development covers that larger decision.

A seven-step pilot plan

  1. Baseline your numbers. Export three to six months of invoices with timestamps, exception codes and who touched them. Calculate your own cost per invoice, cycle time, exception rate and straight-through rate. Without these, nobody can say whether the agent helped.
  2. Rank your exceptions. Group them by cause and by total handling time. Pick the two categories that consume the most hours and have the clearest resolution rules.
  3. Build the evaluation set before the agent. Take a few hundred past invoices from those categories along with what your team actually did. This becomes the test the agent has to pass and the evidence you show your auditor.
  4. Wire up read-only access first. ERP purchase orders and receipts, vendor master (read only), invoice inbox, approval history. Write access comes later and only for drafting and routing.
  5. Run in shadow mode. The agent proposes coding and resolutions; your team works as usual. Compare proposals with decisions for at least several weeks of real volume, including a month-end.
  6. Design the review screen. Reviewers need the invoice, the PO, the mismatch and the agent's reasoning on one screen, with a one-click accept, edit or reject. Most of the time saving comes from this interface, not from the model.
  7. Expand autonomy one category at a time. When acceptance rates are consistently high for a category and override reasons are understood, let the agent resolve that category within tolerance. Keep logging every decision.

What to measure after launch

MetricWhy it matters
Exception rate and time to resolve an exceptionThe core value of the agent. Should fall within weeks.
Straight-through processing rateComparable with external benchmarks such as Ardent's 49.2% best-in-class figure.
Proposal acceptance rate, by categoryShows where the agent can be trusted with more autonomy.
Override reasonsThe best source of improvements to prompts, rules and data access.
Anomalies flagged and confirmedEvidence the agent is strengthening controls, not weakening them.
Cost per invoice, all-inInclude model, platform and people time, so the comparison is honest.

The short version

An AP agent is worth building or buying if it shrinks the exception queue while making your controls stronger. It is not worth it if it mainly re-solves invoice capture you already pay for, or if it needs access to vendor bank details to work. Measure your exceptions first, let the agent prepare before it acts, and keep money movement with people.

How Northell can help

We design and build fintech products and AI agents, and AP automation sits where those meet. A typical engagement starts with your exception data and ERP access, then a narrow shadow-mode agent with a review interface your finance team actually wants to use. If AP is part of your own product, our AI for fintech and AI development teams can take it from workflow design to production. If you want a second opinion on a vendor proposal or a pilot plan, get in touch.

Northell Team

Part of Northell's engineering and content team — the people who build production software, AI systems, and fintech infrastructure, and write about what actually works.

Frequently Asked Questions

What can an AI agent actually automate in accounts payable?

Reliably: reading invoices into structured fields, proposing GL coding from history, running two- and three-way matching, explaining why a match failed, drafting emails to vendors or internal requesters, and routing the invoice to the right approver with a summary. With care and a shadow period: resolving small, well-defined exceptions such as tolerance-level price variances or freight lines. Not at all: releasing payments, approving its own work, or changing vendor master data such as bank accounts.

How much does it cost to run an AI model on each invoice?

Less than most buyers expect. Anthropic's documentation says a PDF page typically uses 1,500 to 3,000 text tokens plus up to 1,568 image tokens. A two-page invoice therefore lands around 9,000 input tokens. At Claude Haiku 4.5's list price of $1 per million input tokens and $5 per million output tokens, extraction plus a short structured answer costs roughly one to two cents. Even if you run three or four model calls per invoice, the model bill stays well below the human cost of touching a single exception.

Should we buy an AP automation platform or build a custom AI agent?

Most companies should buy for capture, approvals and payments, because those are commodity workflows with mature vendors and built-in payment controls. A custom agent makes sense in two situations: when your platform already captures invoices but your team still spends most of its time on exceptions specific to your business, or when you are a fintech or vertical SaaS company putting AP features inside your own product. In the second case the AP workflow is your product, so owning it is usually the right call.

How do we stop an AI agent from paying a fraudulent invoice?

Design it so it cannot. Give the agent read access and the ability to draft, flag and route, but no tool that changes vendor bank details, approves an invoice it prepared, or releases a payment. Treat everything inside an invoice or email as untrusted data, because a document can contain text written to manipulate a model. Keep callback verification for bank detail changes with a person, using a phone number already on file rather than one from the request. The agent's useful role in fraud is spotting anomalies, such as a changed remittance address or an unusual amount, and escalating them.

Does e-invoicing make AI invoice extraction unnecessary?

Over time it reduces the need for it in some markets, which is a good reason not to overbuild PDF extraction. In Germany, businesses have had to be able to receive EN 16931-compliant e-invoices since 1 January 2025, larger businesses must issue them from 2027 and nearly all businesses by 2028. Structured invoices remove most extraction errors, but they do not remove exceptions: a perfectly structured invoice can still fail a three-way match. The agent's exception work stays valuable either way.

What should we measure in an AP agent pilot?

Start with numbers you already have or can export: cost per invoice, invoice cycle time, exception rate, straight-through processing rate and duplicate or erroneous payments caught. Add agent-specific measures: how often reviewers accept the agent's proposed coding or resolution unchanged, how often they override it, and how long an exception takes to close with and without the agent's preparation. Run the agent in shadow mode first so you can compare its proposals with what your team actually did.

GET STARTED

Need Engineers Who Ship This, Not Slides?

Tell us what you're building. A senior engineer replies within one business day with an honest read on scope, timeline, and fit — no sales rep in between.

Get a free scoping call

BONUS Book before the end of the month and we'll include a free build-vs-buy cost model for your specific project — no obligation, yours to keep either way.

We reply within one business day. No spam, no obligation.