How varunpandey20629/college-chatbot works
SmartCampus Assistant is a student-facing campus guidance chat application. Students use the React interface to manage conversations, explore campus topics, and submit questions; the interface calls the Express API, which serves college FAQs and can use an OpenAI-compatible provider for general questions. Google sign-in is verified by the backend. A separate optional Flask service and document-ready knowledge base are also documented. The sampled code shows the main frontend/API flow, but not a connection from the Node backend to the Python service or documents.
Main entry points: server.js Chat and topics API · App.jsx Assistant dashboard · main.jsx React entry · style.css Interface styling
Components 10
Student interface
- Assistant dashboard
frontend/src/App.jsx - React entry
frontend/src/main.jsx - Interface styling
frontend/src/style.css
Chat and identity API
- Chat and topics API
backend/server.js - College FAQ answers
backend/server.js
Optional Python service
- Python FAQ service
ai/chatbot.py - College guidance documents
ai/documents
Other components
- Student
- General AI provider
- Google Identity
Connections 8
- Student → Assistant dashboard: uses
frontend/src/App.jsx - React entry → Assistant dashboard: renders
frontend/src/main.jsx - React entry → Interface styling: loads styles
frontend/src/main.jsx - Assistant dashboard → Chat and topics API: requests answers
frontend/src/App.jsx - Chat and topics API → College FAQ answers: answers FAQs
backend/server.js - Chat and topics API → General AI provider: requests general answers
backend/server.js - Assistant dashboard → Google Identity: loads sign-in
frontend/src/App.jsx - Chat and topics API → Google Identity: verifies tokens
backend/server.js