Docs
AI features
KhaoNow ships six AI features. Every one has a daily quota and a per-tenant cost ceiling, surfaced live in the admin panel under Settings → AI Quotas.
Three-layer cost defense
We learned this the hard way: shipping AI without a budget is how startups go bankrupt. Every AI feature is guarded by three layers:
- Per-feature daily quota — N requests per tenant per day per feature. Once hit, the feature falls back to a non-AI path (or skips, depending on the feature).
- Per-tenant daily cost ceiling — across ALL AI features, your
tenant can’t spend more than
aiDailyCostCeilingPaisaper day. Default PKR 1,000. The ceiling is the safety net behind the per-feature quotas. - Per-request hard cap — some features (menu OCR) have a per-request token cap so a single oversized input can’t burn an hour’s worth of quota.
A/B rollout
Each feature can be rolled out gradually. Default 20% of relevant events. SuperAdmin can override per tenant. The performance dashboard shows AI vs control-arm AOV, so you can confirm the feature is actually winning before scaling rollout to 100%.
Per-feature reference
| Feature | What it does | Default daily cap | Cost per call |
|---|---|---|---|
| Smart cart upsell | Picks best add-on for the cart | 200 carts | ~PKR 0.02 |
| Landing personalization | ”For you” homepage | 200 renders | ~PKR 0.10 |
| Menu copy | Auto-draft item descriptions | 20 generations | ~PKR 0.05 |
| Photo critique | Scores menu photos | 20 critiques | ~PKR 1.20 |
| Review analysis | Theme clusters from reviews | 20 batches | ~PKR 30/100 reviews |
| Menu OCR | Photo → digital menu | 20 imports | ~PKR 8–15 |
Provider abstraction
All AI features go through a provider abstraction so we can switch LLMs without re-shipping features. Today we default to Gemini 2.5 Flash Lite. Tenants on the Scale tier can choose to bring their own API key (BYOK) to bypass our quotas entirely.
Kill switch
Each AI feature has a master enable/disable toggle in Settings → AI Quotas. Flipping disabled stops the feature instantly across the platform without losing settings or history.