A culturally-informed space for mental wellness: anonymous chat reflections, personalized journaling, peer connection, and wellness mini-games.
DMSpace helps users express emotions safely and privately, then supports reflection in three ways:
- 💭 Chat: an empathetic AI reflection space with a basic crisis guardrail
- 📔 Journal: personalized journaling prompts + a structured journal feed (mood + highlights)
- 🤝 Connect: opt-in peer matching based on conversation themes (prototype/demo)
- 🎮 Wellness Games: quick, calming activities (Word Detective, Gratitude Jar, Breathing Exercise)
Users choose a “Perspective” (Western, Collectivist, Spiritual, Balanced).
This lens adjusts the assistant’s reflection style and journaling prompts.
A simple keyword-based check detects crisis-like language and shows a non-AI crisis response instead of calling the model.
Note: This is not a clinical tool and does not replace professional support.
- AI-generated prompts based on the themes in recent chat
- Mood emoji + “one thing to remember” highlight
- Private journal entries saved in-session and displayed as a feed
- Word Detective: unscramble wellness words
- Gratitude Jar: daily gratitude log + streak tracking
- Breathing Exercise: guided animated breathing patterns (4-7-8, 5-5-5, box)
Opt-in matching uses lightweight theme extraction from user messages to suggest peers with similar topics/stage.
User
|
v
Streamlit UI (tabs)
├── Chat Tab
| ├── Crisis keyword check
| ├── Cultural lens added to SYSTEM_PROMPT
| └── OpenAI Chat Completions (stream=True) → assistant reply
|
├── Journal Tab
| ├── Generates prompts from last ~5 emotion_log entries (OpenAI)
| └── Saves journal entries (mood + highlight + text) in session_state
|
├── Connect Tab (prototype)
| ├── Extracts themes from messages
| ├── Builds lightweight “profile”
| └── Matches users + creates peer chat rooms (in session_state)
|
└── Games Tab
├── Word Detective (session_state score/progress)
├── Gratitude Jar (streak + jar entries)
└── Breathing Exercise (animated timed cycles)