peacebot ai is an intelligent empathetic chatbot built to offer emotional support , motivational message and mindfulness guidance Peacebot AI* is an AI-powered mental health chatbot designed to provide empathetic support, stress-relief conversations, and helpful resources to individuals experiencing emotional distress. Built with a user-centric approach, Peacebot aims to offer a safe, non-judgmental space for mental wellness conversations.
💡 Key Features
💬 Conversational support for stress, anxiety, and loneliness
🧠 Natural Language Understanding using OpenAI's API
📚 Personalized mental health tips and coping strategies
🔒 Privacy-focused and respectful interactions
🕒 Always available for support, anytime, anywhere
🧰 Tech Stack
Language:* Python
AI Integration:* OpenAI GPT (via API)
Backend:* Flask (for API server)
Frontend :* HTML/CSS/JavaScript
Version Control:* Git & GitHub
-
Create and activate a virtual environment
- Windows PowerShell
python -m venv .venv.venv\\Scripts\\Activate.ps1
- Windows PowerShell
-
Install dependencies
pip install -r Requirement.txt
-
(Optional) Set your OpenAI API key to enable AI responses
- PowerShell:
setx OPENAI_API_KEY "your_key_here" - Or create a
.envfile withOPENAI_API_KEY=your_key_here
- PowerShell:
-
Run the app
python App.py- Open
http://127.0.0.1:5000in your browser
-
API usage
- POST
http://127.0.0.1:5000/api/chatwith JSON{ "message": "your text" }
- POST
Notes
- The app works without an OpenAI key using a rule-based fallback.
- Type "gratitude" to try the gratitude flow in the UI.
- Replace
static/logo.svgwith your own logo (keep the filename) or update the<img src="/static/logo.svg">inIndex.html. - Brand colors are controlled via CSS variables in
Index.htmlunder:root:--primary(soft blue),--accent(mint green),--botand--userbubble colors.
- Dark theme values are defined under
body[data-theme="dark"]. Adjust as needed.
🌱 Future Scope Add data visualization (mood graphs) Web-based interface using Flask Emotion detection from user input Daily mental wellness check-ins Password protection
📄 License This project is licensed under the MIT License.
🧘♀️ PeaceBot AI — Because everyone deserves a moment of peace.