Inspiration
Everyone takes photos of paper. Receipts, warranty cards, the sticker on the back of the fridge, someone's business card, a whiteboard after a meeting. Then it sits in the camera roll between vacation pics and memes and nobody ever finds it again. When you actually need the receipt to return something or make a warranty claim, you're scrolling through 10,000 photos.
A UGREEN AI NAS already has all of those photos backed up, and it has an on-device vision model sitting right next to them. So we figured the NAS should be the one digging through it, not us.
What it does
Paper Trail has two modes.
Scan: "Find the paperwork in my photos."
- Looks through your photo library (or a folder / date range you pick) for photos of documents
- Sorts them into receipts, invoices, warranty cards / serial labels, business cards and whiteboard notes
- Pulls out the useful bits: store, date, total, item, return-by date, warranty length, contact info
- Builds a Paper Trail register (a text file on your NAS) listing everything it found, with a link back to each original photo
- Flags anything time sensitive, like a return window closing this week or a warranty that's still active, but only when that date is actually printed on the paper
- After you confirm, it tags the original photos (receipt, warranty, etc.) so you can filter them later. It never moves or deletes your photos.
Ask: "When did I buy the dishwasher?" / "How much did I spend at Home Depot this year?"
- Answers from the register and shows the receipt photo as proof
It's also incremental. Run it again after a trip and it only looks at photos newer than the last scan.
How we built it
Paper Trail is an orchestration skill built with the official uliya-skill-kit. It doesn't add any new code, it just chains capabilities the NAS already has:
- ug-photo search-picture with ocr-contains (words like TOTAL, SUBTOTAL, TAX, WARRANTY, RECEIPT) to quickly narrow thousands of photos down to likely candidates
- ug-photo vision-vlm on the candidates only, to confirm what kind of document it is
- ug-photo vision-ocr to read the text
- ug-document extract with the receipt / invoice / expense schemas to get structured fields
- ug-knowledge save-text to write the register (asks for approval first)
- ug-filemgr tag-add-file to tag the originals (asks for approval first)
- ug-document qa over the register for Ask mode
Pre-filtering with OCR text before running the vision model was a big design choice. Running a vision model on every single photo in a big library would be really slow, so we only send it the photos that already look like paperwork.
Rules we followed
- Nothing gets moved, deleted, overwritten or shared without the user confirming first
- If nothing is found, it says so and stops. It doesn't guess or fill in similar stuff
- If an amount or date can't be read clearly, that item goes in a "please check" list instead of being made up
- Photos that look like IDs, health cards, prescriptions or bank cards are flagged so the user knows they're there, but we don't extract anything from them
- Everything runs through Uliya's supported capabilities. No direct third party APIs, no scripts, no downloads
Challenges
- Making sure it never invents data. A wrong total or a fake warranty date is worse than no answer, so every field has to come from what was actually read, and anything unclear gets flagged.
- Keeping it fast on a large library, which is why we pre-filter with OCR before using the vision model.
- Not overlapping with the existing Structured field extraction skill. That one extracts fields from a file you point it at. Ours goes and finds the paperwork you forgot you photographed, and then tells you what to do about it.
- We don't have a NAS yet, so for Round 1 everything is checked with the skill kit's static checker. The real test happens on the finalist NAS.
What we learned
The NAS can do a lot more than the capability table on the starter page shows. Things like the on-device vision model, OCR search inside photos and the built-in receipt/invoice extraction schemas were the pieces that made this idea possible.
What's next
- Test the full flow on a real iDX6011 Pro with a test camera roll (fake receipts we print and photograph ourselves, mixed in with normal photos)
- Proof of ownership packs for insurance: match a receipt to photos of the actual item and its serial number sticker
- Tune the classification on messy, blurry and crumpled receipts
Built With
- claude
- markdown
- ocr
- ugos
- ugreen-ai-nas
- uliya
- uliya-skill-kit
- vision-language-model