This project is a simple and interactive chatbot designed to provide empathetic, motivational, and informative responses for mental health support. Users can engage with the chatbot to manage anxiety, relieve stress, or boost their mood.
- Interactive Chat Interface: A user-friendly interface for smooth interaction with the chatbot.
- Customizable Responses: Users can choose response styles (e.g., Empathetic, Motivational, Informative) and focus areas (e.g., Anxiety Management, Stress Relief, Mood Boost).
- Dark Mode Support: Toggle between light and dark modes for a comfortable user experience.
- Typing Indicator: Displays a "Bot is typing" animation for realism.
- Responsive Design: Works seamlessly on desktop and mobile devices.
- Frontend: HTML, CSS, JavaScript
- Backend: Google Generative Language API
- Styling: CSS variables for theme customization
-
Clone the repository:
git clone https://github.com/kushals256/MentalHealthChatBot.git
-
Navigate to the project directory:
cd MentalHealthChatBot
-
Add your Google Generative Language API key:
- Open the
script.js
file. - Locate the placeholder for the API key and replace it with your own key from Google Gemini.
- Open the
-
Open the
index.html
file in your browser to launch the chatbot.
- Open the chatbot in your browser.
- Type your message in the input box and press the Send button or hit Enter.
- Customize the chatbot's response style and focus area by clicking the ⚙️ Settings button.
- Toggle between light and dark modes using the 🌙 Theme Toggle button.
- Navigate to the settings popup by clicking the ⚙️ button.
- Select your preferred response style from the dropdown menu.
- Empathetic: Supportive and caring responses.
- Motivational: Encouraging and uplifting responses.
- Informative: Tips and advice-focused responses.
- In the settings popup, choose the chatbot's focus area:
- Anxiety Management
- Stress Relief
- Mood Boost
- Switch between light and dark themes using the 🌙 button at the top-right corner.
mental-health-chatbot/
│
├── index.html # Main HTML file
├── styles.css # CSS for styling
├── script.js # JavaScript for chatbot functionality
└── README.md # Project documentation
Contributions are welcome! Follow these steps to contribute:
- Fork the repository.
- Create a new branch:
git checkout -b feature-name
- Make your changes and commit them:
git commit -m "Add feature-name"
- Push to the branch:
git push origin feature-name
- Open a pull request on GitHub.
- Google Generative Language API for backend AI responses.
- This project is licensed under the MIT License.