Skip to content

iloveonsen/chatbot-base

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chatbot-base

Django chatbot web app baseline

Installation

  1. Clone the repository

  2. Install the requirements

pip install -r requirements.txt
  1. Create a .env file in the root directory and add the following environment variables
SECRET_KEY="given_secret_key"
OPENAI_API_KEY="your_openai_api_key"
  1. Create the database
python manage.py makemigrations
python manage.py migrate
  1. Create a superuser
python manage.py createsuperuser
  1. Run the server
python manage.py runserver
  1. Create a chatbot profile

    • Go to localhost:8000/admin
    • Log in with the superuser credentials
    • Click Profiles -> ADD PROFILE
    • Fill the chatbot name and specify profile image (DO NOT select the User field)
    • Hit SAVE
  2. Point created chatbot profile on bot configuration

    • Go to localhost:8000/admin
    • Log in with the superuser credentials
    • Click Bot configurations -> ADD BOT CONFIGURATION
    • Select the chatbot profile created in step 7 for Bot profile field
    • Hit SAVE
  3. Enjoy

About

Django chatbot web app baseline

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published