Document AI Invoice Reconciler

    by lambert patrick

    1

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

    $1

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    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

    FieldExtracted ValueStatus
    VendorTechFlow SolutionsValid
    Tax IDVAT-9928374Found
    PO ReferencePO-2024-001Found
    Subtotal$1,250.00Matches Lines
    Tax (8%)$100.00Arithmetic Valid
    Shipping$15.00Verified
    Grand Total$1,365.00APPROVED_FOR_PAYMENT

    Line Item Breakdown

    SKUDescriptionQtyRateTotal
    TF-101Cloud Compute Units10$100.00$1,000.00
    TF-202Storage Volume (1TB)5$50.00$250.00

    Next steps

    1. Run python3 run_pipeline.py --dashboard to inspect the zone layout visually.
    2. Export this record to the master ledger using the --output ./exports flag.
    3. Forward the APPROVED_FOR_PAYMENT status 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

    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

    1. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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.

    Frequently Asked Questions

    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.

    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.

    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.

    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.

    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.

    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.

    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.