OpenAIChatBot
OpenAIChatBot copied to clipboard
This project is a sample chatbot developed using the OpenAI API. The chatbot can engage in conversations, answer questions, and provide information based on the input it receives. This repository cont...
OpenAIChatBot
-- Created By --
- Viraj Madhushan, using OpenAI API on 23rd January 2023
- Node version used : v16.18.1
Project Overview
OpenAI ChatBot is a sophisticated conversational AI application leveraging the OpenAI API to facilitate natural language interactions. This repository contains the codebase for both the client and server sides of the application.
How to setup project locally
Prerequisites
- Node.js (v16.18.1)
- Git
- Open AI API key(Free) - https://openai.com/api/
Clone the app using
git clone https://github.com/VirajMadhu/OpenAIChatBot.git
Running Client Side
- Redirect into project folder
cd /<your-project-folder>/client
- Install node modules
npm install
- Run client
npm run dev
Running Server Side
- Redirect into project folder
cd /<your-project-folder>/server
- Install node modules
npm install
- Create .env file using
cp .env.example .env
- Add your OpenAI Api key at the relant environment key. (more info at https://openai.com/api/)
- Run client
npm run server
Live Demo
You can see the live demo here.