/django_chatterbot

An example Django project using ChatterBot

Primary LanguagePython

Django ChatterBot

This is a Django project that makes it possible to create a simple chat bot web app using Django and ChatterBot.

This example has moved

Note: This example is now included in the examples directory in the main repo for ChatterBot: https://github.com/gunthercox/ChatterBot/tree/master/examples/django_app

For documentation on adding ChatterBot to your Django app see http://chatterbot.readthedocs.io/en/stable/django/index.html

Installation

pip install -r requirements.txt

Quick start

  1. Run python manage.py migrate to create the chatterbot models
  2. Run python manage.py createsuperuser to enable Django admin
  3. Start your Django app python manage.py runserver 127.0.0.1:8000
  4. Visit http://127.0.0.1:8000/
  5. Type something and hit [ENTER]
  6. Type a response to your own statement and hit [ENTER]
  7. Visit http://127.0.0.1:8000/admin and log in with the user + password you created
  8. Check out the data structure for your "dialog" with the bot