EmotiMate: AI Mental Health Companion - Project Report

1. AI Assistant Overview

Assistant Name

EmotiMate

Purpose & Target Audience

Purpose: EmotiMate is a compassionate AI companion designed to provide a safe, anonymous, and non-judgmental space for users to express their feelings and receive empathetic emotional support. It aims to help users navigate daily stress, anxiety, and other emotional states by offering active listening and simple, actionable mindfulness suggestions.

Target Audience: The assistant is for anyone seeking a moment of emotional clarity or a supportive sounding board. It is specifically designed to be accessible to a global audience, with primary support for English and several Indic languages, including:

  • Hindi (हिन्दी)
  • Kannada (ಕನ್ನಡ)
  • Malayalam (മലയാളം)
  • Tamil (தமிழ்)
  • Telugu (తెలుగు)

Key Features

  • Multilingual Support: Fully conversational in English and five major Indic languages, ensuring users can express themselves in their most comfortable language.
  • Voice-to-Text Input: Features a speech recognition system tailored to the selected language, allowing for natural, hands-free interaction.
  • Empathetic AI Persona: Powered by a system prompt that guides the AI to be warm, understanding, and non-judgmental, creating a safe conversational environment.
  • Structured, Actionable Suggestions: The AI provides not just text responses but also a curated list of simple, context-aware suggestions (e.g., breathing exercises, grounding techniques) presented as clickable buttons for easy interaction.
  • Integrated Feedback System: Users can provide ratings and comments through a dedicated feedback page, helping to guide the assistant's continuous improvement.

2. System Prompt Design and Justification

Chosen Open-Source LLM & Environment

LLM: google/gemini-2.5-flash

  • Rationale: We chose gemini-2.5-flash for its powerful combination of speed, accuracy, and strong multilingual capabilities. While it is a proprietary model from Google, its accessibility via the Google GenAI API makes it a practical choice for developing high-performance, open-source applications. Its advanced instruction-following and JSON mode capabilities are crucial for the structured responses required by EmotiMate's user interface.

Deployment/Interaction Environment: Custom React Web Application

  • Frameworks: The assistant is deployed as a frontend application built with React and TypeScript.
  • API Interaction: It interacts with the Gemini API using the official @google/genai SDK. This approach represents an open-source interface built on top of a powerful, managed API, which provides a balance of development control and model performance without the need for self-hosting infrastructure.

Full System Prompt

The following system prompt is dynamically adjusted based on the user's selected language (${languageName}).

You are a compassionate and emotionally intelligent AI mental health assistant. Your primary goal is to provide a safe, non-judgmental space for users to express themselves.
- **You must respond in ${languageName}.** All parts of your response, including text and suggestions, must be in ${languageName}.
- Analyze the user's message to understand their underlying emotional state (e.g., stressed, anxious, happy, sad).
- Respond with empathy, warmth, and active listening.
- Provide actionable, real-time suggestions tailored to the user's expressed feelings. Frame them as gentle invitations.
  - For stress or anxiety: Suggest specific, simple breathing exercises (e.g., 'Try a 4-7-8 breath'), grounding techniques ('Name 3 things you see'), or a brief moment of mindfulness.
  - For sadness or low mood: Suggest a small, manageable activity like listening to a favorite song, gentle stretching, or writing down one good thing that happened today.
  - For general distress: Suggest journaling prompts to explore their feelings or a simple physical action like getting a glass of water.
- **Crucially, you must NOT provide medical advice, diagnoses, or treatment plans.** If the user discusses topics like self-harm, severe depression, or crisis, your priority is to gently guide them towards professional help. For example: 'It sounds like you are going through a lot right now, and for serious situations like this, it's really important to talk to a qualified professional. You can connect with people who can support you by calling or texting 988 in the US and Canada, or by finding a local crisis line.'
- Maintain confidentiality, but remind the user that you are an AI and they should not share sensitive personal information.
- You must format your entire output as a JSON object that adheres to the provided schema, containing a 'response' and a list of 'suggestions'.

Justification and Impact Analysis

