An open API service indexing awesome lists of open source software.

https://github.com/naveen-v-v/chatbot-chatgpt

A chat bot that can communicates with the user by interacting with chatGPT, chat history will also be traced back
https://github.com/naveen-v-v/chatbot-chatgpt

chatbot chatgpt javascript nodejs openai

Last synced: 3 months ago
JSON representation

A chat bot that can communicates with the user by interacting with chatGPT, chat history will also be traced back

Awesome Lists containing this project

README

          

# ChatGPT Chatbot

This is a ChatGPT chatbot written in Node.js that runs in the terminal

Check out the [Medium Post](https://medium.com/@naveen-varma/chatbot-with-openai-api-and-nodejs-7e1efc871604) for explanation

## Usage

Get your OpenAI API key at https://platform.openai.com/account/api-keys

Create a file named `.env` and add the following:

```
OPENAI_API_KEY=YOURKEY
```

Install dependencies:

```bash
npm Install
```

Run the bot:

```bash
npm start
```
# Future Scope

We can store the chat history in platforms like firestore and run an AI based chat application on public server by adding routes and deploying the server.