Context
The problem
A kiryana and wholesale shop takes its orders on WhatsApp, in whatever form the customer finds easiest: a typed message, a voice note, or a photo of a handwritten list, in English, Roman Urdu or Urdu. Each order has to be read, matched to real stock, priced at the right bulk rate, and checked against the customer's credit before it is promised. A wrong guess on quantity or price is the shop's money, so the system is not allowed to guess at all.
My role: Team lead, Team AXIONS (with Abdul Moiz), GDG On Campus CUI Attock.
Implementation
How it works
The models read
Three models only read: gpt-oss-20b extracts the order from text, Whisper large-v3 transcribes voice notes, and a vision model reads handwritten list photos. Each returns structured items; none of them touches a price.
The code decides
Matching against the catalogue, live stock, bulk pricing, per-customer credit limits and the final total are computed in deterministic Python, so every figure on the receipt is exact and auditable.
Risk stops at the owner
Quantity sanity checks, duplicate detection within 2 minutes, and the credit gate all run before confirmation. Anything doubtful is not guessed: it is routed to the owner's decision queue with the reason attached.
Implementation highlights
- WhatsApp orders accepted in three forms: typed text, voice notes transcribed with Whisper, and photos of handwritten lists read by a vision model
- Local units understood: dedh is 1.5, a paao is 250 g, a darjan is 12; orders can be placed in English, Roman Urdu or Urdu
- Live stock with exact-price substitutes: when the ordered milk was out of stock, the system offered the alternative and stated the exact Rs 20 saving
- Risk rules in code: quantity sanity, duplicates within 2 minutes, a credit-limit gate that routes large credit from a new number to the owner, and complaints sent straight to the owner
- Owner dashboard with a decision queue; a confirmed order can be edited by chat and reissued as invoice v2
Evidence
What can be verified
The points below summarize the public repository and owner-provided CV where noted. Read the source for implementation details and the evaluation setup before drawing further conclusions.
Tests47/47 engine testsThe ordering engine's regression suite passes end to end: extraction, matching, pricing, edits and every risk rule.
Verified orderRs 1,450 confirmed2 kg Super Kernel Basmati rice plus milk, confirmed live; the out-of-stock milk was substituted with the exact Rs 20 saving stated to the customer.
Verified editRs 1,870, invoice v2The same order edited by chat (rice raised to 5 kg, eggs removed) and reissued as a second invoice version.
ChannelWhatsApp, liveOrders arrive and are answered on WhatsApp via the Green API; the owner sees them in a dashboard with a decision queue.
Boundaries
Limitations and next questions
- One store with a small seeded catalogue (6 products, 10 customers); it is a one-day hackathon build, not a multi-store platform.
- The WhatsApp ordering store is held in memory per session, so a server cold start resets an in-progress WhatsApp conversation.
- Product-photo recognition is less reliable than handwritten lists; a photo of a list is the dependable input.
Evidence-first note: a live demo demonstrates an interface and workflow; it does not by itself validate model quality, security, or real-world impact.