Hello, Dev Community! 👋
I'm excited to share My Nakama – a mental health wellness application developed for the Google Gemini API Developer Competition 2024. This project combines AI technology with mental health support, making self-care more accessible and personalized. Here’s a breakdown of what went into this project and how My Nakama can help make a difference.
Why My Nakama?
In today’s world, mental health care is often out of reach, stigmatized, or difficult to navigate. My Nakama aims to tackle these issues by creating a companion AI that engages users in supportive conversations, provides coping resources, and, in severe cases, alerts emergency contacts. The name "Nakama" means "friend" or "companion," reflecting our mission to provide users with a trusted ally for their mental wellness journey.
How It Works
At the heart of My Nakama lies a Conversational RAG (Retrieval-Augmented Generation) Agent that analyzes user input to provide responsive, insightful support. Here’s a deep dive into the app’s core features:
🔹 AI Therapist Chat
Users can engage in real-time conversations with the AI therapist, trained to provide empathetic and insightful responses to emotional challenges. The RAG agent, developed with LangChainJS and Google Gemini API, offers a conversational layer that prioritizes the user’s emotional context and provides relevant, helpful advice.🔹 Journal Analysis with Dynamic Blog Updates
Users can write journal entries, which the AI analyzes to detect underlying emotional patterns or mental health trends. The RAG model extracts keywords from journal content and updates the blog section with articles and videos relevant to the user’s mental state. For instance, an entry about “feeling overwhelmed” might yield resources on stress management and relaxation techniques.🔹 Emergency Contact Alert System
For users experiencing severe distress, such as suicidal thoughts or overwhelming anxiety, My Nakama doesn’t just respond with text. The AI generates a personalized message and sends it to the user’s designated emergency contact, ensuring timely intervention and support when it matters most.
Tech Stack
Frontend: React, TailwindCSS, DaisyUI, MaterialUI
Backend: Node.js, LangchainJS
Storage: Supabase
API: Google Gemini API
The seamless integration of these tools enables My Nakama to deliver a responsive, intuitive user experience while handling real-time data and supporting a robust mental wellness platform.
Challenges & Takeaways
Working on My Nakama has been both challenging and rewarding. Creating a mental health AI agent required sensitivity in the design of conversational models and a comprehensive content moderation system. Integrating the emergency alert feature was essential, adding a safety layer that many wellness apps lack.
Try It Out!
🌐 Live App: My Nakama
🎥 YouTube Demo: Watch the Demo
What’s Next?
My Nakama is just the beginning. I’m excited to keep improving the app with more personalization features, advanced sentiment analysis, and further integration with APIs that promote mental wellness.
Feedback, collaboration, and suggestions are welcome as we strive to make mental health care more accessible to all. Thanks for reading, and I hope My Nakama resonates with you as it does with me!
Top comments (1)
I can see this being very helpful in everyday life. if I was better at coding I would most certainly help but I suck lol. I do though think you will change some peoples lives if this works out. good luck! 😁