Description: This is a simple chatbot built using the OpenAI API and socket.io. It uses the GPT-3.5 Turbo model to generate responses to user messages. The chatbot is designed to provide psychological support and can help users work through issues related to anxiety, depression, and other mental health concerns.
Clone the repository to your local machine. Install the required dependencies using npm install. Set your OpenAI API key as an environment variable named OPENAI_API_KEY. Run the application using node app.js. Open your web browser and navigate to http://localhost:3000.
Type a message in the chat window and press Enter to send it to the chatbot. The chatbot will respond with a message based on the content of the conversation history.