Every bill your business gets is touched the same way. Someone opens it, reads it, types it into QuickBooks, chases someone for an OK, and pays it. Accounts payable automation takes over the reading, the typing and the chasing. It leaves you the one decision that needs a person: should we pay this?

This guide walks through how that works stage by stage, what to set up first, the Canadian tax detail most setups miss, and the three places AP automation fails without anyone noticing.

What accounts payable automation actually does

AP automation is the set of steps between a bill arriving and a bill being paid, handed to software instead of a person. For a small business it usually breaks into six stages:

  1. Capture. Every bill lands in one place.
  2. Extract. The vendor, invoice number, invoice date, due date, subtotal, GST/HST or QST, total and line items get pulled out of the PDF.
  3. Code. Each bill gets its expense account, tax code and class or location.
  4. Check. Totals add up, the vendor is known, the bill isn't a duplicate, and the tax looks right.
  5. Approve. The bill goes to the right person based on amount or vendor.
  6. Pay and sync. The payment is scheduled and the bill is marked paid in your books.

Most small businesses should automate stages 1 to 5 and keep stage 6 in their own hands, in their bank's bill pay. That's where the money actually moves, and it's where the fraud happens. More on that below.

Start with one inbox, not with software

Half the work in accounts payable is finding the bill. It's in someone's personal email, a vendor portal, a text photo, the glovebox. Before you automate anything, create one address, something like bills@yourcompany.ca, and send it to every vendor. Then add a forwarding rule from the old inboxes so stragglers still arrive.

This one step makes everything after it possible, because an automation can only watch one place reliably.

Extraction is where AI earns its place

Old invoice capture tools used templates: you taught them where the total sits on each vendor's layout, and they broke when a vendor changed theirs. Claude and GPT read a bill the way a person does, so one setup handles every layout.

A working version in Zapier or Make looks like this:

  1. Trigger: a new email with an attachment arrives in the bills inbox.
  2. Read: send the PDF to Claude or GPT with a fixed output format.
  3. Validate: a code step checks the numbers (rules below).
  4. Create: make a draft bill in QuickBooks Online, never a final one.

The output format matters more than the prompt. Ask for exactly this shape:

{
"vendor_name": "",
"vendor_gst_hst_number": null,
"vendor_qst_number": null,
"invoice_number": "",
"invoice_date": "YYYY-MM-DD",
"due_date": "YYYY-MM-DD",
"subtotal": 0.00,
"gst_hst": 0.00,
"qst": 0.00,
"total": 0.00,
"currency": "CAD",
"unreadable_fields": []
}

Three instructions do most of the work. Tell the model to return null when a field isn't on the page, never a guess. Tell it to copy tax amounts exactly as printed, not calculate them. And tell it to keep the invoice number as text, because "000482" and "482" are different invoices to your books.

Then the code step checks what the model returned:

  • Subtotal plus taxes equals the total, within one cent.
  • The due date isn't before the invoice date.
  • The vendor already exists in QuickBooks. A new vendor always goes to a person.
  • Nothing is listed in unreadable_fields. If something is, the bill goes to a review queue instead of into your books.

The Canadian part: the tax lines decide what you can claim

Here's where generic AP guides, mostly written for the US, fall short. To claim input tax credits, the CRA expects different details on a bill depending on its size. Under $100, you need the basics. From $100 to $499.99, the bill must show the supplier's GST/HST registration number and the tax charged. At $500 or more, it also needs your business name, the payment terms and a description of what you bought.

So extract the supplier's registration number every time, and flag any bill of $100 or more that doesn't have one. That flag catches the bills your accountant would otherwise question at year end, while the vendor still answers emails. In Quebec, pull the QST number and amount as separate fields.

Don't let the model work out the tax. Have it read what's printed, then check that the tax divided by the subtotal matches the rate you expect from that vendor's province. A mismatch usually means a misread, or an out of province vendor charging the wrong rate.

Write the approval rule before you automate it

Automation can't fix an approval process that only exists in someone's head. Write it down in one or two lines first. For example:

  • Under $500 from a known vendor: goes straight in as a draft bill.
  • $500 or more: goes to the owner.
  • Any new vendor, at any amount: goes to the owner.

Once the rule is written, routing is easy to build, and every step of it is visible. We go deeper on routing in our guide to approval workflow automation. If you're giving the reading step to an AI agent, the same thinking decides when an AI agent should stop and ask a human.

Three places AP automation fails quietly

Duplicates. The same invoice gets emailed twice, or arrives as a PDF and later as a phone photo of the paper copy. Filenames won't catch it. Check for duplicates on vendor, invoice number and total together, and hold anything that matches.

Bank detail changes. An email saying "we've changed banks, please update our details" is one of the most common ways businesses lose money through payables. Never let an automation change a vendor's banking details. Verify every change by phone, using a number you already had, not one from the email.

Confident misreads. A blurry scan can produce numbers that look perfectly reasonable. That's why the unreadable_fields list and the totals check exist. A bill that passes every check is ready for approval. One that fails any check goes to a person, and the automation says why.

What to automate first

Build it in this order, and run each stage for a couple of weeks before adding the next:

  1. One bills inbox.
  2. Extraction into draft bills.
  3. The totals, duplicate and tax checks.
  4. Approval routing.
  5. Leave payment in your bank.

Time a handful of bills before you start, from opening the email to the draft bill in your books. Then time them again after step 3. On AsLynx document work for clients, per document handling time went from 4 to 6 minutes to about 30 seconds. Your number will depend on how messy your bills are, so measure your own.

If you use QuickBooks Online or Sage

Both have their own bill capture built in. QuickBooks Online lets you forward bills by email, and Sage offers AutoEntry. If you get a few dozen simple bills a month, start there and see how far it takes you.

A custom flow like the one above makes sense when you need your own approval rules, the Canadian tax checks, duplicate protection that spans email and paper, or bills going into more than one system.

For the bigger picture of what else in your books can run this way, see our page on accounting automation. Payables is also only half of it: the same pattern, pointed the other way, chases the money customers owe you.

How this works in Spirit

Spirit is AsLynx's document processing platform, and it does the capture, extract and check stages described above for accounting and bookkeeping firms. It reads the bills that come in by email, pulls out the fields your rules ask for, and sends them into the software you already use, so nobody retypes an invoice.

The rules come from a rules session: a call before your workspace goes live where you write your first rules together, covering what to extract and where each field goes. Bills Spirit enters into QuickBooks Online wait for approval until a person OKs them, so the decision to pay stays yours.

Try Spirit free with 150 credits, no credit card needed.