Skip to content

SARIF-MALIK/Chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI Chatbot with ChatGPT

This is a simple AI chatbot built using the OpenAI GPT-3 API, Node.js and Express. It uses the openai npm package to interact with the GPT-3 API and provides a web interface for users to chat with the bot.

Features

  • Chat with the AI chatbot in natural language
  • Get intelligent responses based on the context of the conversation
  • Customize the behavior of the chatbot by adjusting various parameters

Installation

To use the AI chatbot, you will need to have Node.js and npm installed on your machine. Once you have installed these, you can clone the repository and install the dependencies by running the following commands:

git clone 
cd chatbot
npm install

Usage

To use the AI chatbot, you will need to set up the OpenAI API key. You can get your API key by signing up for an account on the OpenAI website and following the instructions to generate an API key.

Once you have your API key, create a new file called .env in the root directory of the project and add the following line:

OPENAI_API_KEY=<your API key>

Replace <your API key> with your actual API key.

To start the server, run the following command:

npm start

This will start the server on http://localhost:3000/, where you can interact with the AI chatbot.

About

AI integrated chatbot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published