Storyteller AI is a full-stack app that uses the OpenAI API to enable a chatbot that answers questions in the form of a story, using analogies to explain topics. It consists of a single endpoint created with Express on the backend that sends the request to the API and a frontend built with React. This project was built as an exercise to integrate the OpenAI API with a full-stack app. You can see the frontend repository here.
Client
Backend
API
- You can ask questions in the chatbox.
- Uses chat-gpt ver 3.5
- The chatbot responds by telling a story.
To get a local copy up and running, follow these steps.
To run this project you need:
- Git
- Npm/Node.js
Clone this repository to your desired folder using this command:
git clone [email protected]:jfoyarzo/chatgpt-backend.git
cd chatgpt-backend
Install this project's dependencies using:
npm install
Since this project uses the OpenAI API, you need to supply your corresponding credentials by creating a .env
file in the root of the app. You can use the provided .env.example
file as a guide. If you don't have an API key yet, you can get one by signing up on the OpenAI API Website.
To run the project, execute the following command from the root folder of the app:
npm start
this will start the backend on http://localhost:8000/
๐ค Felipe Oyarzo
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
If you like this project please consider giving it a star!
This project was built following the How to Build an AI-Powered ChatBot Tutorial by Njoku Samson Ebere.
This project is MIT licensed.