- Home
- Skills
- Finance & Accounting
- PDF Invoice to JSON Extractor
More screenshots
Works with the AI Agents you already use
PDF Invoice to JSON Extractor
by wolwish
This skill adds a code-level check on top: - No guessing. If a value isn't clearly on the invoice, it stays null and is listed in missing_fields.
$5
PDF Invoice to JSON Extractor
Example session with this skill installed
Extract the data from this supplier invoice and check that the totals add up: invoices/northwind-INV-2026-0042.pdf
- Read your context and instructions
- Compiled the pdf invoice to
Summary
Extracted invoice
INV-2026-0042 from Northwind Packaging Ltd. All required fields were found, but the totals don't add up, so it's marked
needs review.
| Field | Value |
|---|---|
| Invoice number | INV-2026-0042 |
| Invoice date | 2026-11-02 |
| Due date | 2026-12-02 |
| Vendor | Northwind Packaging Ltd |
| Customer | Green Valley Foods |
| Currency | USD |
| Subtotal | 120.00 |
| Tax | 21.60 |
| Total | 145.00 |
Check before paying: subtotal + tax = 141.60, but the invoice total is 145.00 (a 3.40 difference). Line items match the subtotal.
Validated JSON
{
"status": "needs_review",
"data": {
"invoice_number": "INV-2026-0042",
"vendor_name": "Northwind Packaging Ltd",
"customer_name": "Green Valley Foods",
"invoice_date": "2026-11-02",
"due_date": "2026-12-02",
"currency": "USD",
"subtotal": 120.0,
"tax": 21.6,
"total": 145.0,
"line_items": [
{
"description": "PET Bottle 500ml",
"quantity": 1000.0,
"unit_price": 0.12,
"amount": 120.0
}
]
},
"missing_fields": [],
"warnings": [
"subtotal + tax = 141.60, but total is 145.00"
]
}
Next steps
- Ask the vendor about the 3.40 difference, or check for a surcharge or shipping line that isn't itemised.
- Send more invoices and I'll process them the same way and combine the results into one JSON or CSV.
Connects securely to your tools. The creator never sees your data.
About this skill
What it does
Give your agent one or more PDF invoices and get back structured, validated JSON you can drop straight into a spreadsheet, accounting system or database.
Fields extracted: invoice number, invoice date, due date, vendor, customer, currency (ISO code), subtotal, tax, total, and every line item (description, quantity, unit price, amount).
Why you can trust the output
Most AI extraction tools return whatever the model produced. This skill adds a code-level check on top:
- No guessing. If a value isn't clearly on the invoice, it stays
nulland is listed inmissing_fields. - Validated fields. Dates must be real
YYYY-MM-DDdates, currency must be a 3-letter code, amounts must be valid non-negative numbers. A bad field is dropped on its own; the rest of the invoice is kept. - Maths re-checked.
subtotal + tax = total,quantity × unit price = amountfor every line, line items add up to the subtotal, and the due date isn't before the invoice date. - Clear status. Every result is
completeorneeds_review, with plain-English warnings that tell you exactly what to check on the original invoice.
How it works
- Gets the text from the PDF (with the Agensi file-to-text tool, or
pypdflocally). - Your agent extracts the fields into a fixed JSON schema.
- The included Python script validates and cross-checks everything (standard library only, nothing to install).
- You get the validated JSON, plus a short note on anything that needs a human look.
Works for batches too: process a folder of invoices and get one combined JSON or CSV with a list of the ones needing review.
Good for
- Bookkeepers and small businesses entering supplier bills
- Automating accounts-payable or expense workflows
- Developers who need reliable invoice data without building their own parser
Limits
- Scanned invoices with no text layer need OCR first; the skill will tell you instead of inventing data.
- One schema (standard invoice fields). Discounts and shipping are kept as printed and flagged if totals don't match.
Requires Python 3.9+ for the validation script. Scanned PDFs without text layers require OCR first. Does not support non-ISO date formats if the day/month order is ambiguous.
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 5 days ago
- Software
Python
Permissions
What's inside
Frequently Asked Questions
New in Finance & Accounting
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Finance & Accounting.