The inbox is a group, not a ticket form
WhatsApp Group CRM is a multi-tenant product for sales teams that already work in WhatsApp groups — real-estate desks in particular. Each workspace has its own subdomain. The inbox watches the group, detects inquiries, assigns an agent, escalates on SLA (`whatsapp:check-sla`), and schedules follow-ups. A lead that only exists in a chat scroll is not a pipeline.
Plans are Starter, Growth, and Pro, with JazzCash, EasyPaisa, and Stripe. A prepaid wallet sits in front of campaign sends so a batch cannot run past what the workspace has paid for. Pro can optionally call OpenAI for reply suggestions; the inbox still works without that.
Campaigns that can be retried safely
Campaign batches take a wallet hold, track clicks through `/t/{code}`, and run on scheduled jobs. A retry must not send the same message twice and must not charge the wallet twice. That is why the hold exists before the send, instead of debiting after Meta accepts the request.
The app is Laravel 13, Inertia, React 19, TypeScript, and PostgreSQL, talking to the Meta WhatsApp API. There are 46-plus automated SaaS feature tests. `make verify` runs the tests, a staging checklist, and payment smoke tooling, and GitHub Actions runs on push to main.
Why the workspace boundary is load-bearing
Two agencies on one database will eventually share a template, a wallet balance, or a contact if tenant scope is a filter someone forgot. Subdomains make the boundary visible to the user. Route and query scope have to make it visible to the code.
SLA escalation is a job, not a badge on the UI. If the job is down, the inbox looks calm while leads wait. The check command is part of operating the product, in the same way payment webhooks are part of operating billing.
In production
Workspace subdomains isolate sales teams while the WhatsApp group inbox handles inquiry detection, SLA escalation, agent assignment, and campaign batch sends with wallet holds and click tracking.
What shipped
- 46+ automated SaaS feature tests; `make verify` runs tests, staging checklist, and payment smoke-test tooling; GitHub Actions on push to main
- Group inbox with inquiry detection, SLA escalation (`whatsapp:check-sla`), agent assignment, and follow-up scheduling
- Campaign batch sends with wallet holds, click tracking (`/t/{code}`), scheduled jobs, and optional OpenAI reply suggestions on Pro