This project is a Chat Bot powered by OpenAI's language model (gpt-3.5-turbo) that can provide responses to user queries. It is built using Node.js, Express, and various npm packages.
Follow these steps to run the application locally:
-
Clone the Repository:
git clone [https://github.com/your-username/your-repo.git](https://github.com/yashwanthvarma18/CIPHER-CHAT-CHAT-BOT-.git) cd your-repo
-
Install Dependencies:
npm install
-
Set Up Environment Variables:
- Create a
.env
file in the root directory and add your OpenAI API key.
echo "OPENAI_API_KEY=your-api-key-here" > .env
- Create a
-
Run the Application:
npm start
-
Install npm Packages:
npm install dotenv express body-parser openai colors ejs nodemon
- Access the application in your browser at http://localhost:3000.
- Start sending prompts to the chat bot.
- The application uses the OpenAI API to generate responses based on user input.
- The user interface allows you to interact with the chat bot easily.
- The application includes a simple chat history that is stored in memory.
- The welcome messages and server status are displayed in the console.