DEV Community

Shalwin Sanju
Shalwin Sanju

Posted on

Introducing My Nakama: An AI-Powered Mental Health Wellness App Built with Google Gemini API ๐ŸŒฑ๐Ÿ’™

Image description

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)

Collapse
 
somewhere_behind_a_computer profile image
Ricky

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! ๐Ÿ˜