This is a web-based AI assistant built with Golang and Gin, designed to support users in managing their mental health and enhancing productivity. Users can interact with an AI chatbot for self-reflection, stress relief strategies, and productivity tips, all in one accessible platform.
-
💬 AI Chatbot Support
Uses Gemini AI API to respond with personalized mental health advice and productivity suggestions. -
📂 Conversation Session Management
Each session includes a title/topic and an urgency level, auto-generated by the AI to improve organization. -
🔍 Search Functionality
Find past chatbot sessions using Sequential and Binary Search by topic. -
↕️ Sorting Options
Sort session history by interaction time or urgency level using Selection Sort and Insertion Sort. -
🧠 Mental Health Focus
Includes exercises and techniques for stress management, mindfulness, and self-reflection. -
☁️ Cloud-Hosted SQL Database
Stores user sessions securely using Supabase, making the app easy to deploy without local database setup.
| Technology | Description |
|---|---|
| Go (Golang) | Backend programming language |
| Gin | Lightweight and powerful web framework |
| Supabase | PostgreSQL-compatible hosted SQL database |
| Gemini API | AI-powered response generation for mental wellness |
| HTML/CSS | Frontend styling and page layout |
| JavaScript | Client-side interaction (if applicable) |
- Clone the repository
git clone https://github.com/rafiathallah3/MentalAI.git cd MentalAI - Download all dependencies
go mod tidy
- Set Environment (.env) variables
GEMINI_KEY=<API> DATABASE_URL=<Supabase URL> KUE=<secret> #Encryption key
- Run the application
go run .