Lovergil Perillo
All projects

AI agent

Invoice Assistant Agent - Code-Based AI Agent

An AI agent for accounts payable, as a web app and a Windows desktop app. Ask about invoices in plain English, approve or reject flagged ones, and reconcile vendor and bank statements in seconds: it finds every difference and explains the balance gap to the cent. Nothing is approved or rejected until a person confirms and gives a reason.

Runs on your own computer with a Claude subscription or an Anthropic API key, so there is no public live demo. All screenshots use sample (demo) invoices.

The problem

At month-end, an accounts payable clerk puts each vendor's statement next to the company's own records and compares them line by line to find out why the balances don't match. That often takes about an hour per statement. Everyday questions (what's flagged, what's overdue, how much do we owe this vendor?) also mean digging through reports.

What it saves

  • Statement reconciliation goes from about an hour to seconds (estimate). In my test, a full vendor statement took about 11 seconds.
  • Nothing is left unexplained: every difference is listed with the next step, so the clerk only has to act on it, not hunt for it.
  • No retyping: vendor emails are drafted from the results, so the invoice numbers and amounts are already correct.
  • Quick answers: questions that normally mean running a report are answered in about 7 to 14 seconds.

What it does

  • Runs as a web app in the browser and as a Windows desktop app (installer with Start-menu and Desktop shortcuts). Both use the same agent, tools and safety rules, and there's a terminal chat for developers.
  • Reconciles vendor statements and bank statements against your invoices and payments. It finds every difference: invoices missing on either side, amounts that don't match, payments the vendor hasn't applied, and payments that haven't cleared the bank.
  • Explains the balance gap to the cent and suggests the next step for each difference, such as "ask for a copy of the invoice" or "send the remittance".
  • Answers everyday questions in plain English: what's flagged and why, what's overdue, how much you spent with a vendor, and last week's report.
  • Approves or rejects flagged invoices only after a person clicks Yes and gives a reason. The app asks, not the AI, and nothing changes otherwise.
  • Drafts the email to the vendor straight from the reconciliation results (it never sends anything), and saves the results as a CSV report.
  • Never makes up numbers: every amount comes from the company's records or the statement file, and the matching rules are written in code.

What I saw when I tested it

  • Northwind Office Supply's October statement: 28 items matched (16 invoices and 12 payments), 4 differences found, and the $2,217.68 balance gap fully explained ($0.00 left unexplained).
  • "Why was HLP-12579 flagged?": it correctly said the only reason is the $5,000 approval limit (the total is $6,856.99), and that the math, vendor and purchase order all check out.
  • Approving that invoice: the app asked for confirmation first. I answered No, and nothing was changed.
  • 38 automated tests, plus a check of 13 real questions where the AI must use the right tool and give the right answer: 13 of 13 passed (Oct 29, 2026).

Built with

TypeScriptNode.jsClaude (Anthropic API + Claude Agent SDK)Supabase (Postgres)zodElectron

Screenshots

  • The agent reconciles Northwind Office Supply's October statement: 28 items matched, 4 differences with a suggested action each, and the $2,217.68 balance difference fully explained.
    Reconciling Northwind Office Supply's October statement: 4 differences, each with a suggested next step, and the $2,217.68 balance gap fully explained.
  • Invoice Assistant in dark mode explaining that invoice HLP-12579 from Harbor Legal Partners ($6,856.99) was flagged because it is over the $5,000 approval limit.
    "Why was HLP-12579 flagged?" Over the $5,000 approval limit; everything else checks out.
  • Confirmation dialog: Approve HLP-12579 from Harbor Legal Partners for $6,856.99? with "No, keep it flagged" and "Yes, approve" buttons.
    Approving needs a person: the app asks first, and nothing changes unless you click Yes.
  • The Invoice Assistant Windows desktop app window with suggested questions.
    The Windows desktop app: the same assistant in its own window.
  • Invoice Assistant web app: a chat for accounts payable with suggested questions about flagged invoices, vendor spend and statement reconciliation.
    The web app's start screen, with suggested questions about invoices, vendors and statements.
  • Invoice Assistant web app start screen in dark mode.
    The same start screen in dark mode.
Part of the same invoice systemInvoice Reporting Dashboard - WebsiteWorks with the same invoice data as the Invoice Reporting Dashboard. The dashboard shows the numbers; this assistant answers questions and takes action on them.