Back to projects
LiveBackend & AI Engineer · Founder · 2024 — Present
ChatPilot
Multi-tenant AI CRM Platform
A full multi-tenant AI CRM platform built on business messaging. It pairs a NestJS backend, a dedicated messaging server, a real-time web dashboard, and an AI agent layer so many businesses run on one system with full data isolation. AI agents chat with customers 24/7 and staff can take over any conversation at any time.

The Problem
Service businesses were losing leads because customer messages went unanswered outside working hours. There was no single place to manage conversations, AI replies, and staff handover across many businesses at scale — and most tools could not isolate each business safely on shared infrastructure.
Architecture & Approach
- Multi-tenant NestJS backend (API server) with strict per-tenant data isolation and role-based access
- Dedicated messaging server that connects to the WhatsApp / Meta Cloud API and handles inbound and outbound messages
- Queue-based message processing (Redis + BullMQ) so the system stays fast and never drops messages under load
- AI agent layer (OpenAI) that reads conversation context, answers, books, and follows up — with smooth handover to human staff
- Real-time web dashboard for live chats, history, templates, bulk campaigns, and per-number AI on/off control
- PostgreSQL for core relational data and Redis for caching, sessions, and queues
- Dockerized services deployed on DigitalOcean behind Nginx, with GitHub Actions CI/CD and zero-downtime releases
- Prometheus + Grafana monitoring with health checks and alerts so issues are caught early
Tech Stack
NestJSNode.jsPostgreSQLRedisBullMQTypeScriptOpenAIWhatsApp / Meta Cloud APIDockerNginxDigitalOceanGitHub ActionsPrometheusGrafana
Results
- Handles 50,000+ messages per day in production
- AI resolves around 80% of conversations on its own
- 60% more client replies for businesses on the platform
- Serves multiple paying businesses on one isolated multi-tenant system
- Zero-downtime deploys with automated CI/CD and live monitoring