Meditation AI Assistant
A journaling and meditation assistant that uses earlier conversations to guide reflection and notice recurring themes.
The problem
I wanted a journaling and meditation assistant that could respond to what I brought to it each day. It needed to offer prompts when I was unsure where to start and refer back to earlier conversations as patterns emerged.
Approach
I built a conversational AI assistant that combines journaling prompts with meditation techniques. An LLM guides the conversation from an open question toward structured reflection: identifying patterns in thinking, suggesting reframes, and offering mindfulness exercises based on what the user shares.
The interaction flow starts open-ended ("What is on your mind today?") and gradually becomes more structured as the conversation develops. The assistant draws from techniques in cognitive behavioral therapy, mindfulness-based stress reduction, and simple gratitude practices. It is not a therapist — it is closer to a thoughtful friend who asks good questions.
The Python backend uses an LLM for the conversational logic, prompts that set a warm but grounded tone, and session memory to reference previous conversations and notice patterns over time.
Results
This is a personal project that I use daily. The most useful feature turned out to be pattern recognition across sessions — the assistant noticing "you have mentioned work stress three times this week" is more valuable than any single meditation prompt. I open-sourced it because I think the approach is more interesting than the implementation, and I wanted others to adapt it for their own practices.
Reflection
Question phrasing took more care than in my technical projects. "What might be another way to see this?" invites reflection; "You should think about it differently" sounds corrective. That distinction shaped the prompts.
I set explicit boundaries for the conversation. The system explicitly avoids giving medical advice or diagnosing anything — it stays in the lane of guided reflection and mindfulness.