How codingsk-dev/ai-bridge works
AIBridge is a business-facing platform for creating and deploying knowledge-grounded chatbots. Owners configure businesses and ingest website content or documents through the dashboard; the backend coordinates persistence and AI requests, while the Python service builds searchable knowledge and generates answers. Website visitors then use an embedded widget for text or voice interactions. The graph also preserves documented live-web fallback, reporting, and analytics capabilities. The README documents the tier-level flow; source excerpts confirm selected implementation points, but many subsystem internals and frontend-to-backend connections were not sampled.
Main entry points: app.ts Express Gateway · router.py AI API · service.py RAG Chat and Voice · route.ts Frontend API Routes
Components 22
Dashboard and Widget
- Management Dashboard
frontend/app/dashboard/page.tsx - Chat Widget
frontend/public/chatbot-widget.js - Frontend API Routes
frontend/app/api/chat/message/route.ts
Backend Gateway
- Express Gateway
backend/src/app.ts - Authentication
backend/src/auth/services/auth.service.ts - Business Management
backend/src/business/repositories/business.repository.ts - Website Ingestion
backend/src/website/services/website.service.ts - Document Upload
backend/src/documents/services/document.service.ts - Chat Orchestration
backend/src/chat/services/chat.service.ts - Background Jobs
backend/src/jobs/services/job.service.ts - Analytics
backend/src/analytics/services/analytics.service.ts
AI Service
- AI API
ai-service/app/api/router.py - Website Crawler
ai-service/app/modules/analyze_website/crawler.py - Document Processing
ai-service/app/modules/document_processing/service.py - RAG Chat and Voice
ai-service/app/modules/chatbot/service.py - Live Web Research
ai-service/app/modules/live_research/service.py - Readiness Reports
ai-service/app/modules/readiness_report
Persistence and Integrations
- Vector Index
ai-service/app/core/qdrant.py - Relational Database
backend/src/lib/prisma.ts - Supabase Storage
backend/src/storage/supabase-storage.ts
Other components
- Business Owner
- Website Visitor
Connections 25
- Business Owner → Management Dashboard: configures
- Website Visitor → Chat Widget: chats through
- Management Dashboard → Frontend API Routes: requests
- Chat Widget → Frontend API Routes: sends messages
- Frontend API Routes → Express Gateway: proxies requests
- Express Gateway → Authentication: handles identity
- Express Gateway → Business Management: manages businesses
- Express Gateway → Website Ingestion: coordinates crawling
- Express Gateway → Document Upload: coordinates uploads
- Express Gateway → Chat Orchestration: orchestrates chat
- Express Gateway → Background Jobs: dispatches work
- Express Gateway → Analytics: persists history
- Express Gateway → Relational Database: persists records
- Document Upload → Supabase Storage: stores files
backend/src/storage/supabase-storage.ts - Express Gateway → AI API: proxies AI work
- AI API → Website Crawler: routes website analysis
ai-service/app/api/router.py - AI API → Document Processing: routes document processing
ai-service/app/api/router.py - AI API → RAG Chat and Voice: routes chat
ai-service/app/api/router.py - AI API → Live Web Research: routes research
ai-service/app/api/router.py - AI API → Readiness Reports: routes reports
ai-service/app/api/router.py - Website Crawler → Vector Index: indexes vectors
- Document Processing → Vector Index: indexes chunks
- RAG Chat and Voice → Vector Index: retrieves context
- RAG Chat and Voice → Live Web Research: augments answers
- RAG Chat and Voice → Website Visitor: returns answer