Omnixx — AI-Powered Customer Support Platform
An open-source, multi-tenant AI customer support platform — deploy an intelligent chatbot on any website that answers questions from your knowledge base, handles voice calls, and escalates to human operators when needed. Built with Next.js 15 , Convex , Claude AI , Stripe , and Vapi .
AI Chat Agent — Claude-powered chatbot that answers customer questions using your business context
RAG Knowledge Base — Upload docs (PDF, images, text); AI extracts, embeds, & searches them at query time
Embeddable Widget — Drop a <script> tag on any website to add a chat widget
Voice AI — In-browser voice calls and phone support powered by Vapi
Real-time Dashboard — Manage conversations, escalations, and operator handoffs live
Multi-Tenant Orgs — Isolated workspaces with team invitations and role management
Stripe Billing — Pro plan subscriptions with self-service billing portal
OAuth + Email Auth — Sign in with GitHub, Google, or email/password via Better Auth
AI agent "Milo" powered by Claude Haiku 4.5 (Anthropic) for fast, context-aware responses
AI-powered file extraction — OCR for images, text extraction from PDFs and HTML
Operator response enhancement — AI-assisted response drafting for human operators (Pro plan)
Built-in tools: knowledge base search, conversation escalation, and resolution
RAG knowledge base — upload PDFs, images, or text files; content is extracted, chunked, embedded (OpenAI text-embedding-3-small), and searched at query time
Lightweight embed script (<script> tag) that loads a chat widget iframe on any website
Real-time text chat with the AI agent
Vapi voice AI integration — in-browser voice calls and phone number support
Configurable via data-organization-id and data-position attributes
Customizable appearance: company name, tagline, greeting message, default suggestions
Conversations — view and manage all customer support threads in real-time
Knowledge Base — upload and manage documents that power the AI agent's responses
Business Info — configure business context (company details, policies, hours) used by the AI
Widget Customization — customize the widget's look, greeting, and suggested questions
Integrations & Plugins — manage third-party integrations (Vapi voice AI)
Plans & Billing — Stripe-powered subscription management with Pro plan features
Multi-Tenant Organizations
Create and manage multiple organizations
Invite team members via email (powered by Resend)
Organization-scoped data isolation
Switch between organizations seamlessly
Email/password authentication
Social OAuth — GitHub and Google
Organization invitations and member management
JWT-based session management with middleware-protected routes
Stripe Checkout for Pro plan subscriptions
Stripe Customer Portal for self-service billing management
Webhook-driven subscription lifecycle tracking
Technology
Purpose
Next.js 15
React framework (App Router, Turbopack)
React 19
UI library
Tailwind CSS 4
Styling
shadcn/ui + Radix UI
Component library
Jotai
State management
React Hook Form + Zod
Form handling and validation
Lucide React
Icons
Recharts
Analytics charts
Sonner
Toast notifications
Technology
Purpose
Convex
Real-time backend-as-a-service (database, serverless functions, subscriptions)
Better Auth
Authentication (email/password, OAuth, organizations)
Stripe
Payments and subscription billing
Resend
Transactional emails (invitations)
Technology
Purpose
@convex-dev/agent
AI agent framework
@convex-dev/rag
RAG pipeline (chunking, embedding, search)
Vercel AI SDK
LLM integration layer
Anthropic Claude Haiku 4.5
Primary LLM for chat responses
OpenAI
Text embeddings (text-embedding-3-small)
Vapi
Voice AI (in-browser + phone)
Technology
Purpose
Turborepo
Monorepo build orchestration
pnpm
Package management
Vite
Embed script bundler
Sentry
Error monitoring and performance tracking
Node.js >= 20
pnpm >= 10
A Convex account (convex.dev )
A Stripe account (for billing features)
API keys for Anthropic and OpenAI (for AI features)
git clone https://github.com/PranitPatil03/Omnix.git
cd Omnix
pnpm install
This will prompt you to create a new Convex project and generate the necessary configuration.
3. Configure Environment Variables
NEXT_PUBLIC_CONVEX_URL = " <your-convex-deployment-url>"
NEXT_PUBLIC_CONVEX_SITE_URL = " <your-convex-site-url>"
NEXT_PUBLIC_SITE_URL = " http://localhost:3000"
# Stripe
STRIPE_SECRET_KEY = " sk_test_..."
STRIPE_WEBHOOK_SECRET = " whsec_..."
STRIPE_PRO_PRICE_ID = " price_..."
STRIPE_PRO_PRODUCT_ID = " prod_..."
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY = " pk_test_..."
NEXT_PUBLIC_CONVEX_URL = " <your-convex-deployment-url>"
VITE_WIDGET_URL = " http://localhost:3001"
Convex Dashboard Environment Variables
Set these in your Convex project dashboard:
BETTER_AUTH_SECRET # Random secret for auth token signing
SITE_URL # Your dashboard URL (http://localhost:3000 for dev)
# OAuth (optional)
GITHUB_CLIENT_ID
GITHUB_CLIENT_SECRET
GOOGLE_CLIENT_ID
GOOGLE_CLIENT_SECRET
# AI
ANTHROPIC_API_KEY # For Claude Haiku (chat agent)
OPENAI_API_KEY # For text embeddings (RAG)
# Email (optional)
RESEND_API_KEY # For organization invitations
# Encryption
ENCRYPTION_KEY # 64-character hex string for AES-256-GCM
# Stripe
STRIPE_SECRET_KEY
STRIPE_WEBHOOK_SECRET
4. Run Development Servers
This starts all apps concurrently:
Add this script tag to any website to load the Omnixx chat widget:
< script
src ="https://your-embed-url/embed.js "
data-organization-id ="your-org-id "
data-position ="right "
defer
> </ script >
Attribute
Description
data-organization-id
Your organization ID from the dashboard
data-position
Widget position — "left" or "right" (default: "right")
Table
Description
conversations
Support conversations with status tracking (unresolved → escalated / resolved / operator_review)
contactSessions
Customer browser sessions with device/platform metadata
businessInfo
Organization business context used by the AI agent
widgetSettings
Widget customization config per organization
plugins
Third-party integration credentials (encrypted)
subscriptions
Stripe billing status per organization
users
User accounts
Key Architecture Decisions
Multi-tenant isolation — all data is scoped by organizationId; organizations are the primary boundary
Real-time subscriptions — Convex provides live updates for conversations and messages without polling
RAG pipeline — documents → AI text extraction → chunking → OpenAI embeddings → vector search at query time
Encrypted secrets — plugin credentials are encrypted with AES-256-GCM before storage
Component architecture — Convex components for Agent, RAG, and Better Auth are composed via convex.config.ts
Monorepo — shared UI components, TypeScript configs, and backend code across all apps
Command
Description
pnpm dev
Start all apps in development mode
pnpm build
Build all apps for production
pnpm lint
Run ESLint across all packages
pnpm format
Format code with Prettier
omnixx/
├── apps/
│ ├── web/ # Dashboard app (Next.js 15, port 3000)
│ │ ├── app/
│ │ │ ├── (auth)/ # Auth pages — sign-in, sign-up, org-selection
│ │ │ ├── (dashboard)/ # Protected dashboard pages
│ │ │ │ ├── conversations/ # Customer support threads
│ │ │ │ ├── files/ # Knowledge base file uploads
│ │ │ │ ├── business-info/ # Business context editor
│ │ │ │ ├── customization/ # Widget appearance settings
│ │ │ │ ├── integrations/ # Third-party integrations
│ │ │ │ ├── plugins/ # Plugin config (Vapi voice)
│ │ │ │ ├── billing/ # Stripe subscription management
│ │ │ │ └── settings/ # Organization/account settings
│ │ │ ├── (marketing)/ # Public landing page
│ │ │ ├── (onboarding)/ # New user onboarding flow
│ │ │ ├── api/ # Next.js API routes (Stripe, auth)
│ │ │ └── invite/ # Organization invitation acceptance
│ │ ├── modules/ # Feature modules
│ │ │ ├── auth/ # Auth views and components
│ │ │ ├── dashboard/ # Conversation management UI
│ │ │ ├── business-info/ # Business context forms
│ │ │ ├── customization/ # Widget settings UI
│ │ │ ├── files/ # Knowledge base management
│ │ │ ├── billing/ # Billing UI
│ │ │ ├── integrations/ # Integration management
│ │ │ ├── plugins/ # Vapi plugin hooks + UI
│ │ │ └── settings/ # Settings UI
│ │ ├── lib/ # Auth client, utilities
│ │ └── public/ # Static assets, images
│ │
│ ├── widget/ # Chat widget app (Next.js 15, port 3001)
│ │ ├── app/ # Widget app shell
│ │ └── modules/widget/
│ │ ├── atoms/ # Jotai state atoms
│ │ ├── hooks/ # Custom hooks (Vapi, etc.)
│ │ └── ui/
│ │ ├── components/ # Footer, header, streaming text
│ │ └── screens/ # Chat, voice, inbox, auth,
│ │ # selection, contact, error screens
│ │
│ └── embed/ # Embed script (Vite, port 3002)
│ ├── embed.ts # Script entry — creates iframe + chat button
│ ├── config.ts # Widget configuration
│ ├── icons.ts # SVG icons for the button
│ ├── demo.html # Local dev testing page
│ └── landing.html # Landing page demo
│
├── packages/
│ ├── backend/ # Convex backend (serverless)
│ │ └── convex/
│ │ ├── schema.ts # Database schema
│ │ ├── auth.config.ts # Better Auth configuration
│ │ ├── convex.config.ts # Convex component composition
│ │ ├── http.ts # HTTP routes (auth, Stripe webhook)
│ │ ├── playground.ts # AI agent playground
│ │ ├── public/ # Public API (conversations, messages,
│ │ │ # contacts, widget settings, orgs)
│ │ ├── private/ # Authenticated API (business info,
│ │ │ # files, plugins, subscriptions, Vapi)
│ │ ├── system/ # System functions (AI agent, billing,
│ │ │ # seeding, internal ops)
│ │ └── lib/ # Shared utils (encryption, text
│ │ # extraction, secrets management)
│ │
│ ├── ui/ # Shared UI library (shadcn/ui + Radix)
│ │ └── src/
│ │ ├── components/ # Button, Dialog, Dropdown, Sidebar,
│ │ │ # AI chat components, etc.
│ │ ├── hooks/ # Shared React hooks
│ │ └── lib/ # Utilities (cn, etc.)
│ │
│ ├── eslint-config/ # Shared ESLint configurations
│ ├── typescript-config/ # Shared TypeScript configs
│ └── math/ # Shared math utilities