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
- Host: GitHub
- URL: https://github.com/naveen-v-v/chatbot-chatgpt
- Owner: naveen-v-v
- Created: 2023-11-07T19:17:26.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-28T22:30:14.000Z (over 2 years ago)
- Last Synced: 2025-03-18T04:34:24.765Z (over 1 year ago)
- Topics: chatbot, chatgpt, javascript, nodejs, openai
- Language: JavaScript
- Homepage:
- Size: 1.65 MB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
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.