This is a chatbot implemented in JavaScript that uses the OpenAI GPT-3.5 Turbo model to provide natural language responses. The chatbot features a user-friendly interface and can be easily integrated into your web applications.
-
AI-Powered Chatbot: Utilizes the OpenAI GPT-3.5 Turbo model to generate intelligent responses to user input.
-
User-Friendly Interface: The chatbot provides an intuitive and responsive chat interface for a smooth user experience.
-
Toggle Visibility: Users can easily show or hide the chatbot interface by clicking the chatbot-toggler button.
Before using this chatbot, ensure you have the following prerequisites in place:
- Node.js installed on your system.
- An OpenAI API key. You will need to set this key in an environment variable named
OPEN_API_KEY
.
Follow these steps to set up and run the chatbot on your local system:
-
Clone the repository:
git clone https://github.com/yourusername/chatbot.git cd chatbot
-
Install dependencies:
npm install
- Start the server:
node app.js
The chatbot will be accessible at http://localhost:3000 by default.