KasaFlow
Founder and AI/Product Engineer · January 2026–present · Python / FastAPI
A WhatsApp-based AI operator being developed for a Ghanaian jewellery retailer. It helps handle customer enquiries and commerce workflows while keeping pricing, transaction state and consequential writes under application control.
What I built
- Separated the API, LLM routing, tool registry, executor and business services into modules with explicit contracts.
- Built model-selected tools for pricing, delivery information, quotes, product recommendations and order workflows, backed by catalogue and policy data separate from application logic.
- Integrated WhatsApp Cloud API and a live WooCommerce catalogue of 3,918 products.
- Worked on Twi voice-note input and ASR/TTS integration, validating API hosts, authentication and request/response shapes against live calls.
- Added a conversational outcome so social replies can short-circuit before touching order, product or memory state.
Boundaries and reliability
- propose_order() calculates a deterministic quote and creates a pending proposal; confirm_order() is the only order-write path.
- The quoted variant is re-priced before the write. The resulting store total is checked against the quote, with mismatches routed to a person.
- Code-level guards prevent flagged prompt-injection turns from confirming or cancelling orders. Human handoff is available on request and after repeated failures or manipulation.
- A per-session lock spans a complete turn to prevent concurrent messages from overwriting conversation state.
- Because WooCommerce does not provide idempotency keys for this flow, timed-out order creation is reconciled using a token in order metadata before retrying.
Evaluation and status
Built a separate behavioural evaluator with 46 scenarios across 15 categories, covering 85 customer turns, including 24 multi-turn scenarios. Conversation replays run through the real router in a sandbox.
The quote/pricing and order-creation paths were exercised end to end against the live WhatsApp API, WooCommerce catalogue and store. A complete public deployment has not been claimed; this remains a Ghanaian jewellery-retail pilot.
Test counts reflect the 2 November 2026 repository snapshot. The 29 gated tests call the real model API; this is not a claim of independently verified production reliability.