Selected work
CASE STUDYn8nFinanceAI AgentsSAMPLE CLIENT

AI Invoice Processing & Approval

Reads invoices from Gmail, skips duplicates, has AI pull out the details, checks them against purchase orders and delivery records, gets approval in Slack and adds the bill to QuickBooks. Built for construction, including progress payments, retention and lien waivers.

ORGANISATION
Construction Finance
ROLE
AI Automation Specialist
PLATFORM
n8n
Animated explainer

Key outcomes & impact

Every invoice checked against the PO and delivery record before anyone approves it.

Approvers see the issues already flagged, and only approved bills reach QuickBooks.

3-way

Invoice, PO & delivery match

Each invoice is checked against its purchase order and delivery record before an approver sees it, so overbilling and missing deliveries are already flagged.

2

Duplicate checks

Once before the AI reads the invoice and once after, by vendor and invoice number, so a bill sent twice is never paid twice.

100%

Invoices logged

Approved, rejected or flagged, every invoice is logged with its outcome, so finance can see what happened to any bill and why.

The problem

Construction invoices arrived by email and were checked by hand against purchase orders, delivery records and contract values. Progress payments made it easy to pay for the same work twice, pay in full when retention should be held back, or pay without a signed lien waiver.

What I built

Built an n8n workflow that picks up invoice emails every 5 minutes, skips duplicates, has AI extract every billing figure, and checks them with fixed rules against the purchase order and delivery record in Airtable. Clean invoices go to the budget owner and invoices with issues to accounts payable, both in Slack. Approved bills are added to QuickBooks at the amount to pay after retention, and every outcome is logged.

Tools used

n8nQuickBooksGmailAirtableSlackOpenAI

When something goes wrong

Nothing posts without approval

Every bill is approved by a person in Slack before it reaches QuickBooks, and anything uncertain is checked first.

AI confidence checkIf the AI is less than 80% sure it read the invoice correctly, a person confirms the details before anything else happens.
Construction rulesProgress payments must add up, stay within the contract value, hold back retention and include a lien waiver.

The full story

About this build

Built in n8n for Braewick Construction Group, a fictional sample client. The workflow itself is real and complete.

The problem

  • Manual matching. Each invoice was compared by hand with the purchase order and delivery record.
  • Duplicate payments. The same invoice re-sent in a new email could be paid twice.
  • Progress payment risk. Paying more than the contract value, skipping retention or paying without a lien waiver.
  • Slow approvals and no single record of what was posted, rejected or held.

What I built

  1. Receive the invoice. Every 5 minutes, Gmail is checked for unread emails with a PDF. Scanned images with no readable text go to the team instead of the AI.
  2. Skip duplicates. Each email and file is checked against the invoice log before any AI cost, and again by vendor and invoice number after reading.
  3. AI reads the invoice. Vendor, PO and job numbers, cost code, invoice type, billing to date, amounts already approved, retention and lien waiver, never invented.
  4. Compare with records. If the AI is unsure, a person checks the details in Slack. The invoice is then compared with the purchase order and delivery record in Airtable.
  5. Approval in Slack. Invoices with issues go to accounts payable; clean ones to the budget owner. The workflow waits up to 2 days for an answer.
  6. Add to QuickBooks and log. The vendor is found in QuickBooks, the bill is added at the amount to pay after retention, and every outcome is logged. The email is marked as read.
  7. Error alerts. Failures go to Slack and an error log, with the invoice flagged for manual entry.

Safeguards

  • Two duplicate checks, before and after the AI reads the invoice.
  • Fixed rules check the numbers: amounts within 2% of the PO and delivery record, billing that adds up, retention held, lien waiver attached.
  • A person approves every bill before it reaches QuickBooks, through a short Slack form, so a link preview can never approve one by accident.
  • Missing vendors are never guessed: the bill is held and the team alerted.

Outcomes

  • Every invoice is matched against its PO and delivery record automatically.
  • Approvers see the issues already flagged and decide in Slack.
  • QuickBooks only receives approved bills, at the right amount, with a full log behind them.

What are you still
doing by hand?

Tell me the process that eats your week. I will tell you whether it is worth automating, and on which platform.