Picture a small lokanta in Sultanahmet. An Italian tourist stares at the menu and types into the QR-loaded screen: "this lahmacun, halal?". Instead of waving down a waiter, the answer arrives in under 2 seconds: "Yes, lahmacun here is fully halal — beef and lamb mince on thin dough, no pork or alcohol." Two minutes later, two portions hit the table. This is thMenu's Cloudflare AI integration in the wild.
Why Cloudflare AI + KV Cache
When a customer types a question, the request goes straight to LLaMA 3.1 8B on the nearest edge PoP — Istanbul for Turkey, Frankfurt for Germany. The model receives the product's ingredients, allergens, and description as context, detects the browser locale, and answers. Round-trip latency lands between 1.8 and 2.4 seconds.
What keeps the bill at $0.003 per query is the KV cache. Identical questions about the same product in the same language are served from cache for 7 days. On popular items, cache hit rate hits 78%. A mid-sized restaurant fielding 10,000 monthly questions pays roughly $66 — less than one waiter shift.
Upsell Without Breaking the Sale
The classic flow breaks here: curious customer → flags waiter → waits four minutes → broken-English exchange → abandons the dish. We A/B-tested AI Q&A against control over three months. Tables with Q&A enabled converted menu-to-order at a 34% higher rate. Doubt evaporates the moment the answer appears in-card.
- Italians ask "halal/pork-free" most; Germans ask "gluten-free"; Russians ask "spicy level"
- 62% of gluten-free queries get an automatic suggestion to the vegetarian menu — clean upsell
- AI never says "please call a waiter" — it stays inside the product card, sale uninterrupted
Three Guards Against Hallucination
AI making things up is a legal hazard for restaurants. Three layers reduce that risk to near-zero. First, the model only sees the product's ingredients JSON — it never browses the open web. Second, allergen claims are clamped to the EU-14 list by the system prompt. Third, when the customer asks "is this halal?" the model can only return "I don't have certification data" unless the owner has flagged it in admin.
If the restaurant marks halal certification per item, AI uses it; otherwise it falls back to "please confirm with staff". Controlled-unknown beats fabricated-certainty — and keeps you off a courtroom.
FAQ
How many languages does it support? 20 locales, detected from the browser. Even if your product description is only in Turkish, AI translates to the customer's language.
Does it work on the Starter plan? No — AI Q&A ships with Pro and Platinum. Cloudflare AI costs are baked into those tiers.
Are there monthly limits? Pro includes 5,000 questions/month; Platinum 25,000. Cache hits don't count toward the cap.
Found this helpful? Share it.
Related articles
Why Digital Menus Increase Restaurant Revenue by Up to 30%
Studies show restaurants using digital QR menus see measurable increases in aver…
When a Customer Downgrades, What Happens to Old Features? — The Silent Feature-Drift Problem in SaaS
Most SaaS apps run a single line of code when a customer downgrades — but old fe…
JWT alg-confusion attack — why Supabase's HS256 → RS256/JWKS migration breaks legacy verifiers
Verifiers that never decode the JWT header are wide open to `alg=none` and alg-c…