Wapas home
Inside the system

Kaise sab kuch
connect hai.

Owner ke "salam" likhne se buyer ki review tak — har flow, har handoff, har system. 5 main flows. Saat behnen. Ek backbone. Yeh raha andar ka view.

Flow 01

Owner onboarding

Salam likhne se shop live tak — pora flow.

Salam + language

step 0Shazmeen

Owner /chat opens. Shazmeen greets and picks English / Roman Urdu + business type — instant, no model wait.

3 quick forms

step 1-3Shazmeen

Business, owner and first-product forms — tailored to the chosen business type. Plain text, no jargon.

AI builds the store

buildMaida

A local AI composes a business-aware pack — schema, copy, listings, theme — in the background.

Emailed when ready

≤ 1 dayIqra

Usually minutes, at most within a day. We email a link to review + customize.

Polish + go live

polishRabail

Owner tweaks theme, copy and photos one-click — then publishes.

Output

Live storefront

merabusinessai.com/<store-id> — ready to share.

Architecture

5 layers, ek backbone

User surface se data layer tak — yeh pora stack hai.

L5

User surface

Owner + buyer entry points

  • /chat (owner)
  • /buyer/chat (buyer)
  • /<tenant> storefront
  • /manage
  • /profile
  • /orders
  • /analytics
L4

AI orchestration

7 sisters route + classify + generate

  • Sister router (sticky / classifier / topic / state)
  • Haiku 4.5 intent classifier
  • Brand-voice gate (Rabail)
  • Vision-anywhere image inlining
  • Streaming SSE for chat
L3

Application logic

Conversation engine + dispatchers

  • conversation.ts (transport-agnostic)
  • dispatcher.ts (intent → handler)
  • LLM-first natural language router
  • Onboarding state machine
  • Auth flow state machines (owner + buyer)
L2

Async & integrations

Job queue + email + image gen

  • In-process job queue (DB-persisted, 7 worker kinds)
  • Recurring scheduler (re-engagement, weekly summary, nightly backup)
  • Gmail SMTP (8 templated emails)
  • Codex CLI / OpenAI / fal.ai (image gen)
L1

Data + safety

SQLite WAL + audit + versioning

  • better-sqlite3 (WAL, foreign keys ON)
  • 20+ tables, 7 phase-3 migrations
  • audit_log + error_log (every mutation traced)
  • Versioning snapshots (revert anything)
  • Tenant-scoped query enforcement
Sister network

Routing automatic

Owner kabhi nahi sochti "kis sister se baat karoon" — system khud route karta hai. Yeh raha sister handoff graph.

ShazmeenEntry · ConciergeMaidaBrandIqraCatalogPalwashaPricingRabailQuality gateMuskanWhatsApp soonSaraWhatsApp soon
Active sisters drive turns today.
Dashed = WhatsApp-only — Muskan + Sara activate with WA launch.
Lines = handoff routes. Triggered by topic, intent, or state.
25+
Text commands
7
Khan Sisters
4
Storefront templates
5m
Setup → live

Ab khud try karein.

Salaam likhein. Saat behnen aap ki shop ko 5 minute mein live kar dein gi.