KHOLO LogoDocs v1.0

Documentation Hub

Automated B2B WhatsApp order-processing and ERP integration platform for wholesale and FMCG distributors.

Welcome to the official documentation for KHOLO, the automated B2B WhatsApp order-processing and ERP integration platform for wholesale and FMCG distributors.

Core Value Proposition: Turn chaotic WhatsApp customer messages, informal trade slang, and voice notes into clean, validated, ready-to-approve ERP sales orders in under 35 seconds.


️ Documentation Directory

1. ️ Architecture & Concepts

  • System Architecture & Data Flow: End-to-end technical pipeline (Meta WhatsApp $\rightarrow$ Fastify Webhook $\rightarrow$ Redis/Background Task Queue $\rightarrow$ Gemini/OpenAI $\rightarrow$ Vector Database Matcher $\rightarrow$ Sage ERP).
  • The Learning Loop & Alias Engine: How KHOLO resolves South African trade jargon, brand abbreviations, packaging units, and learns customer-specific slang dynamically.

2. User Guides (Operations)

  • Order Clerk Control Centre Guide: Daily order inbox workflow, 3-tier confidence badges (Green / Amber / Red), "Resolve & Teach" corrections, handling voice notes, and order splitting.
  • Warehouse & Dispatch Operations: Accessing the warehouse view, generating standardized pick slips with aisle/bin locations, and packing verification.
  • Catalog & Inventory Management: Managing SKUs, multi-tier pricing, pack sizes, stock allocations, safety stock, and manual alias mapping.
  • Customer Master & Credit Control: Customer phone number registration (E.164), credit hold enforcement (ACTIVE vs. HOLD), and primary delivery locations.

3. Integrations & Connectivity

4. Pilot Rollout & Operations

  • The 3-Day Pilot Playbook: The phased operational runbook for onboarding a live distributor: Day 1 (Shadow Mode), Day 2 (Hybrid Clerk Review), Day 3 (Full Live Automation).
  • Pre-Flight Verification & Smoke Tests: Running the 5-point automated readiness audit (verify-readiness.ts) and catalog ingestion script (import-pilot-catalog.ts).

5. Developer & DevOps Guide

  • Local Development Quickstart: Monorepo layout, Docker Compose setup (PostgreSQL + Vector Database, Redis 7), database migrations, seed scripts, and running dev servers.
  • Using the WhatsApp Simulator: Testing text orders and audio voice notes locally without needing a live Meta Cloud API account.
  • Production Deployment & Security: Docker Compose production deployment, reverse proxies, environment variables, authentication, audit trails, and POPIA compliance.
  • REST API Reference: Comprehensive endpoint catalog for orders, items, products, customers, kiosk mode, and tenant administration.

Quick Navigation by Role

If your role is...Start with...Key Goal
Distributor Owner / General ManagerArchitecture Overview & 3-Day Pilot PlaybookUnderstand the business ROI, zero-risk rollout, and automated error reduction.
Order Entry Clerk / Sales DeskClerk Control Centre GuideLearn how to review orders, correct ambiguous items, and approve orders in 1 click.
Warehouse / Dispatch SupervisorWarehouse & Dispatch OperationsPrint warehouse pick slips and coordinate pick/pack operations by bin location.
IT Manager / ERP AdministratorSage Evolution Integration & Meta SetupConfigure Freedom Service endpoints, tokens, and firewall rules.
Software Engineer / DevOpsLocal Quickstart & API ReferenceSpin up the local monorepo, test with the simulator, and deploy to production VMs.

️ Support & Contributing

  • For security vulnerabilities or suspicious account activities, refer to Production Deployment & Security.
  • To run automated tests across API and web: npm test inside apps/api.

On this page