How tusharkesarwani/ai-chatbot works
This is an ed-tech course-question chatbot with a React client and Express/MongoDB backend. Users submit questions in the chat UI; the backend searches FAQ records and returns matching answers or a fallback message. The README also describes escalation, satisfaction feedback, sales follow-up, and performance monitoring. The excerpts show feedback endpoints and basic web-vitals reporting, but not a working client escalation/feedback flow or sales integration; those links are therefore documented or left unverified rather than presented as implemented calls.
Main entry points: chatbotController.js Query and feedback · App.js Chat app · ChatInterface.js Chat interface · server.js HTTP server
Components 11
Chat client
- Chat app
ai-chatbot-frontend/src/App.js - Chat interface
ai-chatbot-frontend/src/components/ChatInterface.js - Web vitals
ai-chatbot-frontend/src/reportWebVitals.js - Performance monitoring
ai-chatbot-frontend/src/reportWebVitals.js
Chat API
- HTTP server
chatbot-backend/server.js - Chat routes
chatbot-backend/routes/chatbotRoutes.js
FAQ and support
- Query and feedback
chatbot-backend/controllers/chatbotController.js - FAQ records
chatbot-backend/models/FAQ.js - Doubt assistant
chatbot-backend/controllers/doubtAssistantController.js - Sales follow-up
chatbot-backend
Other components
- Course seeker
Connections 12
- Course seeker → Chat app: uses
Readme.md - Chat app → Chat interface: renders
ai-chatbot-frontend/src/App.js - Chat interface → HTTP server: posts query
ai-chatbot-frontend/src/components/ChatInterface.js - HTTP server → Chat routes: mounts
chatbot-backend/server.js - Chat routes → Query and feedback: dispatches
chatbot-backend/routes/chatbotRoutes.js - Query and feedback → FAQ records: searches
chatbot-backend/controllers/chatbotController.js - HTTP server → FAQ records: connects store
chatbot-backend/server.js - Chat routes → Query and feedback: routes feedback
chatbot-backend/routes/chatbotRoutes.js - Chat interface → Doubt assistant: escalates
Readme.md - Query and feedback → Sales follow-up: shares transcripts
Readme.md - Chat app → Web vitals: starts
ai-chatbot-frontend/src/index.js - Web vitals → Performance monitoring: reports metrics
ai-chatbot-frontend/src/reportWebVitals.js