📌 Overview
The AI Student HelpDesk Bot is a role-based, intelligent assistant designed to support students and staff at a university. It features a conversational interface (chat and voice), real-time LLM-based interaction, database tools, document understanding, and role-based actions. The system has two main components:
- Frontend (React.js)
- Backend (FastAPI + LangGraph + LangChain + Whisper)
.png)
🔧 Frontend (React.js)
Features:
- Chat Interface with:
- Role-based views (Guest / Student / Staff)
- Realtime messaging
- Collapsible sidebar for mode toggle
- Voice Mode
- Microphone access
- Streams audio to backend via WebSocket
- Displays transcribed and bot response text
- Authentication
- Login & Register
- Session-based storage
🔩 Backend (FastAPI)
Core Components:
1. LangGraph Flow
Start Node: AUTH NODE
- Verifies if JWT/session token exists.
- If not logged in → activates Guest Mode.
Guest Mode
- Handles queries like:
- Admission Process
- Course Details
- Fee Structure
- Powered by RAG (Retrieval-Augmented Generation):
- Vector store of college documents (PDFs, websites)
- Uses LangChain retriever tools
If Logged In → Check Role