Bento House

5. Shopping and receipts

GuideUpdated Nov 212 min read

On this page
  1. Decisions
  2. Prompt for Claude Code
  3. Checks

You get: a shared shopping list on the dashboard (added to from chat), and receipt photos turned into a list of items and prices.

Decisions

  • The list is shared. Anyone in the household can add and remove. Ticking items off works on the dashboard (it's in the store, phone in hand).
  • Receipts come in as photos sent to the bot. AI with vision reads the store, date, total and line items. The original photo is kept on your own storage.
  • Check the AI's reading against the total. If the items don't add up to the receipt total, flag it instead of trusting it.
  • Bought items come off the list. Items on a receipt that match open shopping items are ticked off automatically, and the reply says which.

Prompt for Claude Code

Add a Shopping card: open items, tap to tick off (with undo), grouped by store
section if known. The bot's "shopping" items land here.

Add receipt capture: a photo sent to Note to Self (with no text, or "receipt")
is saved under RECEIPTS_DIR and sent to the Anthropic API with vision, asking for JSON:
store, date, total, items [{name, qty, price}]. Validate with zod. If the item prices
don't add up to the total within 2%, mark the receipt "needs a look" and say so in the
reply. Match items to open shopping-list entries (fuzzy match, conservative) and tick
those off, listing them in the reply. Add a Receipts page listing receipts with their
items and the photo.
Use a test photo only, never a real receipt, in automated tests.

Checks

  • "buy eggs" then a receipt photo with eggs on it → eggs are ticked off and the reply says so.
  • A blurry photo gives "needs a look", not made-up numbers.
  • The Receipts page shows the photo next to the items.