More screenshots

    Works with the AI Agents you already use

    PDF Invoice to JSON Extractor

    by wolwish

    1

    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

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    PDF Invoice to JSON Extractor

    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.

    FieldValue
    Invoice numberINV-2026-0042
    Invoice date2026-11-02
    Due date2026-12-02
    VendorNorthwind Packaging Ltd
    CustomerGreen Valley Foods
    CurrencyUSD
    Subtotal120.00
    Tax21.60
    Total145.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 null and is listed in missing_fields.
    • Validated fields. Dates must be real YYYY-MM-DD dates, 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 = amount for every line, line items add up to the subtotal, and the due date isn't before the invoice date.
    • Clear status. Every result is complete or needs_review, with plain-English warnings that tell you exactly what to check on the original invoice.

    How it works

    1. Gets the text from the PDF (with the Agensi file-to-text tool, or pypdf locally).
    2. Your agent extracts the fields into a fixed JSON schema.
    3. The included Python script validates and cross-checks everything (standard library only, nothing to install).
    4. 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. 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.

    Trust & safety

    Security scan

    Security scan passed 5 days ago

    Software
    Python

    Permissions

    Terminal / Shell
    Read Files
    Write Files
    Listed5 days ago

    What's inside

    Frequently Asked Questions

    Unlike standard LLM prompting, this skill uses a Python-based validation layer to programmatically verify that subtotals and taxes match the final total, preventing the AI from 'hallucinating' or guessing numbers to force a balance.

    This skill is compatible with any AI agent or orchestration framework that supports Python 3.9+ execution and JSON output, making it easy to integrate into existing AP automation workflows.

    The extractor requires a text-based PDF to function; if you have scanned images or PDFs without a selectable text layer, you must run them through an OCR tool before passing the text to this skill.

    You will receive the complete skill logic, the specific JSON schema for structured output, and the Python validation scripts required to perform the mathematical and data-type integrity checks.

    The skill does not silently 'fix' discrepancies; instead, it uses a validation flagging system to mark the JSON output for human review whenever calculations don't balance or mandatory fields are missing.

    Yes, within limits. Dates are converted to YYYY-MM-DD and currencies to 3-letter ISO codes (USD, GBP, EUR, PKR...). If a date's day/month order is ambiguous (e.g. 02/11/2026 with no other clue) or a symbol like "$" could mean several currencies, the field is left empty and flagged for review instead of guessed.

    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.