← All work

TiffinAI, a WhatsApp-first school tiffin planner

Parents plan their child's school lunch box over WhatsApp. FastAPI backend, Supabase, Razorpay UPI AutoPay, deployed on Railway.

Status
In progress
Role
Solo builder. Product, backend, integrations and deploy.
Period
[FILL: 2025 – present]
Code
Repository [FILL: repo URL, or delete this line if private]

Problem

Packing a school tiffin every morning is a daily decision parents don’t want to make. [FILL: what TiffinAI actually does: weekly plans? reminders? grocery lists? who you talked to before building.]

WhatsApp is the interface because parents already live there. No app install.

My role

Everything: product, FastAPI backend, WhatsApp and Razorpay integrations, data model, deploy.

Architecture

Parents talk to a WhatsApp number; Meta forwards messages to a FastAPI webhook on Railway; state lives in Supabase; subscriptions run on Razorpay UPI AutoPay.USER: Parent. Then META: WhatsApp Cloud API. Then BACKEND (RAILWAY): FastAPI. Then SERVICES: Supabase, Razorpay.USERParentWhatsAppMETAWhatsApp Cloud APIwebhooksBACKEND (RAILWAY)FastAPIwebhook + plannerSERVICESSupabasePostgresRazorpayUPI AutoPay
Parents talk to a WhatsApp number; Meta forwards messages to a FastAPI webhook on Railway; state lives in Supabase; subscriptions run on Razorpay UPI AutoPay.

Key decisions and trade-offs

WhatsApp instead of an app

Zero install friction for parents. The cost is Meta’s platform rules: business verification, message templates, the 24-hour customer-service window, and app review. These now gate the launch (see status).

Razorpay UPI AutoPay for subscriptions

[FILL: why AutoPay over one-time payment links. How do you handle a failed mandate debit?]

Supabase

[FILL: why. Postgres with auth and a dashboard, no server to run. What you’d move off it first if it grew.]

Hard bug I fixed: expired access token, silent 401s

Symptom. Outgoing WhatsApp messages started failing with HTTP 401. Incoming webhooks still arrived, so the bot looked alive but never replied.

Root cause. [FILL: which token expired. The temporary token from the Meta App Dashboard lasts about 24 hours. Was that it?]

Fix. [FILL: what you switched to (a System User access token?), where the token lives now (Railway env var?), and whether 401s now alert you instead of failing silently.]

Getting through Meta Business Verification

Meta Business Verification needs proof the business exists. I used my Udyam (MSME) registration as the business document. [FILL: anything that was rejected first and why.]

Outcome / status

In progress, not launched. The app is blocked on Meta’s development-mode limits: in development mode, an app can only message numbers added as testers. [FILL: what is left: app review? permissions? template approval? Expected next step.]

Stack

  • Python
  • FastAPI
  • WhatsApp Cloud API
  • Supabase
  • Postgres
  • Razorpay UPI AutoPay
  • Railway