RAI Builder
The RAI-Builder project is a SaaS platform for creating and managing AI agents/bots for businesses: the user connects channels, uploads a knowledge base, configures agent behavior, views dialogues/analytics/leads, manages subscriptions and integrations.
The stack is as follows:
Frontend
React 18 + TypeScript + Vite
Tailwind CSS, Radix UI/shadcn-style components
React Router, TanStack Query, Axios
i18next for multilingual support
Recharts for analytics
Stripe.js for payment UI
Pages: landing, auth, dashboard, bot builder, messages, knowledge, analytics, audience, settings, admin panel
Python 3.12
FastAPI
Tortoise ORM + asyncpg
Aerich migrations
Pydantic Settings
JWT auth, refresh tokens, bcrypt/passlib
SlowAPI rate limiting
Babel/i18n middleware
Celery for background tasks
Data / Storage
PostgreSQL 15 as the main database
Redis 8 as broker/result backend for Celery and runtime cache
Qdrant as vector database for knowledge base / embeddings
Docker volumes for Postgres, Redis, Qdrant, and knowledge_media
AI / RAG
OpenAI
Anthropic
LangChain
Qdrant embeddings/vector search
Parsing knowledge base from web/pdf/docx/xlsx/pptx and other sources
A separate crawler service for web scraping / URL parsing
Integrations
Telegram bots via pyrofork
Telegram auth bot
Instagram Business API / Meta webhooks
Facebook Messenger / Meta Page API
Stripe billing/subscriptions/trials
Google Drive / Google Calendar OAuth integrations
SMTP / Resend / SendGrid email delivery
Web Push notifications
CRM routing / lead sync
Infra / Runtime
Docker Compose
Separate services: frontend, backend, crawler, db, qdrant, redis, celery-worker, celery-kb-worker, celery-beat, watchtower
GHCR images for prod-like deployment
Watchtower auto-update by labels
Ports bound locally to 127.0.0.1 in compose config
In short: this is not just a "bot", but a full-fledged SaaS system: React/Vite frontend + FastAPI backend + PostgreSQL + Redis/Celery + Qdrant RAG + OpenAI/Anthropic + Telegram/Instagram/Messenger/Stripe/Google integrations + Docker deployment.
The stack is as follows:
Frontend
React 18 + TypeScript + Vite
Tailwind CSS, Radix UI/shadcn-style components
React Router, TanStack Query, Axios
i18next for multilingual support
Recharts for analytics
Stripe.js for payment UI
Pages: landing, auth, dashboard, bot builder, messages, knowledge, analytics, audience, settings, admin panel
Python 3.12
FastAPI
Tortoise ORM + asyncpg
Aerich migrations
Pydantic Settings
JWT auth, refresh tokens, bcrypt/passlib
SlowAPI rate limiting
Babel/i18n middleware
Celery for background tasks
Data / Storage
PostgreSQL 15 as the main database
Redis 8 as broker/result backend for Celery and runtime cache
Qdrant as vector database for knowledge base / embeddings
Docker volumes for Postgres, Redis, Qdrant, and knowledge_media
AI / RAG
OpenAI
Anthropic
LangChain
Qdrant embeddings/vector search
Parsing knowledge base from web/pdf/docx/xlsx/pptx and other sources
A separate crawler service for web scraping / URL parsing
Integrations
Telegram bots via pyrofork
Telegram auth bot
Instagram Business API / Meta webhooks
Facebook Messenger / Meta Page API
Stripe billing/subscriptions/trials
Google Drive / Google Calendar OAuth integrations
SMTP / Resend / SendGrid email delivery
Web Push notifications
CRM routing / lead sync
Infra / Runtime
Docker Compose
Separate services: frontend, backend, crawler, db, qdrant, redis, celery-worker, celery-kb-worker, celery-beat, watchtower
GHCR images for prod-like deployment
Watchtower auto-update by labels
Ports bound locally to 127.0.0.1 in compose config
In short: this is not just a "bot", but a full-fledged SaaS system: React/Vite frontend + FastAPI backend + PostgreSQL + Redis/Celery + Qdrant RAG + OpenAI/Anthropic + Telegram/Instagram/Messenger/Stripe/Google integrations + Docker deployment.