Skip to content

ivantomic77/Open-AI-ChatBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Open AI ChatBot

Open AI ChatBot is a simple chatbot application that utilizes the OpenAI API to generate responses to user input. This application consists of two parts: a React-based frontend, and an Express.js-based backend. The frontend allows users to interact with the chatbot, while the backend handles the communication with the OpenAI API. The application can be easily set up and configured to work with your own API key, and can be customized to suit your specific needs.

Prerequisites

Using AI ChatBot

1. API Key

  • Get API key by registering on https://openai.com/api/
  • Once you have the key, copy it to the .env file in the root folder of your project. The file should look like this:
OPENAI_API_KEY=YOUR_KEY

1. Run Express.js API

  • In root directory run:
node index.js

2. Run React App

  • In root directory run:
npm run start

3. Open http://www.localhost:3000 in your browser

  • Once the React App is running, open http://localhost:3000 in your browser to interact with the AI ChatBot

Development

Todos

  • Simple App without keeping recent history (one answer)
  • Keeping recent history
  • Improving the UI/UX of the application
  • Handling different types of inputs and handling follow-up questions.
  • Providing different type of answers based on the user inputs.

About

Open AI ChatBot made using ReactJs and Express.js

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published