Inspiration

We've all seen how difficult it can be for people facing serious hardships—like homelessness, addiction, or food insecurity—to find the help they need. The systems in place are often fragmented, confusing, and overwhelming to navigate. We were inspired to build something that could act as a compassionate first point of contact. We imagined a tool that could instantly provide clear, empathetic guidance, 24/7, to someone in crisis, bridging the gap between needing help and getting it. We wanted to create a digital safety net that wasn't just a directory, but a genuine companion on the path to stability.

What it does

BetterLyf is an AI-powered life assistant designed to provide immediate, personalized support to vulnerable individuals. Through a simple, voice-enabled chat interface, users can:

  • Get Connected to Local Resources: Tell the app their situation (e.g., "I'm homeless in Oakland"), and it instantly provides a formatted list of nearby shelters, food banks, or clinics, complete with contact information and access instructions.
  • Receive Empathetic Coaching: The AI has a "Life Coach" mode that offers motivational support and practical advice, helping users break down overwhelming problems into manageable steps.
  • Experience a Judgment-Free Conversation: The platform is built on a foundation of empathy and trauma-informed principles, ensuring users feel safe and understood, not judged.
  • View and Manage Resources: A comprehensive admin dashboard allows case workers or administrators to monitor conversations, view user needs, and see how the system is being used in real-time.

How we built it

BetterLyf is built on a modern, robust tech stack designed for scalability and real-time interaction:

  • Backend: We used Python with the Flask framework to create a lightweight and powerful API. This handles all the core logic, from user management to AI orchestration.
  • AI & Language Models: The "brains" of our operation is Google's Gemini, which we use for all conversational AI. We spent significant time on prompt engineering to create our distinct "coach" and "resource assistant" personalities.
  • Database: We used SQLite for its simplicity and ease of use in storing user data and conversation histories, all managed through SQLAlchemy.
  • Frontend: The user interface is built with standard HTML, CSS, and JavaScript, ensuring it's accessible and responsive. The chat interface is designed to be clean, intuitive, and easy to use, even for non-technical users.

Challenges we ran into

One of our biggest challenges was balancing empathy with efficiency in the AI's responses. Initially, the AI was either too direct and robotic, or too verbose and not actionable enough. It took many iterations of prompt engineering to find the right voice—one that is compassionate but also provides clear, direct help.

Another hurdle was maintaining conversational context. Early versions of the bot would "forget" what the user said just a few messages ago. We had to implement a robust system for storing and retrieving conversation history with every API call, which made the AI significantly smarter and the conversations feel much more natural.

Finally, we learned that user experience is paramount. We started with an optional user information form, but quickly realized that making it mandatory was essential for the AI to provide truly personalized and effective guidance right from the start.

Accomplishments that we're proud of

We are incredibly proud of creating an AI that feels genuinely human and helpful. The ability of the "Life Coach" to provide empathetic, non-judgmental support is something we believe can make a real difference.

Building the dual-mode personality—switching between a resourceful assistant and a motivational coach—was a complex undertaking, and we're thrilled with how it turned out. It allows the user to get exactly the kind of help they need at any given moment.

Finally, getting the full-featured admin dashboard up and running was a major accomplishment. It provides a powerful tool for monitoring the system and understanding user needs on a broader scale, which is essential for any organization that would implement this.

What we learned

This project was a deep dive into the practical application of large language models for social good. We learned that the "magic" of AI is really in the details—the careful crafting of prompts, the thoughtful management of conversation history, and the relentless focus on the end user's emotional state.

We also learned that building a tool for people in crisis comes with a heavy responsibility. Every design choice, from the color of a button to the wording of a prompt, has to be made with empathy and a trauma-informed perspective.

What's next for BetterLyf

The journey for BetterLyf is just beginning. Our next steps are focused on expanding its impact and capabilities:

  • Maps Integration: We plan to integrate Google Maps to visually show users where resources are located and provide real-time directions.
  • Proactive Email Support: We want to build a system that can automatically email users a summary of the resources they discussed, so they have a permanent record.
  • Guided Journaling: We envision a feature where users can journal their thoughts and feelings, and the AI can provide supportive analysis and track their emotional progress over time.
  • Expanding the Resource Database: We aim to continuously expand and verify our database of local services to ensure our users are always getting the most accurate and up-to-date information.

Built With

  • rag
Share this project:

Updates