--:-- your time · 4 agents workingStart free week
All guides Guide

5 min read

How to turn invoices and PDFs into a spreadsheet with an AI agent

An AI agent can read invoices, receipts and PDFs and fill one spreadsheet for you. How to set it up so the numbers come out right, every week.

On this page9
  1. What can an AI agent pull out of an invoice?
  2. How do you set it up so the numbers come out right?
  3. Why do some PDFs come out wrong?
  4. How do you keep it going every week?
  5. What are the ways to do it?
  6. How does HostNest do it for you?
  7. What does it cost?
  8. Which way suits you?
  9. A checklist

An AI agent can read your invoices, receipts and PDFs and put the numbers into one spreadsheet for you. You tell it once which columns you want, send it the files, and check the first batch. With HostNest, a team of Claude agents, you send the files in Telegram and your agent fills the sheet, every week, without you setting anything up.

This guide is for anyone who spends an evening a month typing numbers from PDFs into a table.

What can an AI agent pull out of an invoice?

Almost anything printed on it. Anthropic, the company behind Claude, says: "You can ask Claude about any text, pictures, charts, and tables in PDFs you provide." One of the uses it lists is "Converting document information into structured formats", which is exactly this job.

Things owners hand over:

  1. Supplier invoices. Number, date, supplier, items, amount, tax, due date.
  2. Receipts. Photos taken on your phone, turned into rows.
  3. Statements and quotes. The lines you need, in the same columns every time.
  4. Old paperwork. A folder of scans, finally in one table.

How do you set it up so the numbers come out right?

Give it the same instructions every time, and check the first batch yourself.

  1. Name your columns. For example: "Invoice number, date, supplier, total, tax, due date."
  2. Show one example. Fill one row yourself and say "every row should look like this."
  3. One row per invoice. Or one row per item, if that's what you need. Say which.
  4. Ask it to flag what it isn't sure of. "If a number is hard to read, write CHECK in the last column."
  5. Ask it to keep a list of what it has done. "Note each file you've read, so you never add one twice."
  6. Check the first ten rows against the papers. When they match, let it do the rest.

Here is a message you can copy and change:

Code
Read every invoice I send you and add one row each to my invoices sheet.
Columns: invoice number, date, supplier, total, tax, due date.
If any value is hard to read, write CHECK in the last column.
Keep a list of the files you've read, and skip any you've already done.
When you finish a batch, tell me how many rows you added and how many need a check.

Why do some PDFs come out wrong?

Usually because the file is hard to read, not because the job is hard.

  1. Blurry photos and old scans. Anthropic's docs say PDF reading "is subject to the same limitations and considerations as other vision tasks", which is why a bad photo can give a wrong number.
  2. Very long or dense files. The same docs warn that "Dense PDFs (many small-font pages, complex tables, or heavy graphics) can fill the context window before reaching the page limit." Send big files in smaller parts.
  3. Every supplier has its own layout. That's fine, but say where the total is if it keeps picking the wrong one.

The CHECK column is your safety net. You only look at the rows it flags.

How do you keep it going every week?

Make it a habit for the agent, not for you. Send the files to the same place, and let the agent do the rest.

  • Forward them as they come. A photo of a receipt, a PDF from an email.
  • Or let it look in one place. Once you've connected your email with your own login, it can pick up invoices sent to you.
  • Ask for a weekly note. "Every Friday, tell me what you added and what needs a check."

What are the ways to do it?

There are three:

  1. Have an agent do it for you: HostNest. You send the files in Telegram, and your agent fills the sheet and remembers your columns. More on this below.
  2. Use an AI chat one batch at a time. Upload the files, paste your instructions, copy the table out. It works, but you repeat the steps every time and keep track yourself of which files are done.
  3. Build your own workflow. Automation tools can read files with an AI model and write rows to a sheet. You set up each step, choose how to read scans, and look after it when a step breaks.

How does HostNest do it for you?

With HostNest, a team of Claude agents, your agent lives on a private server of your own in the EU and talks to you in Telegram.

  1. You tell it once. Your columns, your example row, what to flag. It remembers what you teach it.
  2. You send the files. Photos, PDFs or a whole folder, whenever they come.
  3. It fills the sheet. It can turn supplier PDFs into one spreadsheet and photos of tables into rows.
  4. It keeps working while you're offline. Your laptop can be closed.
  5. It checks with you first. Before anything goes out or costs money, unless you tell it it doesn't need to.

Nothing comes connected on day one: your email or your own spreadsheet work once the agent connects them with your own login. Signup takes about 10 minutes, and our guide on how to get a personal AI agent walks through it. Signup starts at hostnest.ai.

What does it cost?

With HostNest, there's a 7-day free trial, then one subscription for the whole team. You also need your own paid Claude plan (Pro, Max, Ultra or Team), paid to Anthropic. A big batch of PDFs uses more of your Claude plan's limits than a small one, so start with one month's invoices.

An AI chat may be part of a plan you already pay for, but the work of uploading and copying stays yours. Building your own workflow costs the tools and your time to set it up and keep it running.

Which way suits you?

  • You get invoices every week and want them handled without thinking about it: HostNest.
  • You have one pile to do, once: an AI chat, one batch at a time.
  • You like building and want every step under your control: your own workflow.

A checklist

  1. Write down the columns you want.
  2. Fill one example row yourself.
  3. Ask for a CHECK column for anything hard to read.
  4. Ask it to keep a list of files it has read.
  5. Check the first ten rows against the papers.
  6. Send big files in smaller parts.
  7. Ask for a short note every Friday.

Keep reading

More tips

All guides and tips