---
name: automated-invoice-and-purchase-order-reconciliation
description: "Reconciles incoming vendor invoices against purchase orders and ledger records by extracting line items, unit costs, and tax totals, then flagging price variances, over-delivery quantities, and unrecognized items. Use for nightly accounting reviews or batch PDF invoice discrepancy checks."
license: CC-BY-4.0
compatibility: "Needs access to: PDF files, Spreadsheet, Database, Email."
metadata:
  author: "BotBento Editorial"
  version: "2026-10-15"
  source: "https://botbento.com/usecases/automated-invoice-and-purchase-order-reconciliation/"
  kind: workflow
  hermes:
    tags: ["accounting", "finance", "invoices", "reconciliation"]
    category: ops
    requires_toolsets: ["file"]
---
# Automated invoice and purchase order reconciliation

Match incoming invoices against purchase orders and flag ledger discrepancies

## When to use

Process incoming vendor invoices and compare them with existing purchase orders and ledger records. Extract line items, unit costs, and tax totals from document files, evaluate discrepancies or missing items, and generate reconciliation batches for accounting review.

## Inputs

- `invoice_documents`: Incoming vendor PDF invoices containing supplier details, line items, and billed amounts.
- `purchase_orders`: Recorded purchase orders from the database to compare against invoice line items.
- `ledger_records`: Existing ledger records used to check billed amounts and reconciliation context.

## Steps

1. On a schedule: Nightly ledger reconciliation run (Nightly scheduled ledger reconciliation run.). Schedule: `0 0 * * *`
2. Cross-check invoice line items with POs
3. Discrepancy report for review

## Instructions

Inspect incoming PDF invoices and extract supplier details, line items, and billed amounts. Compare each item against recorded purchase orders in the database. Flag price variances, quantities over delivery limits, and unrecognized line items in a reconciliation spreadsheet. Do not post ledger adjustments, trigger payments, or send dispute notices to vendors without explicit human confirmation.

## Approvals

- Posting ledger adjustments requires explicit human confirmation.
- Triggering payments requires explicit human confirmation.
- Sending dispute notices to vendors requires explicit human confirmation.

## Output

Reconciliation spreadsheet with flagged price variances, over-delivery quantities, and unrecognized line items for accounting review. (format: spreadsheet)

## Source

Summarized in our own words from [Show HN: Agent framework that generates its own topology and evolves at runtime](https://news.ycombinator.com/item?id=46979781) (Hacker News, checked 2026-10-15). Any results described there are the authors’ own.

From the BotBento use-case directory: https://botbento.com/usecases/automated-invoice-and-purchase-order-reconciliation/. Licence: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