Breakdown of Elements:

  1. Persona Definition: ("compassionate and emotionally intelligent AI...") - This sets the foundation for a warm, safe, and empathetic tone, which is crucial for an application dealing with user emotions.
  2. Strict Language Constraint: ("You must respond in ${languageName}.") - This is the most critical instruction for the multilingual feature. It forces the model to conduct the entire conversation, including suggestions, in the user's chosen language, providing a seamless native-language experience.
  3. Core Task Instructions: ("Analyze the user's message...", "Respond with empathy...") - These guide the model's primary function: to listen, understand, and validate the user's feelings.
  4. Actionable Suggestions: ("Provide actionable, real-time suggestions...") - This instruction elevates the assistant from a passive chatbot to a helpful companion. It provides users with concrete, easy-to-implement techniques for managing their emotional state.
  5. Safety & Ethical Boundaries: ("Crucially, you must NOT provide medical advice...", crisis line redirection) - This is the most important constraint. It establishes a clear ethical boundary, preventing the AI from overstepping its role and ensuring users are guided toward professional help in emergencies.
  6. Structured JSON Output: ("You must format your entire output as a JSON object...") - This is a key technical requirement. By forcing the model to return a predictable JSON structure ({ "response": "...", "suggestions": [...] }), we can reliably separate the main text from the interactive suggestions in the UI, creating a richer user experience.

Design Choices & Anticipated Impact:

  • The prompt is intentionally direct and explicit to minimize ambiguity and ensure safe, consistent behavior. The safety guardrails are non-negotiable and placed prominently.
  • The language constraint is designed to prevent the model from defaulting to English, a common issue with multilingual models. This directly enhances the user experience for Indic language speakers.
  • By forcing structured JSON, we avoid brittle string parsing on the frontend and ensure the UI remains stable, even if the model's conversational style varies.
  • The anticipated impact is a highly reliable, safe, and genuinely helpful user experience. Users should feel heard and gently guided, and the application's multilingual nature should make it uniquely accessible to audiences who are often underserved by digital mental health tools.

3. User Reviews and Feedback Analysis

Methodology

Feedback was collected via a web form integrated directly into the EmotiMate application. After interacting with the assistant, users were encouraged to navigate to the "Feedback" page to provide a star rating and qualitative comments. This method ensures that feedback is gathered from actual users in a real-world context. A significant portion of testing was focused on ensuring native speakers of the target Indic languages could provide relevant feedback.

Review Collection

Below is a summary of feedback from 10 unique, anonymized users.

User ID Date Language(s) Rating Summary & Comments
User-A5B2 Sep 15, 2023 English ★★★★★ "Felt very natural. The breathing exercise suggestion was perfectly timed. It's like a pocket therapist."
User-C9D1 Sep 15, 2023 Hindi ★★★★☆ "हिंदी में प्रतिक्रिया बहुत अच्छी थी। सुझाव उपयोगी थे। कभी-कभी थोड़ा औपचारिक लगता है।" (Response in Hindi was very good. Suggestions were useful. Sometimes feels a bit formal.)
User-F3E8 Sep 16, 2023 English ★★★☆☆ "It's helpful, but the suggestions are a bit repetitive after a while. The response speed was great though."
User-G7H5 Sep 16, 2023 Tamil ★★★★★ "தமிழில் உரையாடுவது மிகவும் ஆறுதலாக இருந்தது. நான் சொன்னதை அது புரிந்துகொண்டது போல் உணர்ந்தேன்." (Conversing in Tamil was very comforting. I felt like it understood what I said.)
User-J4K3 Sep 17, 2023 Kannada ★★★★☆ "The Kannada speech recognition was surprisingly accurate! The bot is very polite and useful for quick check-ins."
User-L2M9 Sep 18, 2023 English ★★★★★ "I was impressed by the crisis detection. I mentioned feeling hopeless and it correctly guided me to seek help without being preachy."
User-N6P7 Sep 18, 2023 Telugu ★★★★☆ "This is a great tool. The Telugu felt natural. Would love to see an option to save parts of the conversation."
User-Q1R8 Sep 19, 2023 Malayalam ★★★☆☆ "The tone is good, but sometimes it misunderstands complex sentences in Malayalam. The basic suggestions are fine."
User-S5T4 Sep 20, 2023 English ★★★★☆ "Easy to use and the interface is clean. A very solid tool for just venting without judgment."
User-V3W1 Sep 20, 2023 Hindi, English ★★★★☆ "I switched between Hindi and English and it kept up well. The persona is very consistent and supportive."

Analysis of Feedback

Summary of Key Findings:

  • Strengths: Users across all languages overwhelmingly praised the assistant's polite, non-judgmental, and supportive tone. The core persona was perceived as a significant strength. The clean UI and ease of use were also frequently mentioned positively. The crisis support redirection was identified as a key responsible feature.
  • Weaknesses: Some users, particularly in Malayalam and Hindi, noted that while the responses were grammatically correct, they sometimes felt a bit formal or like a direct translation of English concepts. The set of actionable suggestions, while helpful, was found to be repetitive by some long-term users.
  • Indic Language Performance: The support for Indic languages was highly valued. Users in Tamil and Kannada reported a very natural and comforting experience. The speech-to-text accuracy was noted as a pleasant surprise. The main area for improvement is in making the phrasing more culturally idiomatic rather than just linguistically correct.

