EmpathAI is a Next.js-based AI chatbot designed to provide emotional support and mental well-being assistance using the OpenAI API. It leverages Natural Language Processing (NLP) to detect emotional cues from user inputs and offers personalized guidance, stress-relief techniques, and helpful resources.
✅ Emotion Detection – Identifies user emotions from text using AI-powered sentiment analysis. ✅ Personalized Guidance – Provides tailored responses based on detected emotions. ✅ 24/7 Availability – A digital emotional support companion accessible anytime. ✅ Privacy-Focused – Ensures encryption and security for user conversations. ✅ Adaptive Learning – Improves response quality over time. ✅ Scalable & Responsive – Works seamlessly on mobile and desktop.
- Frontend: Next.js, React.js, Tailwind CSS
- Backend: Next.js API Routes, Node.js
- AI Processing: OpenAI API
- State Management: Context API
- Deployment: Vercel / Cloud Platforms
git clone https://github.com/sau1606/EmpathAI.git
cd EmpathAInpm installCreate a .env.local file in the root directory and add:
NEXT_PUBLIC_OPENAI_API_KEY=your-openai-api-key-herenpm run devThe app will be available at http://localhost:3000
EmpathAI/
├── app/
│ ├── api/
│ │ ├── chat/
│ │ │ ├── route.ts # API endpoint for chatbot interaction
│ ├── global/
│ ├── layout/
│ ├── page/
├── components/
├── hooks/
├── public/
├── styles/
├── .gitignore
├── README.md
├── component.json
├── next.config.js
├── package.json
├── postcss.config.js
├── tailwind.config.js
├── tsconfig.jsonDescription: Processes user messages and returns AI-generated responses.
- Request Body:
{ "message": "I feel very anxious today." } - Response:
{ "response": "I'm here for you. Try some deep breathing exercises to help calm your mind." }
Deployed on Vercel: EmpathAI Live
Contributions are welcome! Feel free to open an issue or pull request.
This project is licensed under the MIT License.
📌 GitHub: @sau1606
📌 LinkedIn: Saurabh Kumar Singh

