Mindful Companion
Inspiration
Mental health is important, but not everyone feels comfortable talking to others or has access to a therapist. We wanted to build something that gives people a safe space to express their feelings, ask questions about mental health, and learn techniques to feel better. That’s how we came up with Mindful Companion — a friendly, digital support system for mental wellness.
What it does
Mindful Companion is a website where users can:
- Chat with a mental health companion: Ask questions or share feelings at any time.
- Practice breathing exercises: Follow the 4-4-4 breathing rule (4 seconds inhale, 4 seconds hold, 4 seconds exhale) with a calming visual animation.
- Track mood and emotions: Journal how they feel and view their mood trends with graphs and charts.
It’s a simple and helpful tool for anyone looking to improve their mental well-being.
How we built it
We used the following tools and technologies:
- Streamlit to build the web interface
- Google Generative AI for creating the intelligent chat experience
- NLTK (Natural Language Toolkit) for processing and understanding user messages
- Matplotlib to make the breathing simulation using animated circles and also to draw mood tracking charts
All of these work together to make the app interactive, responsive, and visually calming.
Challenges we ran into
- Creating smooth breathing animations with Matplotlib was tricky in Streamlit.
- Connecting the chatbot with Google Generative AI and making it respond naturally took time and testing.
- Making the mood tracker both simple to use and visually clear was a design challenge.
Accomplishments that we're proud of
- Built a fully functional mental health companion website
- Successfully implemented a breathing exercise animation using only circles
- Made a mood tracker that stores and displays emotional trends in a clean, useful way
What we learned
- How to integrate AI tools like Google Generative AI into a web app
- How to animate visuals using Matplotlib in Streamlit
- Better understanding of natural language processing with NLTK
- Importance of user-friendly design, especially for mental health tools
What's next for Mental Health Support App
We plan to:
- Add reminders for breathing exercises and journaling
- Include more types of exercises, like meditation or grounding
- Improve chatbot responses with more mental health data
- Let users download or export their mood journals
Mindful Companion is just the beginning of building a more supportive and accessible mental health environment online.
Log in or sign up for Devpost to join the conversation.