Real Agent Cases

Split, rename and sort about 200 scanned invoices with Claude Cowork

Posted
by Ilya (@IlyaPion)
Last checked
Method:
How we verify

Evidence: Described by posterThe person describes what happened in words, without screenshots or video.

Outcome

After the poster scanned almost 200 invoices, Claude Cowork split them out, renamed them, sorted them into folders and created a summary Excel file.

Agent

Claude Cowork

Prompt Recreated prompt

The source didn't share its exact prompt, so we wrote this from what it describes.

Here's a task I'd like your help with. Read it all the way through before you start.

Goal: Split my scanned invoices into separate files, rename them, sort them into folders, and make a summary spreadsheet.

Check with me first: How should they be grouped into folders, for example by supplier or month?

What I'll give you:
- The scanned invoice files
- How I want them named and grouped

Rules:
- Split multi-invoice scans into one file per invoice.
- Rename and sort each one into the right folder.
- List anything you can't read instead of guessing.
- Keep the original scans untouched.

Output: Sorted invoice files plus a summary Excel file listing each invoice.

You'll know it worked when: every invoice is in its own named file, in the right folder, and listed in the summary.

Try this in:

Sends the Recreated prompt shown above. ChatGPT and Grok open with it filled in, and ChatGPT may send it straight away. Gemini opens empty, so we copy the prompt for you to paste. Every button also copies it.

The source used Claude Cowork, which can take actions in a browser or app. These are general chat tools, so results may differ, and a normal chat may only give you a plan.

Opens in a new tab. We don't see what you send.

These links are only a shortcut. We're not affiliated with OpenAI, Google or xAI, and your results may not match the source.

Optional stronger version

Our rewrite with extra checks. The poster didn't test it.

Here's a task I'd like your help with. Read it all the way through before you start.

Goal: Split, rename and file about 200 scanned invoices and build a summary spreadsheet.

Quick check first: tell me if anything below is missing or unclear.

Inputs (fill in or confirm):
- Scanned files
- Grouping (supplier or month)
- Naming format
- Summary columns
- Currency and tax fields needed

Rules:
- Split multi-invoice scans at invoice boundaries; check page counts.
- Rename as YYYY-MM-DD_supplier_invoiceNo.
- File into folders.
- Build a summary sheet with amounts.
- Keep the original scans untouched in an 'originals' folder.
- Use OCR text to get supplier, date, invoice number and total; mark low-confidence reads.
- Add the new file path to each summary row.
- Flag duplicate invoice numbers per supplier.

Checkpoint: Show a sample of 10 before processing all.

If you get stuck: Put unreadable pages in a 'check' folder. If a login, CAPTCHA or two-step code appears, stop and ask me to handle it; never guess or store passwords.

Verify before you finish: Check total pages in equals total pages out.

Output: Folder tree, summary sheet and log.

Done when: every invoice is a separate, named, filed PDF in the summary.

Source

https://x.com/IlyaPion/status/2102783493482709261

  • Sort and rename messy invoices for taxes with Claude CodeRecreated promptEvidence: Article or interview

    Claude Code reads each file in a messy invoice folder, renames it to 'YYYY-MM-DD Vendor - Invoice - ProductOrService.pdf' and files it in the right folder.

    Claude Code · Ops · Source date:

  • Claude Cowork read a pile of train tickets and renamed each file by its correct date and destination.

    Claude Cowork · Personal · Source date:

  • Organize a messy SEO work folder and rename screenshots with Claude CoworkRecreated promptEvidence: Shown on videoBeginner-friendly

    Claude Cowork asked how the poster wanted 27 unstructured files organized, created analytics-data, blog-posts and screenshots folders, looked at each screenshot and renamed it by content (e.g. feature-text-to-sql-converter.jpg); the poster says it took about 30 seconds.

    Poster says:27 files sorted in about 30 seconds

    Claude Cowork · Ops · Source date: