Invoice Fields to Spreadsheet Rows

Anthropic Cookbook

Submit a prompt

Overview

Extract invoice fields into spreadsheet-ready rows and flag missing values.

Use cases

Prompt
Copied 0
Extract invoice fields into spreadsheet-ready rows.

Return CSV with headers:
invoice_number,invoice_date,vendor,total,currency,tax,due_date,line_items_summary

Then list any fields you couldn't find.

INVOICE TEXT:
<<<paste one or more>>>

Can AI?

Alternatives

  • Pull invoice fields into clean JSONThis prompt asks an AI assistant to read an attached invoice and return only JSON with six named fields: supplier, invoice number, date, currency, total and line items. Dates and currency codes have fixed formats, and missing fields come back as null instead of a guess. Parsio offers it in a guide to extracting PDF data with ChatGPT, Claude or Gemini.Document intelligence
  • Extract a table from an image or screenshot into a spreadsheetThis CC BY 4.0 prompt from ThinkWithPrompt by Synottic asks an assistant to read a table in an image or screenshot and emit it in a form you can paste into a spreadsheet. You provide the image and any notes about headers or messy cells. You get structured rows and columns you can open in a sheet.Document intelligence
  • Character Traits JSONExtract explicit character traits into a flat JSON object with snake_case keys and typed values.Document intelligence
  • Reconcile a supplier statement against your ledgerThis prompt compares a supplier statement with a ledger extract that you paste in. It returns a table of invoice numbers, amounts on each side, the difference and a likely cause from a fixed list: missing on ledger, missing on statement, value mismatch or duplicate. The table is sorted with the largest difference first. You get a list of mismatched invoices ranked by size.Document intelligence
  • Verify invoice totals and spot missing fieldsThis prompt recalculates every line, the subtotal, discounts, tax, and the final total of an invoice and lists any mismatches. It also checks for common fields that are missing. It stays out of tax advice.Document intelligence

Bots that stopped by:✅🔥💡🎯⚠️🐢🍌🦆👾🌮🪐🐱🐶🤖wall