AI Emotional Companion
Project Details
An experimental AI companion with two sides: one helps the user calm down, and the other gives practical, reality-based advice. It reads each message for emotion and risk, then changes how much of each side it uses. The app also includes a mood dashboard, journal, daily check-ins, insights, and goals. This project is still in development, so some features are not complete. It is a learning project, not a medical or professional support service.
Why
I wanted to understand how a chatbot works: how it decides what to answer and how it gets responses through an API. I also wanted to explore how a bot could support people who have difficulty managing their emotions.
Process
I built the interface with React and Tailwind CSS, and the backend with Node.js, Express, and PostgreSQL. The bot runs on a local AI model through Ollama. Each message is checked for emotion, risk level, thinking patterns, and language. The system then sets the balance between support and practical advice. If a message shows signs of crisis, the app skips the normal reply and shows a support message with helpline information. To keep replies focused, the bot uses a short conversation summary and the latest messages instead of the full history.