# Invoice Extractor with Human Approval

> Turn invoice PDFs, scans and photos into a clean CSV. Your agent extracts 7 header fields, deterministic checks catch wrong totals, ambiguous dates and duplicates, and nothing is exported until you approve. Offline, no API key.

Invoice Extractor with Human Approval is a free AI agent skill on Agensi by VISHNU VARTHAN T, in Finance & Accounting. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [VISHNU VARTHAN T](https://www.agensi.io/creators/vishnu-varthan-t)
- Category: [Finance & Accounting](https://www.agensi.io/skills/finance-accounting)
- Version: 1.0
- Last updated: 2026-11-30
- Security: scan passed (2026-11-30); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/invoice-extractor-with-human-approval
- Tags: finance, automation, database, python, ocr, accounting, data-extraction, invoices

## About this skill

Turn invoice PDFs, scans and photos into a clean, verified CSV, with you approving every record.

Your agent extracts vendor, invoice number, date, currency, subtotal, tax and total, quoting the exact line where it found each one. Then a deterministic checker, not the model, verifies the result.

**What gets checked**
- **Arithmetic:** subtotal + tax must equal the total. Discount and shipping lines it can't model are flagged instead of silently accepted.
- **No guessing:** ambiguous dates like 03/04/2026 and amounts like 2.000 are never guessed.
- **Duplicates blocked:** same file, or same vendor + invoice number already in your ledger.
- **Evidence check:** every quote is checked against the real document text, so invented values get caught.
- **Sanity rules:** implausible dates, negative amounts and unsupported currencies are flagged.

You review the table, correct anything with one command, and approve. Only approved records go into the CSV ledger, which is append-only, duplicate-safe and protected against spreadsheet formula injection. Nothing is ever auto-approved.

**Works on real-world invoices**
- Digital PDFs use their embedded text; scanned pages and phone photos go through Tesseract OCR with auto-rotation.
- Handles US, European and Indian number formats (1,234.56 / 1.234,56 / 1,23,456.00).
- PDF (up to 5 pages), PNG and JPEG.

**Private and free to run**
- Runs locally. No API key, no per-call cost, and the scripts make no network calls; your agent does the reading.

**Not included in v1:** line items, credit notes, payments, accounting-software integrations.

Built from AI-invoice-processor, my open-source project with 104 tests and a measured evaluation harness.

## Requires

- Python

## Known limitations

Supports only 7 header fields; no line items or credit notes. Max 5 pages/10MB per file. Requires Tesseract for images/scans. Local CSV export only.

## 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 Invoice Extractor with Human Approval skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does this skill prevent the common 'hallucinations' found in standard AI invoice processing?

Unlike raw LLM prompts that may hallucinate totals, this skill uses deterministic Python scripts to cross-check extracted numbers against accounting rules and requires a human-in-the-loop approval before any data is exported.

### What file formats are supported for invoice extraction?

This skill supports digital PDFs, scanned documents, and image files (JPG/PNG). For non-digital scans, it utilizes Tesseract OCR to accurately convert image data into machine-readable text.

### Can this skill extract individual line items from an invoice?

The skill is designed to capture seven core header fields: vendor name, invoice number, date, currency, subtotal, tax amount, and grand total. It is currently optimized for these header fields and does not process individual line items.

### What's included in this skill?

It includes the full Python-based workflow, the extraction and validation scripts, and the documentation needed to integrate the 'human-in-the-loop' approval step into your AI agent environment.

### Are there any specific technical requirements or software I need to install locally?

While the skill uses standard Python libraries, you will need a local installation of Tesseract OCR to handle image-based scans and photos. It is designed for a local footprint to ensure your financial data remains private.

### Are there any limitations on document size or types of financial documents?

This skill is limited to processing documents up to 5 pages in length and 10MB in size. It is currently focused on standard invoices and does not support credit notes or direct API integrations with third-party accounting software.

---

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.
