An AI-powered Cognitive Behavioral Therapy (CBT) assistant that transcribes spoken thoughts using Deepgram and utilizes Google's Gemini Pro model to detect cognitive distortions and provide helpful reframing suggestions.
- Clone the repository:
git clone https://github.com/Daremo423/cbt-assistant.git cd cbt-assistant - Install dependencies:
npm install
- Configuration:
Create a
.envfile in the root directory and add your API keys:GEMINI_API_KEY=YOUR_GOOGLE_GEMINI_KEY DEEPGRAM_API_KEY=YOUR_DEEPGRAM_API_KEY
- Run the application:
- To start the Frontend:
npm start - To start the Backend Server:
node server/index.js
- To start the Frontend:
- Access:
Open your browser and navigate to
http://localhost:3000. - Examples:
- Click "Start Recording" and say: "I always mess everything up, I'm such a failure."
- The app will detect "All-or-Nothing Thinking" and "Labeling".
- The AI will provide a reframe like: "Everyone makes mistakes sometimes; one instance doesn't define your entire worth."
- Fork the repository.
- Create a feature branch:
git checkout -b feature/new-feature. - Commit your changes:
git commit -m 'feat: Add new feature'. - Push to the branch:
git push origin feature/new-feature. - Open a Pull Request.
This project is licensed under the MIT License.