Skip to content

ibra-kdbra/Robot-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChatBot Quickstart

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.

Screenshot

Setup

  1. If you don’t have Python installed, install it from here.

  2. Clone this repository.

  3. Navigate into the project directory:

    cd ROBOT-BOT
  4. Create a new virtual environment:

    python3 -m venv venv
    . venv/bin/activate
  5. Install the requirements:

    pip install -r requirements.txt
  6. Make a copy of the example environment variables file:

    cp .env.example .env
  7. Add your API key to the newly created .env file.

  8. Tell the AI how to behave by editing the file templates/system_prompt.txt.

  9. 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.