
AI & data · Web
AskDB
An AI agent that answers plain-language questions about your data with validated, read-only SQL, tables, and charts.
- Python
- FastAPI
- Next.js
- TypeScript
- SQLGlot
An AI sales assistant for Cambodian shops — it answers customers on Messenger and Telegram from the seller's own catalogue, in Khmer, English, or romanized Khmer, and can take an order and a payment while the seller sleeps.

A FastAPI service on PostgreSQL 16 turns each Messenger or Telegram webhook into a queued job, answers from the seller's catalogue and shop details, and hands the thread back to the seller when it should. Postgres carries everything, including the durable job queue and the daily reply quotas. A Next.js back office gives the seller one inbox plus orders, inventory, and analytics, in Khmer or English.
Cambodian shops sell through Facebook Pages and Telegram, and customers message at all hours — in Khmer script, in English, or in Khmer typed in Latin letters, often mixed. A seller who is asleep loses the sale, and an assistant that answers in the wrong language, guesses a delivery fee, or converts a price wrongly does more harm than silence.
Language is decided per message: Khmer in, Khmer out; English in, English out; romanized Khmer such as “tlai ponman” gets romanized Khmer back, casual like a shop owner on Messenger — and a mixed message gets a mixed reply.
Every catalogue price reaches the model already written in both currencies at the shop's own rate — “4.00 USD (16,400 KHR)” — so it copies instead of calculating. A receipt paid in the other currency is checked against that rate within 3%, because banks apply their own.
With no delivery fee or policy on file, the assistant says it will check rather than inventing one, and flags the thread. The seller gets one Telegram alert per episode, not one per message, and a seller's reply pauses the assistant for twelve hours instead of silencing that thread for good.
A customer's payment photo goes to a vision model that returns amount, currency, and reference as strict JSON, judged against the order as a match, an amount mismatch, a different currency, a duplicate, not a receipt, or unreadable.
Trade-off
The verdict is advice, not a decision: confirming payment stays the seller's tap, and receipt scans have their own daily ceiling because the customer decides how many photos arrive.
Webhook work is written to a job table and drained with SELECT … FOR UPDATE SKIP LOCKED, so a retried webhook or a restart never loses a reply, and daily reply quotas are an upsert on the same database — no separate queue or cache to run.
Trade-off
The test suite needs a real PostgreSQL — SQLite cannot stand in — so it is slower to set up, but it tests the database the product actually runs on.
Messenger, Telegram, and Stripe webhooks are the only unauthenticated endpoints, each verified by a signature or a per-connection secret, and each answers 200 to anything it cannot use — a 4xx buys hours of retries rather than a fix. Stored page, bot, and Stripe credentials are encrypted at rest.

Public sign-in page, captured from the running website.
A cover and three feature panels designed around the product’s interface and colors. Select any image to see it in full.




05 / Technologies
My role
Sole developer
06 / Public resources

AI & data · Web
An AI agent that answers plain-language questions about your data with validated, read-only SQL, tables, and charts.

Tools & productivity · Web
A video production toolkit that turns an idea into scripts, narration, and captioned explainer videos.

AI & data · Web
A self-hosted voice platform for Khmer and English transcription, speech synthesis, and zero-shot voice cloning.