More screenshots

    Works with the AI Agents you already use

    Invoice PDF to Spreadsheet (OCR + Gmail automation)

    by Francho Lendines

    1

    Typing invoices into a spreadsheet by hand is slow, and regex-based parsers break the moment a supplier changes their template.

    Free

    Security scanned
    Invoice PDF to Spreadsheet (OCR + Gmail automation)

    Invoice PDF to Spreadsheet (OCR + Gmail automation)

    Example session with this skill installed

    I've got this month's supplier invoices in ./november (a couple are scanned). Log them into invoices.xlsx and tag them with my client rules in rules.json.

    • Read your context and instructions
    • Compiled the invoice pdf to

    Summary

    Logged

    3 invoices from ./november into invoices.xlsx. One was a scan and went through OCR. 0 duplicates skipped.

    1 row needs your review.

    #DateInvoiceIssuerClientTotalCategoryReview
    12026-11-03F-2026-0412Talleres Norte S.L.ACME Iberia S.A.1,452.00 €Clientok
    22026-11-05INV-88231Cloudbyte Hosting LtdACME Iberia S.A.883.30 €Clientok
    32026-11-122026/187Imprenta Sol S.L.Grupo Ejemplo Holding S.L.484.00 €Intercompany⚠ review

    Totals (EUR): subtotal 2,330.00 · VAT 489.30 · total 2,819.30

    How each file was read

    • talleres-norte_F-2026-0412.pdf: text layer
    • cloudbyte_INV-88231.pdf: text layer (English invoice, VAT IE…)
    • imprenta-sol_2026-187.pdf: scanned, so OCR (spa+eng)

    Needs review

    • 2026/187 · Imprenta Sol S.L. The client's tax ID is unreadable in the scan (OCR read 899887766, which is likely B99887766). I left client_tax_id empty instead of guessing. Amounts check out (400.00 + 84.00 = 484.00).

    Classification

    Rules matched on client_name: "ACME" → Client / 430001 / CC-ACME (×2), "Grupo Ejemplo" → Intercompany / 430900 / CC-GROUP (×1).

    Next steps

    • Confirm the tax ID for 2026/187 and I'll update the row.
    • Running this again on the same folder is safe: existing invoices are skipped.
    • Want new invoices logged automatically as they arrive by email? I can set up the Gmail → Google Sheets automation.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Typing invoices into a spreadsheet by hand is slow, and regex-based parsers break the moment a supplier changes their template. This skill lets your agent do it properly: it reads the PDF (running OCR when it's a scan), pulls out every field itself, and appends clean, deduplicated rows to your ledger.

    What it does

    • Reads any PDF invoice. Digital PDFs use the text layer; scanned ones fall back to local OCR (tesseract). Works with Spanish and English invoices out of the box, and any language tesseract supports.
    • Extracts the fields with the agent, not with regex. Invoice number, date (ISO), issuer and client with tax IDs (NIF/CIF/VAT), description, subtotal, tax, total and currency. European number formats (1.234,56) are normalised.
    • Never invents data. Missing or unreadable values are left empty and the row is flagged needs_review. Rows where subtotal + tax doesn't match the total are flagged too.
    • Classifies by client or supplier. A small rules.json maps names to your own columns: category, account code, cost centre, anything you like.
    • Safe to re-run. Invoices already in the ledger (same number + issuer) are skipped.
    • Fits your existing sheet. It keeps your header and column order, can insert rows above a totals row (and stretches the SUM formula), and can write the same rows to a second ledger.

    Two modes

    1. Process now: "Log the invoices in this folder into invoices.xlsx". Your agent runs the bundled scripts and gives you a short summary plus the list of rows to review.
    2. Hands-off Gmail automation: your agent tailors the bundled Google Apps Script to your invoices (writes and tests the extraction patterns against a sample) and walks you through installing it. From then on, invoices that arrive by email are OCR'd and logged in Google Sheets on a timer, with no agent needed.

    What's inside

    • SKILL.md: the workflow and extraction rules
    • scripts/extract_text.py: text layer or OCR fallback, JSON output
    • scripts/append_rows.py: classify, dedupe and append to CSV/XLSX
    • reference/apps-script/: the Gmail → Sheets script and setup guide
    • reference/rules.example.json

    Privacy

    Everything runs locally and makes no network calls. Invoice data never leaves your machine unless you explicitly ask for it.

    Scanned PDFs need Tesseract and Poppler installed locally, and OCR quality depends on the scan: unclear values are left empty and flagged, never guessed. Withholdings (e.g. IRPF) are only subtracted if you ask. Writing straight to Google Sheets needs a Sheets tool in your agent or the Gmail/Apps Script mode; otherwise you get an XLSX/CSV to import. Tested mainly with Spanish and English invoices.

    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

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 4 days ago

    • Free with an Agensi account

    Software
    Python 3.10+ with pypdf and openpyxl
    Optional
    Google account (Gmail → Google Sheets automation mode)Tesseract OCR with Spanish language pack (scanned PDFs only)Poppler utils (scanned PDFs only)

    Install the Python packages with: pip install pypdf openpyxl. On macOS: brew install tesseract tesseract-lang poppler.

    Permissions

    Terminal / Shell
    Read Files
    Write Files

    File Scopes

    *.pdf
    *.xlsx
    *.csv
    rules.json

    Shell runs the two bundled Python scripts. Read Files reads the PDFs you point it at. Write Files writes or updates your CSV/XLSX ledger. No network access: invoice data never leaves your machine.

    Listed4 days ago

    What's inside

    Frequently Asked Questions

    This skill automates the extraction of data from PDF invoices, receipts, and bills, converting them into structured spreadsheet rows. It handles both digital and scanned files using OCR to ensure no manual typing is required.

    A CSV or XLSX ledger (new or your existing one, keeping its columns) with: invoice number, date (ISO), issuer and client names with tax IDs, description, subtotal, tax, total, currency, source file and a needs_review flag, plus any columns your classification rules add. If your agent has a Google Sheets tool it can write the rows there instead; the Gmail automation mode writes to Google Sheets directly.

    To process scanned invoices or photos, you must have Tesseract OCR installed locally. For automated email logging, you will need a Gmail account to use the provided Apps Script template.

    This skill includes a duplicate prevention mechanism that checks your existing ledgers by issuer and invoice number. If an invoice has already been logged, the skill will skip it to ensure your records remain accurate.

    The skill currently does not support automatic withholding (IRPF) calculations unless you specifically request it. Additionally, while it supports any language, it has been most extensively tested with Spanish and English invoices.

    You can tell your agent to process a specific folder of PDFs or ask it to set up a Gmail automation to log incoming bills. You can also provide custom classification rules if you want to map certain suppliers to specific cost centers.

    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.

    Free