How sumeet6288/botsmith15012026 works
BotSmith is an AI agent/chatbot builder with a React interface and FastAPI backend. A principal workflow is configuring an agent, adding file, website, or text knowledge, and serving conversations through a dashboard preview, public chat, or embedded widget. The README also documents multi-provider AI, RAG, analytics, and messaging integrations. The graph reflects documented capabilities and indexed imports; several router and service implementations were not excerpted, so their internal call relationships are left out.
Main entry points: server.py API server · discord_bot_manager.py Discord bot manager · tasks.py Background tasks · chat_service.py Conversation service
Components 31
Web experiences
- Agent builder
frontend/src/pages/ChatbotBuilder.jsx - Chat preview
frontend/src/components/ChatPreviewModal.jsx - Public chat
frontend/src/pages/PublicChat.jsx - Embed widget
frontend/public/embed.js - Dashboard
frontend/src/pages/Dashboard.jsx - App routing
frontend/src/App.js
API and accounts
- API server
backend/server.py - Authentication routes
backend/routers/auth_router.py - Token and auth
backend/auth.py - User management
backend/routers/user_router.py - Domain models
backend/models.py - MongoDB
Agent and knowledge
- Chat routes
backend/routers/chat.py - Conversation service
backend/services/chat_service.py - Agent runtime
backend/agents/runtime.py - Source routes
backend/routers/sources.py - Document processing
backend/services/document_processor.py - Chunking
backend/services/chunking_service.py - RAG retrieval
backend/services/rag_service.py - Text vector store
backend/services/vector_store.py - Website scraping
backend/services/website_scraper.py
Integrations and operations
- Background tasks
backend/tasks.py - Analytics routes
backend/routers/analytics.py - Integration routes
backend/routers/integrations.py - Discord integration
backend/routers/discord.py - Discord bot manager
backend/services/discord_bot_manager.py - Plans and limits
backend/services/plan_service.py - Cache service
backend/services/cache_service.py
Other components
- Visitor
- AI providers
- Messaging platforms
Connections 33
- Visitor → App routing: opens app
frontend/src/App.js - App routing → Agent builder: routes to
frontend/src/App.js - App routing → Public chat: routes to
frontend/src/App.js - Agent builder → Chat preview: previews agent
- Chat preview → Chat routes: sends messages
- Visitor → Embed widget: opens widget
- Embed widget → Chat routes: requests chat
- Dashboard → Analytics routes: views analytics
- API server → Authentication routes: registers routes
backend/server.py - API server → User management: registers routes
backend/server.py - API server → Chat routes: registers routes
backend/server.py - API server → Source routes: registers routes
backend/server.py - API server → Analytics routes: registers routes
backend/server.py - API server → Integration routes: registers routes
backend/server.py - Authentication routes → Token and auth: uses auth
backend/routers/auth_router.py - Authentication routes → MongoDB: reads and writes
backend/routers/auth_router.py - Token and auth → MongoDB: reads users
backend/auth.py - User management → MongoDB: reads and writes
backend/routers/user_router.py - Background tasks → Document processing: processes documents
backend/tasks.py - Background tasks → Website scraping: scrapes sites
backend/tasks.py - Background tasks → Chunking: chunks content
backend/tasks.py - RAG retrieval → Chunking: chunks documents
backend/services/rag_service.py - RAG retrieval → Text vector store: searches and stores
backend/services/rag_service.py - Discord integration → Discord bot manager: manages bots
backend/routers/discord.py - Discord bot manager → Conversation service: generates responses
backend/services/discord_bot_manager.py - Discord bot manager → Text vector store: retrieves context
backend/services/discord_bot_manager.py - Discord bot manager → Plans and limits: checks limits
backend/services/discord_bot_manager.py - Chat routes → Conversation service: handles conversations
- Conversation service → RAG retrieval: retrieves context
- Conversation service → Agent runtime: runs agent
- Agent runtime → AI providers: calls provider
- Source routes → Background tasks: queues ingestion
- Messaging platforms → Integration routes: connects platforms