Receipts to Spreadsheet: 6 PDFs In, 1 Duplicate Caught, 1 Scan Flagged, Nothing Guessed
We ran 6 fictional receipts and invoices through an extraction prompt on our box. 4 became clean spreadsheet rows, a forwarded duplicate was caught before it inflated the total by $49, and an image-only scan was marked 'check' instead of guessed.
6 files in. 4 clean rows. 1 forwarded duplicate caught, which would have added $49 to the month. 1 image-only scan marked "check" instead of guessed. Paid: nothing. Sent: nothing. For freelancers and small-business owners who dread the monthly expense report. Cost: one Bot run per batch of receipts.

What you get
- One row per receipt: vendor, number, date, total, currency, tax, and a category guess.
- Duplicates marked, not counted twice.
- Unreadable files marked "check", with blanks instead of guesses.
- Still needs you: the "check" rows, the category guesses, and anything you pay.
Tested on: 2026-10-23, our AgentSpoon box. We wrote 6 fictional receipts: 4 text PDFs (one in EUR), 1 forwarded copy of an invoice, and 1 image-only scan. Our Bot turned the Step 3 rules into a script (pdftotext plus the openpyxl library), saved the .xlsx, then reopened it for the summary. Pass for extraction, the duplicate check, the scan flag and the summary. Not tested: receipts arriving by email. Our Bot has no email address here, and claiming one is permanent. All 6 help-page quotes we rely on were found.
Step 1: Decide where receipts arrive
Two options from the help pages:
- Your Bot's own address. With one, a Bot can "Collect receipts, newsletters, and reports, and summarize them for you". Forward receipts to it. Claiming an address is permanent, so pick the name with care.
- Your Gmail. Connected, "Gmail can search and read mail, draft and send" (Connect apps).
✅ You should see: one place where every receipt lands.
Step 2: Run it once on a handful of files
Start with last month's receipts in one chat. Our 6 files gave this:

The scan had no text layer, and our script had no OCR, so it left every field blank. That's the behavior you want: a blank you can see beats a total that was made up.
✅ You should see: one line per file, with problems named.
Step 3: Paste the rules
Our own wording:
For each receipt or invoice: vendor, number, date, total, currency, tax, category guess.
Add a row to expenses-<YEAR>.xlsx with the file name.
Same vendor + same number = duplicate. Mark it, don't count it.
If a field is unreadable, leave it blank and mark the row "check".
Keep currencies separate unless I ask for a conversion. Don't pay anything.
✅ You should see: the same columns every time, with "check" and "duplicate" where they belong.
Step 4: Ask for the month

✅ You should see: totals by category, plus a "not counted" list to clear by hand.
The sheet behind these totals is the LibreOffice view near the top of this page.
Step 5 (optional): Make it a routine
A routine can "Run a routine when email arrives, optionally only from specific senders". By default it "only runs for mail from senders that pass standard email authentication checks", and "Mail that fails the spam or virus scan is kept without its body or attachments, and it never starts a routine" (Agent email). We didn't set one up.

Gotchas
- Forwarding creates duplicates. Our "Fwd-" copy came first alphabetically, so the original was the one marked. Either way, it's counted once.
- Scans and photos are harder than text PDFs. Expect more "check" rows.
- Attachment limits apply both ways. For incoming mail, "Each message can include up to 10 attachments, up to 10 MB each and 25 MB in total. Attachments beyond those limits are skipped." The same limits apply to what the Bot sends. Split a big year-end file.
- It records, it doesn't pay. And an accountant email from a routine waits as a draft until you press Send.
Others doing this
- @byalexai describes connecting Gmail and asking Grok Bot each month to gather business expense invoices into one email draft for their accountant, with 25 PDFs attached (post). We link it rather than show it: the screenshot shows an email address and an invoice number.
- @StarshipAlves describes a "Tax Man" bot that sorts invoices into a Drive spreadsheet plus zipped PDFs (post). @mrMDofficial sends receipts from their phone as they happen (post). Both text only, and their results are unchecked.
FAQ
Can it send the file to my accountant? It can draft the email with the file attached. From a routine, it waits as a draft until you press Send. If you ask in chat, it goes out once Auto-review allows it, and you may see an approval card first.
Will it pay invoices? No. This recipe only records them.
Does it convert currencies? Only if you ask. Our run kept USD and EUR in separate columns.
Sources
- Grok Bot help: Agent email, Connect apps. Checked 2026-10-23.
- Our run: 6 fictional receipts, 2026-10-23.