Back to Projects
Full-Stack AI / SaaS· 2026

AI Customer Service Chatbot

Production-grade RAG chatbot with real-time human handoff

45+
API Endpoints
85+
Security Patterns
15
DB Tables
11
LangGraph Nodes
Problem

Small and medium businesses lose potential leads and customers due to slow, inconsistent customer support. Hiring 24/7 support teams is cost-prohibitive for startups.

Solution

Built a full-stack AI-powered customer service platform that combines RAG-based intelligent responses with seamless human agent escalation. The system supports bilingual Arabic-English conversations with enterprise-grade security.

Tech Stack

FastAPIPython LLM (Gemini)LangGraphPostgreSQLNuxtDockerNumPy

Key Features

RAG pipeline with Gemini embeddings and configurable similarity thresholds
LangGraph state machine for intelligent chat routing
100+ regex patterns for prompt injection detection in English and Arabic
Real-time WebSocket bridge for human agent handoff
Bilingual support with Arabic-first design and dialect handling
Admin dashboard with analytics, conversation search, and Excel export
Embeddable widget

Results

Deployed for SahmAlgo stock trading platform

Handles 15+ concurrent conversations with sub-second response times

Complete SaaS roadmap with multi-tenant architecture ready

Visualizations

Widget Home — Welcome screen with quick actions

Widget Home — Welcome screen with quick actions

AI Chat — Intelligent responses with suggested follow-up questions

AI Chat — Intelligent responses with suggested follow-up questions

Chat Widget — RAG-powered answers about subscription plans

Chat Widget — RAG-powered answers about subscription plans

Messages — Conversation history with ratings and status

Messages — Conversation history with ratings and status

AI guardrails in action: blocking prompt injection + automated human escalation.

AI guardrails in action: blocking prompt injection + automated human escalation.

Admin Dashboard
Analytics Overview — KPIs and escalation tracking

Analytics Overview — KPIs and escalation tracking

Conversation Search — Chat history

Conversation Search — Chat history