Back to Projects

SAMKIEL BOT

A full-stack WhatsApp bot deployment and management platform that lets users provision, configure, and control bot instances via a web dashboard — with real-time pairing, server orchestration, and a credit-based billing system.

nextmongodbtailwindjavascript
SAMKIEL BOT

The Problem

WhatsApp's connection lifecycle is fragile — sessions expire, pairing codes have strict time windows, and connections drop without warning. The core challenge was orchestrating multiple independent bot instances simultaneously while keeping everything stable and surfacing real-time state to the user. On top of that, designing a billing system that was fair, transparent, and resistant to abuse required multiple iterations to get right.

The Solution

Built a backend orchestration layer that manages bot processes independently from the frontend. The dashboard communicates via WebSockets so users see pairing codes and connection status in real time — no polling delays. Each bot instance runs in an isolated configuration namespace to prevent cross-user interference. The credit billing system tracks usage per instance with full transparency. Graceful error recovery and automatic reconnection logic handle the inevitable instability of external WhatsApp connections.

// what I learned

Real-time server orchestration is a completely different discipline from standard web development. WebSocket architecture, stateful connection management at scale, and billing system design all pushed me into new territory. The biggest takeaway: production software is defined by how it behaves when things go wrong, not when they go right.

Related Projects

All Projects -