Chatterbot Django Settings

You can edit the ChatterBot configuration through your Django settings.py file.

CHATTERBOT = {
    'name': 'Tech Support Bot',
    'logic_adapters': [
        'chatterbot.logic.MathematicalEvaluation',
        'chatterbot.logic.TimeLogicAdapter',
        'chatterbot.logic.BestMatch'
    ],
    'trainer': 'chatterbot.trainers.ChatterBotCorpusTrainer',
    'training_data': [
         'chatterbot.corpus.english.greetings'
    ]
}

Any setting that gets set in the CHATTERBOT dictionary will be passed to the chat bot that powers your django app.

Additional Django settings

  • use_django_models [default: True] Use the Django models for storing learned conversation data. If set to False, ChatterBot’s non-Django objects will be used.
  • django_app_name [default: ‘django_chatterbot’] The Django app name to look up the models from.