# Document AI Invoice Reconciler

> Extract line items and perform 3-way arithmetic reconciliation and PO audits on commercial invoices.

Document AI Invoice Reconciler is a paid AI agent skill on Agensi by lambert patrick, in Workflow Automation. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $1 (one-time purchase)
- Creator: [lambert patrick](https://www.agensi.io/creators/lambert-patrick)
- Category: [Workflow Automation](https://www.agensi.io/skills/workflow-automation)
- Version: 1.0
- Last updated: 2026-11-26
- Security: scan passed (2026-11-26); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/document-ai-invoice-reconciler
- Tags: finance-accounting, python, automation, data-extraction, audit

## About this skill

Manual invoice data entry is slow and error-prone. This skill automates the extraction of line items and performs a mathematical audit to verify billing accuracy and PO compliance.

### What it does
- **Multi-zone parsing** separates document headers, line-item tables, summary blocks, and payment terms for structured extraction.
- **Line-item extraction** captures SKU, description, quantity, unit rate, and extended totals from complex document layouts.
- **Arithmetic auditing** runs a 3-way check to flag rounding anomalies or mismatched totals within a $\pm$0.05 tolerance.
- **Compliance checking** verifies the presence of required Tax IDs (EIN, VAT, CVR) and Purchase Order (PO) references.
- **Multi-format exporting** generates itemized CSV ledgers, styled Excel workbooks, or interactive HTML5 dashboards.

### How it works
1. **Batch mode** processes an entire directory of invoice files to generate a consolidated export.
2. **Single file mode** parses a specific invoice and returns a structured JSON object to stdout.
3. **Dashboard mode** builds an interactive HTML5 interface to compare raw document layouts against extracted data.
4. **Audit tagging** assigns status codes like `APPROVED_FOR_PAYMENT` or `FLAGGED_ARITHMETIC_MISMATCH` based on reconciliation results.

### Frameworks & tools
Built for Python environments using regex-based matrix parsing and coordinate-free layout analysis. It generates outputs compatible with OpenPyXL, standard CSV parsers, and modern web browsers via HTML5.

### Why this beats prompting it yourself
Standard prompts often fail at multi-row tabular extraction or hallucinate arithmetic totals. This skill uses a dedicated 3-way reconciliation engine to mathematically prove the integrity of the invoice data before flagging it for payment.

### Use cases
- Auditing bulk vendor invoices for arithmetic errors and rounding discrepancies.
- Automating the ingestion of SKU-level data into accounting or ERP systems.
- Verifying supplier compliance with tax identification and PO requirements.
- Creating visual audit trails for financial controllers via HTML5 dashboards.

### Known limitations
Requires invoice text or OCR-processed PDF content. Arithmetic checks have a hardcoded $\pm$0.05 tolerance for rounding errors.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Document AI Invoice Reconciler skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What environments or AI agents is this skill compatible with?

This skill is designed for any Python-based AI agent environment and produces standard formats like JSON, CSV, and Excel, making it easy to integrate with existing accounting software and ERP workflows.

### How does the arithmetic auditing prevent errors compared to a standard LLM prompt?

Unlike general prompts, this skill uses a specialized 3-way reconciliation engine to mathematically verify totals, preventing the 'hallucinations' or rounding errors common in standard LLM outputs.

### What exactly is included in the purchase of this skill?

You receive the core Python-based reconciliation logic, templates for CSV and Excel exporting, and the HTML5 dashboard generator, along with a guide for batch and single-file processing.

### Do my invoices need to be in a specific digital format to work with this skill?

The skill can process any PDF or image-based invoice as long as it has been pre-processed with an OCR layer or contains selectable text data.

### Does this skill require different configurations for every new vendor invoice layout?

The skill uses coordinate-free layout analysis, allowing it to accurately identify and extract SKU, quantity, and rate data from diverse vendor layouts without needing custom templates.

### How does the skill handle minor rounding discrepancies in currency calculations?

The system includes a hardcoded ±0.05 tolerance for rounding; anything exceeding this threshold is automatically assigned a 'FLAGGED_ARITHMETIC_MISMATCH' status for human review.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
