SMSPort Platform Overview

SMSPort is an enterprise-grade healthcare communication and marketing automation platform built on the Meta WhatsApp Cloud API.


High-Level Architecture

graph TD
    subgraph ClientLayer["Clients & Channels"]
        WebConsole["SMSPort Web Console (Next.js 15)"]
        MobileApp["SMSPort Mobile App (Flutter)"]
        WhatsAppUser["WhatsApp Customer / Patient"]
    end

    subgraph Gateway["Edge & Ingress"]
        Nginx["Nginx Reverse Proxy + SSL"]
    end

    subgraph ServiceLayer["Backend Services (NestJS Monorepo)"]
        API["smsport-api (Core REST & SSE)"]
        BotEngine["Visual Bot Engine & Simulator"]
        DripWorker["Campaign & Drip Worker (BullMQ)"]
        FlowDecryptor["AES-GCM Flow Decryptor"]
    end

    subgraph DataLayer["Persistence & Caching"]
        Postgres[(PostgreSQL + TypeORM)]
        Redis[(Redis Cache & BullMQ)]
    end

    WebConsole --> Nginx
    MobileApp --> Nginx
    WhatsAppUser -->|Webhook| Nginx
    Nginx --> API
    API --> BotEngine
    API --> DripWorker
    API --> FlowDecryptor
    BotEngine --> Postgres
    BotEngine --> Redis
    DripWorker --> Redis

Core Capabilities

  1. Multi-Tenant Workspaces: Complete logical isolation per clinic, hospital, or organization.
  2. Visual Bot Builder: 22+ execution cards with branching, variable interpolation, and EMR integration.
  3. Meta WhatsApp Flows: Native interactive multi-screen forms with end-to-end encryption.
  4. Realtime Live Chat: SSE-powered inbox with operator presence locking and canned responses.
  5. Drip & Campaign Engine: Broadcast messaging with delivery tracking and automatic retry logic.