-
-
Chrome: Gemini Nano reads the receipt on-device and fills only the warranty fields, the order number and not the payment code.
-
Android: ML Kit reads the receipt text on the phone. Without Gemini Nano, the app falls back to local OCR.
-
Android: tap a field to see the exact receipt line it came from.
-
Android: the export contains only the three fields the reimbursement request asked for.
-
Android: before any cloud call, you see the exact prompt. It holds the request text only, never the receipt.
-
Android: share a freshly made summary file. The original receipt stays on the phone.
Inspiration
Your employer wants a receipt for a reimbursement. A store wants the same receipt for a warranty claim. Most of us just send a photo of the whole thing: our name, home address, card digits, and payment codes. Neither of them asked for all that.
The employer needs the merchant, date, and total. The store needs the product, date, and order number. So we asked: what if your phone could read the request, read the receipt, and hand over only what was asked for, without the receipt ever leaving your phone?
What it does
Need-to-Know turns one receipt into a different, minimal copy for each person who asks.
- Pick a request. Use a ready-made checklist, or paste the recipient's own instructions. Cloud Gemini works out which fields they want. Before anything is sent, you see the exact text that will go to the cloud. It never includes your receipt.
- Add the receipt. Gemini Nano reads it on your device. It still works in airplane mode.
- Review. Each suggested value shows the request line that asked for it and the receipt line it came from. If a value looks wrong, for example a subtotal picked instead of the final total, or a payment code instead of an order number, it is left out until you check it.
- Share. The app creates a fresh, clean summary with only the fields you approved, and you send it wherever you like.
Same receipt, two requests, two different copies. Nothing extra.
How we built it
- Firebase AI Logic gives us two separate paths. In the cloud, Gemini reads the request text you approve (
ONLY_IN_CLOUD, protected by App Check). On the device, Gemini Nano reads the private receipt (ONLY_ON_DEVICE). The receipt and the request never share a model call. - Desktop Chrome workspace (React + TypeScript): import a receipt, read it with Gemini Nano in the browser, preview the export.
- Android app (Kotlin + Jetpack Compose): take a photo or import a receipt, then read it with Gemini Nano. ML Kit OCR also reads the receipt on the device, so each AI value can be checked against the real text. On phones without Gemini Nano, the app still works offline using OCR.
- A Proof tab shows every AI step: where it ran, what the SDK reported, and whether any receipt text appeared in a cloud request.
- Both platforms share the same rules and the same synthetic test receipts, and their exported summaries match byte for byte.
Challenges we ran into
- Look-alike numbers. Receipts are full of similar values: subtotal vs. total, order number vs. authorization code. We added checks so the model's guess is compared against the actual receipt text, not trusted blindly.
- Trust. "Private" is easy to claim. We wanted it visible, so we show the exact cloud prompt and log every inference step.
- Device support. Gemini Nano runs only on some phones, so we built a fallback that keeps the receipt on the device instead of quietly sending it to the cloud.
Accomplishments we're proud of
On our synthetic test set, using the Gemini cloud checklist with the same OCR output gave 8/8 exact exports. A fixed "purpose" template got 4/8, and a generic template got 2/8. The template versions shared extra fields or missed required ones.
What we learned
The best privacy feature is often not sending something at all. Splitting the work, with the cloud reading the request and the device reading the document, made the app both smarter and safer.
What's next
More document types (rental forms, job onboarding), real recipient feedback on whether the summaries are accepted, and support for more devices.
