Inspiration
“What if we could talk to a wiser version of ourselves when we’re overwhelmed?” As someone who journals for emotional clarity, I oftentimes wish I had someone to redirect my emotions and guide me through them. This is what sparked Mind Mirror!
What it does
Mind Mirror is a journal-style web app where you write your thoughts, and an AI version of you (kinder/bolder/more rational) responds.
You choose a reflection mode: Kinder Me : for emotional comfort and support Bolder Me : for confident, action-oriented guidance Rational Me : for calm, logical reasoning
After writing your journal entry, the AI reads it and replies in that reflection style, helping you process thoughts with more clarity and self-awareness. The AI response appears slowly, like handwriting, on a scrapbook-style page, making it feel intimate and personal.
How I built it
Framework & Backend:
- Built with Flask (Python) for routing and logic.
- Used openai Python package to interact with the GPT-4.1 API.
- Managed user input and reflective response using Flask session.
Frontend & Design:
- Styled using custom CSS with a nostalgic scrapbook aesthetic.
- Integrated Google Fonts: Over the Rainbow for journal input. Annie Use Your Telescope for buttons. La Belle Aurore for the AI response.
- Designed 3 routes: /Home page with description. /journal for entry input and reflection style selection. /reflection for animated AI response.
AI Logic:
Used predefined personas:
- Kind: comforting and supportive
- Bold: confident and action-oriented
- Rational: logical and calm
Injected these as system prompts into the OpenAI chat request.
Challenges I ran into
- Initially tried to use Streamlit, then I realized it wasn't compatible for the full vision I have for Mind Mirror.
- I had to ensure the AI response didn't overflow visually, so I implemented scrollable containers only when the content exceeded a set height.
What I learned
This project taught me to merge aesthetics and AI into a seamless user experience. Specifically, I learned:
- How to integrate OpenAI's gpt-4.1 model with a Flask web app.
- How to use sessions in Flask to persist state across routes.
- I also deepened my understanding of how personality prompts shape AI responses.
Log in or sign up for Devpost to join the conversation.