Skip to content

0xmetaschool/therapist-bot

Repository files navigation

Therapist Bot

Therapist Bot is an AI-powered therapy companion that provides emotional support and wellness guidance. Built with Next.js and integrated with both Telegram and OpenAI's GPT-4, this platform offers a supportive space for users to express themselves and receive empathetic responses.

Features

  • 🎯 24/7 AI-powered emotional support
  • 🧘‍♀️ Personalized coping strategies
  • 💡 Guided wellness techniques
  • 🤖 Seamless Telegram integration
  • 🎨 Beautiful, calming UI design
  • 🔒 Private and secure conversations

Technologies Used

  • Next.js for Frontend
  • Tailwind CSS for styling
  • OpenAI API for intelligent responses
  • Telegram Bot API for messaging
  • Node.js for bot server
  • Railway.app for bot deployment and hosting

Use Cases

  • Daily Emotional Support
  • 24/7 virtual therapist
  • immediate emotional support and coping strategies.

Installation Steps

  1. Clone the repository:

    git clone https://github.com/0xmetaschool/therapist-bot.git
  2. Navigate to the project directory:

    cd therapist-bot
  3. Install dependencies:

    npm install
  4. Set up environment variables:
    Create an .env file in the root directory and add:

    TELEGRAM_BOT_TOKEN=your_telegram_bot_token
    OPENAI_API_KEY=your_openai_api_key
  5. Deploy bot to Railway: Create an account on https://railway.com/

    # Install Railway CLI
    npm i -g @railway/cli
    
    # Login and deploy
    railway login
    railway init
    railway up
  6. Run the Next.js development server:

    npm run dev

    Visit http://localhost:3000 to view the website.

Screenshots

Therapist-bot landingpage screenshot Therapist-bot features screenshot
Therapist-bot technique screenshot Therapist-bot connect screenshot

Bot Commands

  • /start - Begin conversation with the bot
  • /help - Show available commands
  • /reset - Start a fresh conversation
  • /resources - Get mental health resources

Disclaimer

This bot is not a replacement for professional mental health services. It's designed to provide supplementary support and should not be used in crisis situations.

Contributing

We love contributions! Here's how you can help make the project even better:

Running in Production

  1. Build the Next.js app:

    npm run build
  2. Deploy the website to Vercel or your preferred platform.

  3. Deploy the bot to Railway.app:

    railway up

    The bot will run continuously on Railway.app's servers, ensuring 24/7 availability.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Support

For support, please open an issue in the GitHub repository or contact us through the website.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •