Weekend Annoying Task Challenge: Grocery Gist
Snap a grocery receipt, AI reads it, tracks your spend, and answers questions about it.
Vision & What the App Does
Every week I come home with a crumpled grocery receipt, glance at the total, feel vaguely bad, and throw it away. I never actually know where the money went, was it the meat run, the snack impulse buys, or the fact that milk quietly costs more than it did in May? Manually typing receipts into a spreadsheet is exactly the kind of repetitive chore nobody sustains past week two.
GroceryGist kills that chore. You snap a photo of a grocery receipt, and that's the entire user interaction. Behind the scenes an AI reads the receipt, extracts every line item, categorizes it (produce, meat, dairy, household…), and files it away. The app then shows your running total, a category breakdown, a plain-English AI spending summary, and the part I use most: a natural-language Q&A box where I can just type "how much did I spend on snacks this month?" or "what was my priciest item?" and get a real answer computed from my own receipts.
It also emails me a weekly summary automatically, so the "annoying weekly task" of reviewing my spending happens without me remembering to do it. Upload a photo, get understanding. That's the whole pitch.
How I Built It
I gave myself the challenge's own advice, start simple, don't build an OCR pipeline. The single most important decision was to hand the raw receipt photo straight to a vision model and ask for strict JSON, rather than doing any image preprocessing or traditional OCR. My first test was a synthetic Indonesian receipt (rendered with Pillow); Amazon Nova Lite returned clean JSON on the first try, correctly converting
12/07/2026 into 2026-07-12 and mapping "Ayam fillet" to meat and "Sabun mandi" to household. That de-risked the entire project in one call.The trickiest correctness question was trusting the extraction. A vision model can hallucinate a number. So after parsing, the Lambda sums the line items and compares that to the receipt's printed total. If they disagree by more than 2%, the receipt is saved but flagged for me to eyeball, instead of silently polluting my stats. That single validation check is what makes the numbers trustworthy.
I also kept the whole thing in one Lambda that behaves differently depending on who invokes it, API Gateway, S3, or EventBridge, which kept deployment and IAM tiny. One real snag: I originally wanted a Lambda Function URL, but this AWS account sits under an Organization SCP that blocks
lambda:InvokeFunctionUrl . API Gateway's HTTP API uses a different action and has an identical v2 payload, so I switched the front door without touching a line of handler code.AWS Services Used / Architecture Overview
┌──────────── API Gateway (HTTP API) ── UI + JSON API Browser ──photo─┤ │ └── presigned POST ─► Amazon S3 (private receipt bucket) │ │ s3:ObjectCreated ▼ ▼ poll ◄────────────────────────── AWS Lambda (Node 22, arm64) │ ├─► Amazon Bedrock — Nova Lite (vision → JSON) │ └─► Amazon DynamoDB (items, keyed per month) EventBridge (weekly cron) ─────────►┘ └─► Amazon SES (optional weekly email)
How the agent is triggered, three ways, one function:
- S3
ObjectCreated: uploading a receipt photo automatically triggers the Lambda to parse it with Bedrock vision. No button, no polling on the backend.
- API Gateway HTTP API: serves the frontend and the JSON API (list, summary, ask).
- Amazon EventBridge: a weekly cron rule invokes the same Lambda with
{"task":"weekly-summary"}to generate (and optionally SES-email) the weekly recap.
Services: Amazon Bedrock (Nova Lite), AWS Lambda, Amazon S3, Amazon DynamoDB, Amazon API Gateway, Amazon EventBridge, Amazon SES, IAM, CloudWatch. Everything is serverless and pay-per-use; the whole stack is defined in Terraform.
What I Learned
The biggest lesson was that the AI is the cheap part; trusting the AI is the work. Extraction with Nova Lite was almost too easy, the effort went into the sum-vs-total validation and the "flagged" state, because a spend tracker that's confidently wrong is worse than no tracker. I also learned how naturally a single Lambda can serve three completely different triggers (HTTP, storage event, schedule) by inspecting the event shape, it made the architecture feel much smaller than the feature list suggests.
On the AWS side, sending a raw image to Bedrock via the Converse API was new to me, and it's remarkably clean: one
image content block plus a text prompt, no base64 plumbing in the model call. And running into the Function-URL SCP taught me to treat org guardrails as a design input: API Gateway turned out to be the better front door anyway (throttling, and room to add auth later).Link to Repo & Demo
- Source code (GitHub): https://github.com/yogaics/ai-manual-to-auto.git
The full stack is Terraform in the repo:
terraform apply deploys it into any AWS account with Bedrock Nova access.Screenshoot

Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article