- Home
- Skills
- Workflow Automation
- Document AI Invoice Reconciler
Document AI Invoice Reconciler
Extract line items and perform 3-way arithmetic reconciliation and PO audits on commercial invoices.
$1
Document AI Invoice Reconciler
Example session with this skill installed
Audit the invoice in ./data/invoices/INV-8829.txt and check for 3-way matching and PO compliance. Output the result as a table.
- Read your context and instructions
- Compiled the document ai invoice
I have parsed INV-8829.txt and performed a 3-way arithmetic audit. I checked the line item totals against the subtotal and verified the tax and shipping calculations.
Invoice Audit Results: INV-8829
| Field | Extracted Value | Status |
|---|---|---|
| Vendor | TechFlow Solutions | Valid |
| Tax ID | VAT-9928374 | Found |
| PO Reference | PO-2024-001 | Found |
| Subtotal | $1,250.00 | Matches Lines |
| Tax (8%) | $100.00 | Arithmetic Valid |
| Shipping | $15.00 | Verified |
| Grand Total | $1,365.00 | APPROVED_FOR_PAYMENT |
Line Item Breakdown
| SKU | Description | Qty | Rate | Total |
|---|---|---|---|---|
| TF-101 | Cloud Compute Units | 10 | $100.00 | $1,000.00 |
| TF-202 | Storage Volume (1TB) | 5 | $50.00 | $250.00 |
Next steps
- Run
python3 run_pipeline.py --dashboardto inspect the zone layout visually. - Export this record to the master ledger using the
--output ./exportsflag. - Forward the
APPROVED_FOR_PAYMENTstatus to the ERP webhook.
Connects securely to your tools. The creator never sees your data.
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
- Batch mode processes an entire directory of invoice files to generate a consolidated export.
- Single file mode parses a specific invoice and returns a structured JSON object to stdout.
- Dashboard mode builds an interactive HTML5 interface to compare raw document layouts against extracted data.
- Audit tagging assigns status codes like
APPROVED_FOR_PAYMENTorFLAGGED_ARITHMETIC_MISMATCHbased 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
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 8 days ago
Permissions
What's inside
Frequently Asked Questions
New in Workflow Automation
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Workflow Automation.