Starbase / 02 RecipeAgents

RecipeAgents / Recipes / Ops

Ops recipe

Invoice PDFs from email into a sheet

Invoices arrive as PDF attachments. This pulls out vendor, date, amount and VAT and adds a row to your bookkeeping sheet.

InputEmail with PDF attachment
ToolsGmail, Zapier (PDF to text) or Make, an AI step, Google Sheets
TimeSetup about 45 minutes. For 30 invoices a month it can save an hour or so of typing, though you still check each row. That's our estimate.

Download it

The n8n file has three nodes (trigger, AI step, output) plus a read-me note. We check that its JSON structure is valid, but we haven't run every file in a live n8n instance, so test it with sample data before you switch it on.

Steps

  1. Trigger: new email matching has:attachment filename:pdf invoice.
  2. Extract text from the PDF.
  3. AI step returns JSON with the fields.
  4. Append a row. Look up the invoice number first to skip duplicates.

The prompt

Extract from this invoice text: vendor, invoice_number, date (YYYY-MM-DD), currency, net, vat, total. Return JSON; use null for missing fields; never compute values that aren't printed. Text: {{pdf_text}}

Sample run

Example input (written for illustration)
Invoice from 'UAB Spausdinimas', No. 2026-114, 2026-10-02, EUR, net 200.00, VAT 21% 42.00, total 242.00
Example output (shows the format, not a real log)
{"vendor":"UAB Spausdinimas","invoice_number":"2026-114","date":"2026-10-02","currency":"EUR","net":200.00,"vat":42.00,"total":242.00}
SPONSOR SLOT · AVAILABLEFeature your product here

Where it breaks

  • Scanned PDFs. Image-only PDFs come back with no text, so add an OCR step or flag them.
  • Totals that don't add up. Add a sheet formula that checks net + vat = total and highlights mismatches.
  • Anything customer-facing or money-related. Keep a human approval step until you've watched a few dozen runs and trust it.

Tool names and pricing change often, so check each tool's current docs before you build. Times on this page are estimates, not measurements.

More ops recipes

All collections · Full inbox-triage walkthrough

Newsletter

One small automation every Friday

Each Friday email has one recipe, the prompt for it, and the way it broke when we wrote it up. It's free, and every email has an unsubscribe link.