Typing invoice details into a spreadsheet is slow and easy to get wrong. You copy a date, a total and a vendor name, then do it again for the next fifty files.

AI can do the reading for you. You give it a PDF or a photo of a receipt, and it returns the vendor, date, line items and totals in a table. This guide shows a practical workflow, with example prompts and the checks that keep mistakes out of your books.

What AI can (and can't) do with invoices

AI models can read most clean invoices, including PDFs, scans and phone photos, and pull out the fields you ask for. They handle different layouts without you building a template for each vendor.

They are not perfect. Common trouble spots:

  • Blurry or crumpled receipt photos
  • Handwritten amounts
  • Invoices where tax is shown in an unusual way
  • Dates that could be read two ways (03/04/2026 is March or April, depending on country)
  • Multi-page invoices where the total is on the last page

So the goal is not "trust the AI blindly." It's "let the AI do the typing, and let me check the result quickly."

Step 1: Decide which fields you need

Before you open any tool, write down the columns you want. A typical set:

Column Example
File name inv_2026-10_acme.pdf
Vendor Acme Supplies Ltd
Invoice number INV-10482
Invoice date 2026-10-14
Due date 2026-11-13
Currency EUR
Subtotal 420.00
Tax 88.20
Total 508.20

Keep it short. Every extra column is another place for an error. If you need line items (for example, for expense categories), put them in a second table with one row per item and the invoice number as the link.

Step 2: Prepare your files

A little tidying makes the results much better.

  1. Put all files in one folder. Invoices, receipts and photos together, with nothing else.
  2. Use readable file names. Dates and vendor names help you trace a row back to its file.
  3. Check photo quality. Retake receipt photos that are dark, cut off or blurry. Lay the receipt flat, use good light, and include the whole thing.
  4. Remove files you don't want processed. Personal documents and unrelated PDFs shouldn't be in the folder.

Step 3: Choose how you'll run it

There are three common ways to do this.

Option A: Upload files to a chat assistant

Open any AI chat that accepts file uploads, attach a few invoices, and ask for a table. This is fine for 5 to 20 documents. Limits on file count and size depend on the tool and your plan, so check yours.

Option B: Use an assistant that works with your folder

If you have dozens or hundreds of files, uploading one by one gets tedious. An assistant that can read a folder you choose and create a spreadsheet file saves a lot of effort. Orimbo is one example: it works with the files and folders you select, reads PDFs and spreadsheets, and can create files. It asks before it edits files or runs commands, so you stay in control.

Option C: Build a script

Developers can combine an OCR library or an AI API with a short script that loops through a folder and writes a CSV. It's flexible and repeatable, but it takes setup and testing. An AI coding assistant can help you write it.

For most people, Option A or B is the right start.

Step 4: Write a clear extraction prompt

Vague prompts give vague tables. Be specific about the fields, the format and what to do when something is missing.

Example prompt:

Read each invoice and receipt in this folder. For each file, extract:
file name, vendor, invoice number, invoice date (YYYY-MM-DD), due date
(YYYY-MM-DD), currency, subtotal, tax, total.

Rules:
- Use a dot for decimals and no currency symbols in number columns.
- If a field is not on the document, leave it blank. Do not guess.
- If a date is ambiguous (like 03/04/2026), flag it in a "Notes" column.
- Add a "Confidence" column: High, Medium or Low.
- Output as a CSV I can open in Excel or Google Sheets.

The rules in the middle matter most. "Do not guess" reduces made-up values. The "Notes" and "Confidence" columns tell you where to look first.

Step 5: Review a sample before the full batch

Don't run 300 invoices on the first try. Run 5 to 10 that cover different vendors and formats, then compare the output to the originals.

Look at:

  • Did it read the right number as the total (not the subtotal or the amount paid)?
  • Are dates in the format you asked for?
  • Is the currency right?
  • Are blank fields really blank on the document?

If something is off, adjust the prompt. For example: "The total is the final amount due including tax, not the subtotal." Then rerun the sample.

Step 6: Run the full batch and export

Once the sample looks right, run the rest. For large folders, split the work into batches of 20 to 50 files. Smaller batches are easier to review, and one bad file won't derail everything.

Save the output as CSV, then open it in Excel or Google Sheets. If your tool can create an .xlsx file directly, that works too. Check that numbers are stored as numbers, not text, so formulas work.

Step 7: Check the numbers

This step takes a few minutes and catches most errors.

  1. Subtotal + tax = total. Add a column with a formula, for example =F2+G2-H2, and filter for rows that aren't zero.
  2. Sort by date and look for dates in the wrong year.
  3. Sort by invoice number and look for duplicates, since the same invoice may have been uploaded twice.
  4. Filter the Confidence column for Low and Medium, then open those files and verify by eye.
  5. Spot-check 5 to 10 random rows against the originals, even if everything looks fine.

Handling receipts

Receipts are harder than invoices. They are short, often photographed, and rarely list a vendor address or invoice number. For receipts, simplify the columns: date, merchant, total, tax (if shown), payment method and category.

A prompt that works well:

These are photos of receipts. For each, extract date (YYYY-MM-DD),
merchant, total, tax if shown, and suggest a category from this list:
Travel, Meals, Office, Software, Other. Flag any receipt where the
total is hard to read.

Category suggestions are a convenience, not accounting advice. Review them, especially for anything you'll claim for tax or reimbursement.

Privacy and safety

Invoices contain business names, bank details and sometimes personal data. Before uploading:

  • Check your tool's data policy and your company's rules.
  • Remove or redact bank account numbers you don't need.
  • Use a tool that asks for permission before changing files, so you know what it touches.
  • Keep the original files. Never overwrite them with the AI output.

Common mistakes and how to avoid them

  • Skipping the sample run. Always test on a few files first.
  • Letting the AI guess missing values. Tell it to leave blanks.
  • Mixing currencies in one column without a currency field. Always extract the currency.
  • Trusting totals without a math check. The formula check takes a minute.
  • Processing duplicates. Check invoice numbers before you pay or book anything.
  • Using one prompt for everything. Use a separate prompt for receipts and for invoices with line items.

FAQ

Can AI extract data from scanned or photographed invoices?

Usually yes, if the text is readable. Clear, well-lit photos work best. Blurry images, shadows and handwriting cause more errors, so review those rows more carefully.

How accurate is AI invoice extraction?

It depends on the model, the document quality and your prompt, so there's no single number. Treat the output as a draft: run a sample, add a math check, and verify low-confidence rows.

Is this a replacement for accounting software?

Not really. It's a fast way to get data into a spreadsheet. Accounting tools add things like bank matching, tax reporting and audit trails. Many people use AI extraction as a first step and then import the cleaned CSV into their accounting system.

Conclusion

To extract data from invoices with AI, define your columns, tidy your files, write a prompt with clear rules, test a small sample, then run the batch and check the numbers. The AI does the repetitive reading, and you do a short review. Start with one folder of last month's invoices, and you'll quickly see how much time it saves.