Skip to main content

SMS Employees

Multi-tenant SaaS platform for AI-powered SMS and email agents.

Overview

A comprehensive SaaS platform that allows users to create AI agents with unique personalities that respond to SMS and email messages using OpenAI's GPT models.

Tech Stack

  • Frontend: React + TypeScript + Tailwind CSS
  • Backend: Node.js + Express + TypeScript
  • Database: PostgreSQL + Prisma ORM
  • Queue: Bull Queue + Redis
  • External APIs: Twilio, SendGrid, OpenAI
  • Deployment: Docker Compose

Key Features

Multi-tenant Architecture

  • Isolated user environments
  • Individual agent management per user
  • Secure API key storage with encryption
  • Role-based access control

AI Agent Creation

  • Custom personality and role definition
  • Specialized system prompts
  • Role-based agents (financial advisor, marketing expert, etc.)
  • Unique email addresses per agent

Communication Channels

  • SMS integration via Twilio webhooks
  • Email processing via SendGrid inbound parse
  • Real-time message processing
  • Asynchronous response generation

Advanced Features

  • Usage tracking and cost monitoring
  • Token consumption analytics
  • Response time monitoring
  • Queue-based message processing

Architecture

Frontend ←→ Backend API ←→ Bull Queue ←→ AI Processing

PostgreSQL Database

External APIs (OpenAI, Twilio, SendGrid)

Security

  • JWT authentication with refresh tokens
  • Encrypted OpenAI API key storage
  • Input validation and sanitization
  • Rate limiting and abuse prevention

Use Cases

  • Customer support automation
  • Personal assistant services
  • Specialized consultation agents
  • Multi-channel communication management