Inspiration

The starting point was not "build a budgeting app." Budgeting tools tell you what you already spent. The expensive failure is simpler and more common: a bill you fully intended to pay, that you never saw again until it was late.

The inbox is the one place that already receives every bill. What is missing is not another tracker; it is a layer that turns an email into an action: extract, remind, pay, and keep a record. That became the product thesis.

What it does

  • Forward or paste a bill email; the same pipeline runs either way.
  • A classifier decides whether the message is really a bill. An extractor returns the merchant, amount, currency, due date, invoice id, and category.
  • Zod validates the output, deterministic guardrails bound the amount and date, and a heuristic parser cross-checks the model. At 0.6 confidence — with a positive amount and a due date — a bill and its reminder ladder are created. Below that, nothing is silently added.
  • Every pending bill gets reminders at 7, 3, 1, and 0 days before the deadline.
  • PayPal Orders v2 handles payment: create, approve, capture, and a signature-verified webhook reconciles the capture back onto the bill.
  • The bill keeps its source email, extraction metadata, reminder history, and every PayPal event, so the numbers are auditable.
  • A dashboard, subscription radar, and CSV export close the loop.

How we built it

The app is Next.js 16 (App Router) with React 19, TypeScript, Tailwind CSS v4, and shadcn-style components on Radix. Domain data sits behind a small store interface backed by a JSON file, which keeps the demo zero-config while leaving a clean seam for a real database.

The AI layer is deliberately boring and inspectable:

forwarded email
  → sanitize + truncate
  → classifier (Groq Llama 3.3 70B, JSON mode)
  → extractor (Groq, Gemini fallback)
  → Zod validation
  → guardrails + heuristic cross-check
  → confidence >= 0.6 ? create bill : mark uncertain

Prompts are versioned in code with eval targets, and every ingest records provider, model, latency, confidence, and signals. With no API key, the deterministic parser runs alone, so the demo never depends on a paid service.

Payments are treated as a state machine, not a button. The order carries the bill id in reference_id and custom_id; PayPal-Request-Id makes creation and capture idempotent; the return handler captures; the webhook verifies the signature before mutating anything. Without credentials, the same paths return clearly labeled simulated ids, so the flow is complete without pretending to be a live charge.

The demo video is generated from the app itself: Playwright records the scenes, edge-tts produces the narration, and ffmpeg applies the zoom, captions, and end card. Re-running the pipeline reproduces the video.

Challenges we ran into

A confidently wrong due date. Early on, the extractor could pick a statement date or a billing-period end instead of the payment deadline. That is the worst failure mode here: it looks correct and creates a bill that is already wrong. I moved date selection to a cue-prioritized parser ("payment due", "due by", "pay by") that scans a window around each cue, added a valid date range, and let the heuristic lower the model's confidence when the two disagreed. When the evidence is thin, no bill is created.

Trust is a feature. An AI inbox is only useful if the user can check it. Every bill shows its source snippet and extraction confidence, and low-confidence messages stay out of the bills list instead of quietly polluting it.

Payment correctness. Duplicate clicks, retries, and webhook ordering are normal, not edge cases. Idempotency keys, signature verification, and idempotent reconciliation made the paid state boring — which is exactly what it should be.

Honest demo mode. Judges should not need credentials to evaluate the product. Making every integration degrade to a clearly labeled fallback took more design work than the happy path, but it is why the project runs from a fresh clone.

The three-minute limit. A demo has to be designed, not recorded. I scripted 15 scenes, kept the narration under 175 seconds, generated burned-in captions, and rebuilt the video whenever the UI changed. It taught me as much about editing and timing as about the app.

Accomplishments that we're proud of

I am proud that this is a complete loop, not a demo of one step: a forwarded invoice becomes a validated bill, gets a four-step reminder ladder, and is paid through PayPal Orders v2 with a signature-verified webhook reconciling the capture. I am equally proud of the guardrails — the LLM is cross-checked by a deterministic parser, bounded and Zod-validated, and anything under 60% confidence never becomes a bill. And it all runs from a fresh clone with no API keys, so judges can evaluate the product in two minutes rather than reading about it.

What we learned

  • LLM output is a draft, not a fact. The deterministic parser is not just a fallback; it is the second opinion that makes the AI safe.
  • Confidence should change the product's behavior, not just a log line.
  • Payments are state machines. The capture is one transition; reconciliation and audit are the rest.
  • A demo is part of the product. If the first two minutes require setup, the product has already failed.
  • Constraints help. No database and no required API keys forced a cleaner interface and a more honest fallback design.

What's next for Deadline Bill Guard

The next step is a managed database adapter behind the existing store interface, then real inbox OAuth so users do not have to forward mail manually. After that: a built-in scheduler for reminders, push notifications, recurring-charge detection from history, and shared household workspaces.

The code, setup, and demo pipeline are in the repository: github.com/Dikaaff/DeadlineBillGuard.

Built With

Share this project:

Updates

Submission history