AI Agent · Finance Automation2026

Dave — autonomous invoicing agent

Email-driven agent that parses contractor invoice requests, cross-verifies against Business Central, generates and finalizes invoices fully autonomously.

70+ h

of manual invoicing removed every month

Client
Kintec Global
Year
2026
Type
AI Agent · Finance Automation

What was the problem?

Kintec manages contractor invoicing across complex finance workflows. Every invoice meant manual parsing of email requests, cross-checking against Business Central, generating documents, validating, and finalizing — 70+ hours a month of repetitive work, error-prone, and impossible to scale.

A contractor's invoice request arrives as an email written however the contractor felt like writing it. Someone at Kintec had to read it, work out which contractor and job it belonged to, check it against Business Central, build the invoice, check it again and finalize it. That is the same sequence for every request, and a mismatched name or a mistyped amount is easy to miss at that volume.

Business Central was the system of record, and that set the design brief. The agent would not earn trust by being clever with email. It had to earn it by checking every figure against Business Central before it did anything with money.

How did I approach it?

The agent is driven by email on purpose. Contractors already email their requests, so the interface is the one they already use: you email Dave. There is no portal to learn and no form to fill in.

The order of the work matters more than the model. The agent turns the free-form request into structured fields first, verifies those fields against Business Central second, and only then generates the invoice. Validation against accounting rules and historical patterns comes before the payment workflow is finalized. The model's job is reading the request, and every figure still has to survive a check against the system of record.

Business Central offers two kinds of interface and the integration uses both: its REST API for documents such as purchase invoices, and OData web services for lookups such as jobs and job tasks. The Business Central work sits in a small service of its own that authenticates with a Microsoft Entra app registration and handles the document and lookup calls.

What did I build?

  1. Parse
  2. Cross-verify
  3. Generate
  4. Validate
  5. Finalize
  1. 1Parses incoming requests from contractors in free-form natural language.
  2. 2Cross-verifies all data against the Kintec Business Central database via REST + OData endpoints.
  3. 3Generates the invoice with the correct posting logic.
  4. 4Validates against accounting rules and historical patterns.
  5. 5Finalizes the payment workflow — no human in the loop.

What did each step replace?

Each step of the flow took over one piece of the manual work described above.

StepDone by hand beforeDone by the system now
ParseManual parsing of email requests.Parses incoming requests from contractors in free-form natural language.
Cross-verifyCross-checking against Business Central by hand.Cross-verifies all data against the Kintec Business Central database via REST + OData endpoints.
GenerateGenerating the documents by hand.Generates the invoice with the correct posting logic.
ValidateValidating each invoice by hand.Validates against accounting rules and historical patterns.
FinalizeFinalizing each invoice by hand.Finalizes the payment workflow, with no human in the loop.

How does it handle the hard parts?

  • How does it know which Business Central vendor a contractor is?

    Kintec's contractor IDs are not Business Central vendor numbers, so the match is made in a fixed order. First a vendor number is derived from the contractor ID and looked up directly. If that fails, the contractor's email is matched exactly. If that fails too, the service returns a ranked list of name matches but never picks one itself. It never creates a vendor either. An unresolved contractor stops with a clear result for a person to settle. In testing, the direct match found the vendor for almost every contractor.

  • How does it choose the job and the account to post against?

    Each invoice line carries a Business Central job, a job task and a general ledger account. Kintec's own job numbers do not match Business Central's, so when no job is given it is looked up from the contractor's name, ignoring case and trying shorter name fragments if the full name finds nothing. The job task is only inferred when the job has exactly one posting task. With none, or several, it stops and asks for one instead of guessing. The ledger account comes from the contract or a finance-owned routing rule.

  • What does posting an invoice involve?

    Creating a Business Central purchase invoice is several calls, not one. The service creates the invoice with the vendor, the contractor's invoice number and the invoice and posting dates, adds each line with its own line number, account, quantity, unit cost, job and task, and then calls Business Central's post action. Dates default to today, and the posting date follows the invoice date. The result is read back with its lines and total, along with whether posting succeeded and any error, so a half-finished invoice shows up instead of passing silently.

  • What can it not work out for itself?

    A few inputs cannot be derived from what Kintec's own system holds, so they are supplied per contract or submission: the Business Central job number, the job task when a job has more than one, the default ledger account, and the quantity that splits a line amount into quantity times unit cost. Naming these up front is part of the design. The agent should ask for what it cannot verify rather than fill the gap with a guess.

  • How was the Business Central side tested?

    It was verified end to end against Kintec's Business Central UAT (test) environment in April 2026. A purchase invoice and a sales invoice were each created, posted and read back, and the evidence was kept as files alongside the code.

  • Does it really run with no human in the loop?

    For standard invoice cycles, yes. Standard is deliberate. A request that cannot be matched to exactly one vendor and job is not invoiced on a guess. It stops with a clear result instead.

What was the result?

  • 70+ hours a month of manual contractor invoicing removed.
  • Contractors email Dave; Dave parses, checks, invoices and finalizes.
  • Standard invoice cycles run with no human in the loop.

The hours are the visible saving. The less visible one is consistency: every request now goes through the same checks in the same order, whoever would otherwise have read the email.

What is it built with?

  • Python
  • FastAPI
  • LLM agent
  • Email parsing
  • Business Central API (REST + OData)
  • Python and FastAPI: the agent, and the small service that talks to Business Central
  • LLM agent: reads each free-form request and turns it into structured fields
  • Email parsing: requests arrive by email, so the mailbox is the interface
  • Business Central API (REST + OData): REST to create and post invoices, OData to look up jobs and job tasks; the service caches its access token until shortly before it expires
  • ai agent
  • finance automation
  • business central
  • email-driven

Related guide

  • How to automate repetitive work — How to automate repetitive tasks: score the work, pick a tool from formulas to custom code, automate data entry from email or PDF, and avoid common pitfalls.

Have a similar problem? Let’s scope it.