SmartChat
A messaging app rebuilt from one WhatsApp channel to three, with chatbots deployed separately
This is a high-level account of closed-source work. Source code, customer data, internal screens, and operational details are private.
My contribution
I’m the primary developer on SmartChat, responsible for the client, API, data layer, messaging channels, and AI integrations.
- ~95%
- reduction in AI operating costs across the broader omnichannel and AI infrastructure scope
The challenge
The old app handled WhatsApp only and often ran slowly or crashed. The rebuild needed to add Instagram and Telegram, and let AI/ML engineers ship chatbot behavior without changing the main app.
The approach
I kept WhatsApp, Instagram, and Telegram in separate channel integrations and chatbot behavior in deployable modules. OpenAI, DeepSeek, and self-hosted Ollama sit behind one AI layer with provider failover.
How the system fits together
Operator interface
The web client for conversations and chatbot setup
- React and TypeScript frontend
- Conversation and configuration workflows
Application API
Connects the web client, messaging channels, and data stores
- Express API
- Channel and chatbot orchestration at a high level
Operational data
Relational records and runtime data for the platform
- MariaDB for relational records
- Redis in the runtime stack
Provider-agnostic AI layer
A shared layer for hosted and self-hosted models
- OpenAI and DeepSeek integrations
- Self-hosted Ollama models
- Failover across providers
- Cost control through provider choice and self-hosting
A simplified view, not a deployment diagram