Shakthi Bot is an intelligent chatbot assistant that helps users navigate the Campus Bridge Learning Management System. Named after the Sanskrit word for "power" or "strength," Shakthi Bot empowers students to easily find what they need within the platform.
- Context-Aware Responses: Provides relevant help based on the current page
- Website Navigation Guidance: Assists users in finding courses, lectures, assignments, and other resources
- Login and Registration Help: Guides users through account creation and login processes
- Course Information: Provides details about available courses and how to access them
- Support Information: Offers contact details for technical support
- Consistent Experience: Available on all pages of the application
public/shakti-bot.js- Centralized JavaScript implementation- HTML Files - All pages include the chatbot elements and script reference
- Page Context Detection: The bot detects which page the user is on to provide contextually relevant responses
- Natural Language Processing: Users can ask questions in plain English
- Predefined Responses: The bot has a comprehensive set of responses for common questions
- Dynamic UI: Chat widget appears as a floating button that can be opened/closed
Shakthi Bot is now available on all pages of the Campus Bridge application, including but not limited to:
- Homepage (
index.html) - Login Page (
studentlogin.html) - Registration Page (
register.html) - Forgot Password Page (
forgot-password.html) - Courses Dashboard (
courses.html) - Free Courses Page (
freecourses.html) - Main Dashboard (
dashboard.html) - Placement Panel (
placement.html) - Assignments (
assignments.html) - Lectures (
lectures.html) - Attendance (
attendance.html) - Exams (
exams.html) - Timetable (
timetable.html) - Reports (
reports.html) - Profile (
profile.html) - Logout (
logout.html) - Assignment Details (
assignment-details.html,assignment-details2.html) - AI Assistant (
aiassistant.html) - Coding Tracks (
codingtracks.html) - DSA (
dsa.html) - Web Development (
webdevelop.html) - Python (
python.html) - Java (
java.html) - Course List (
devcourse.html) - Main Board (
mainboard.html)
Users can interact with Shakthi Bot by:
- Clicking the circular icon in the bottom-right corner of the screen
- Typing questions in natural language
- Receiving immediate, helpful responses
- "How do I access courses?"
- "Where can I find free courses?"
- "How do I log in to my account?"
- "Where is the placement panel?"
- "How can I contact support?"
- "What courses are available?"
- "How do I watch course videos?"
To modify Shakthi Bot responses:
- Edit
public/shakti-bot.js - Modify the response functions:
getCoursesResponse()- For courses page responsesgetLoginResponse()- For login page responsesgetFreeCoursesResponse()- For free courses page responsesgetGeneralResponse()- For general responses
The bot is implemented as a JavaScript class with the following methods:
initialize()- Sets up the chatbot UI and event listenerscreateChatElements()- Dynamically creates chatbot HTML elementsaddEventListeners()- Attaches click and keyboard eventsappendMessage()- Adds messages to the chat logshowWelcome()- Displays context-aware welcome messagegetResponse()- Processes user input and returns appropriate response- Context-specific response methods for different pages
The bot determines the current page by examining the URL path:
/courses- Courses context/login- Login context/free- Free courses context/register- Registration context/placement- Placement context- Default - General context
Potential improvements for Shakthi Bot:
- Integration with Backend: Connect to Campus Bridge APIs for real-time data
- Machine Learning: Implement more sophisticated NLP for better understanding
- Voice Support: Add voice input/output capabilities
- Multilingual Support: Offer assistance in multiple languages
- Personalization: Customize responses based on user history and preferences
If Shakthi Bot doesn't appear:
- Ensure
shakti-bot.jsis properly loaded - Check browser console for JavaScript errors
- Verify that the HTML includes the chatbot elements and script reference
If responses seem incorrect:
- Check the context detection logic in
shakti-bot.js - Verify that the appropriate response function is being called
- Ensure the response text is accurate and helpful