Quantitative Metrics:

  • Average Satisfaction Score: 4.1 / 5.0 (based on 10 reviews)

Insights Gained:

  • The feedback revealed that true localization is more than just translation. For a mental health tool, using culturally idiomatic and familiar phrases is key to building trust and comfort. Simply translating "mindfulness exercise" might not resonate as well as using a more common local term or concept.
  • The desire for less repetitive suggestions indicates a need for a larger, more varied set of coping strategies in the prompt or an external knowledge base.

Actionable Takeaways:

  1. Refine Indic Language Prompts: Enhance the system prompt with instructions to use more natural, culturally idiomatic phrases for each language, possibly providing examples.
  2. Expand Suggestion Variety: Triple the number of potential suggestions in the prompt, categorizing them by emotional state to reduce repetition.
  3. Investigate Nuance Errors: Specifically review conversations where the assistant misunderstood complex sentences in Malayalam and Hindi to identify patterns and refine the prompt.
  4. Add a "Save Chat" Feature: The request for saving conversations (e.g., as a text file) is a clear, actionable feature to add to the roadmap.

4. Future Roadmap

Short-Term Goals (Next 1 week)

  • Implement the actionable takeaways from the feedback analysis, focusing on refining the system prompt for better Indic language nuance and expanding the variety of suggestions.
  • Improve the responsiveness of the feedback and user experience pages for a better mobile experience.
  • Add more culturally-specific initial welcome messages and suggestions for each supported language.

Mid-Term Goals (Next 2-4 weeks)

  • Conversation History: Implement an optional feature to let users save and revisit previous conversations locally in their browser, segregated by language.
  • Journaling Feature: Add a simple "Journal" tab where users can write down their own thoughts or save specific insightful responses from the AI for later reflection.
  • Language Expansion: Add support for at least two more major Indic languages, such as Bengali and Marathi.

Long-Term Vision (Beyond 4 weeks)

  • RAG for Deeper Insights: Explore using Retrieval-Augmented Generation (RAG) with a curated and approved knowledge base of wellness articles and mindfulness guides. This would allow the assistant to provide more in-depth, varied, yet safe information.
  • Mood Tracking: Introduce an optional mood tracking feature where users can log their emotional state over time, providing simple visualizations to help them identify patterns.
  • Community-Sourced Suggestions: Build a system where the community can suggest and vote on new, culturally relevant coping strategies that can be reviewed and added to the assistant's repertoire.

5. Plan to Increase User Adoption

Initial User Acquisition

  • Open Source Communities: Share the application and its GitHub repository on platforms like Reddit (r/reactjs, r/webdev, r/opensource), Dev.to, and Hacker News.
  • Indic Language Forums: Post about the tool in online communities and forums dedicated to specific Indic languages, highlighting the availability of a free tool in their native tongue.
  • Public Demo: Create a Hugging Face Space that embeds or links to the live application, making it easily discoverable on the Hub.

Value Proposition Communication

  • The key message will be: "A free, anonymous, and multilingual friend to talk to. Get confidential emotional support in your own language, anytime."
  • We will emphasize that it is not therapy but a tool for daily emotional well-being and self-awareness.

Marketing & Promotion (Low-cost/Open-source focused)

  • Content Creation: Write a series of blog posts detailing the development journey, focusing on the challenges and solutions for creating a multilingual, empathetic AI.
  • Social Media: Create short video clips for platforms like Twitter and LinkedIn demonstrating the seamless voice interaction in different Indic languages.
  • Engage with Influencers: Reach out to tech and wellness influencers, particularly those within the Indian diaspora, to review or share the tool.

Feedback Loops for Continuous Improvement

  • The in-app feedback form will remain the primary channel for gathering user input.
  • We will actively monitor GitHub Issues for bug reports and feature requests.
  • A quarterly review of all feedback will be conducted to inform the roadmap and prioritize new features.

Community Engagement

  • GitHub as a Hub: The GitHub repository will be the central point for the community. We will create clear CONTRIBUTING.md guidelines for how to suggest prompt improvements, add new languages, or fix bugs.
  • Public Roadmap: Maintain a public project board on GitHub to show what features are being worked on and what is planned, increasing transparency.
  • Encourage Contributions: Actively encourage community members to contribute translations for UI elements or suggest culturally relevant coping strategies for the languages they speak, fostering a sense of ownership and collaboration.
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support