Calmate is an Agentic AI-powered Mental Health Companion that proactively connects with employees through natural, empathetic conversations on a audio phone call helping them express emotions and release work stress in a private, stigma-free way helping the corporate with anonymized, actionable well-being insights.
The project is divided into three main components:
-
Frontend (
/frontend):- Framework: React 19 with Vite.
- Styling: TailwindCSS (inferred from design patterns) / CSS Modules.
- Database Integration: Supabase (Auth & Data).
- Purpose: Admin dashboard for visualizing data and managing employees.
-
Agentic Backend (
/agentic-backed):- Framework: FastAPI (Python).
- Core Logic: Handles webhooks from Vapi.ai, processes call logs, and orchestrates multi-agent analysis using Google Gemini and other LLMs.
- Database: PostgreSQL (via Supabase).
-
AI Engine (
/ai-engine):- Framework: Python Scripts.
- Core Logic: Background workers for deep data analysis, trend calculation, and report generation (PDF).
- Tools: OpenAI (GPT-4o), Matplotlib (Charts), FPDF (PDF Generation).
- Frontend: React, TypeScript, Vite, Lucide React, Recharts (implied for charts).
- Backend: Python, FastAPI, Uvicorn, Pydantic.
- AI & LLMs: Google Gemini (via Google Generative AI SDK), OpenAI GPT-4o, Vapi.ai (Voice AI).
- Database: PostgreSQL, Supabase.
- DevOps: Docker (potential), Python venv.
- Node.js (v18+)
- Python (v3.10+)
- PostgreSQL database (or Supabase project)
- Vapi.ai Account & API Key
- OpenAI API Key
- Google Gemini API Key
git clone https://github.com/your-username/Calmate-MumbaiHacks.git
cd Calmate-MumbaiHacksNavigate to the frontend directory and install dependencies:
cd frontend
npm installCreate a .env file in frontend/ with your Supabase credentials:
VITE_SUPABASE_URL=your_supabase_url
VITE_SUPABASE_ANON_KEY=your_supabase_anon_keyRun the development server:
npm run devNavigate to the backend directory:
cd ../agentic-backedCreate a virtual environment and install dependencies:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txtCreate a .env file in agentic-backed/ with necessary keys:
GOOGLE_API_KEY=your_google_api_key
DATABASE_URL=your_postgres_connection_stringStart the FastAPI server:
uvicorn main:app --reloadNavigate to the AI engine directory:
cd ../ai-engineInstall dependencies:
pip install -r requirements.txtCreate a .env file in ai-engine/ with necessary keys:
OPENAI_API_KEY=your_openai_api_key
PG_HOST=your_db_host
PG_PORT=5432
PG_DBNAME=your_db_name
PG_USER=your_db_user
PG_PASSWORD=your_db_password
EMAIL_FROM_ADDRESS=your_email
SMTP_SERVER=smtp.gmail.com
SMTP_PORT=587
SMTP_USER=your_email
SMTP_PASSWORD=your_app_passwordRun the worker script manually (or set up a cron job):
python worker.pyCalmate-MumbaiHacks/
├── agentic-backed/ # FastAPI backend for Vapi webhooks & analysis
│ ├── agents/ # AI Agent definitions
│ ├── models/ # Pydantic models
│ ├── main.py # Entry point
│ └── ...
├── ai-engine/ # Background workers for reporting
│ ├── worker.py # Main reporting script
│ └── ...
├── frontend/ # React Admin Dashboard
│ ├── src/
│ ├── package.json
│ └── ...
└── README.md # Project documentation
Contributions are welcome! Please open an issue or submit a pull request for any improvements.
This project is licensed under the MIT License.