This is a minimalist starting point for a chat bot, written in Python. It uses the OpenAI API. Easily edit the system prompt to create a unique AI personality or function.
-
If you don’t have Python installed, install it from here.
-
Clone this repository.
-
Navigate into the project directory:
cd ROBOT-BOT
-
Create a new virtual environment:
python3 -m venv venv . venv/bin/activate
-
Install the requirements:
pip install -r requirements.txt
-
Make a copy of the example environment variables file:
cp .env.example .env
-
Add your API key to the newly created
.env
file. -
Tell the AI how to behave by editing the file templates/system_prompt.txt.
-
Run the app:
flask run
You should now be able to access the app at http://localhost:5000! To learn more, check out the Open AI tutorial.