This is a chatbot interface that utilizes the OpenAI's ChatGPT API for dynamic conversation experiences. It is developed using Node.js and Express.js and designed to interact with the GPT-3.5-turbo model to provide instant, intelligent responses.
Navigate to the project directory, install dependencies, and run the server. Then open your browser to interact with the chatbot.
To install the necessary dependencies like axios, body-parser, and dotenv for this project, run this command in your terminal:
npm install
Express is a minimal and flexible Node.js web application framework that provides a robust set of features to develop web and mobile applications - express
Axios is a promise-based HTTP Client for node.js and the browser. It is isomorphic (= it can run in the browser and nodejs with the same codebase) - axios
Dotenv is a zero-dependency module that loads environment variables from a .env
file into process.env
- dotenv
The OpenAI JavaScript client library provides convenient access to the OpenAI API from applications written in the JavaScript language - openai