All Projects β†’ vkosuri β†’ chatterbot-live-example

vkosuri / chatterbot-live-example

Licence: BSD-3-Clause license
[Maintainer Required] πŸ“˜ Notes to deploy chatterbot on Heroku cloud ☁️

Programming Languages

python
139335 projects - #7 most used programming language
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to chatterbot-live-example

rtfmbot
Because we're all tired of answering questions when people should clearly RTFM.
Stars: ✭ 14 (-36.36%)
Mutual labels:  chatterbot
Chatterbot
ChatterBot is a machine learning, conversational dialog engine for creating chat bots
Stars: ✭ 11,813 (+53595.45%)
Mutual labels:  chatterbot
Wechat Admin
Wechat Management System
Stars: ✭ 1,716 (+7700%)
Mutual labels:  chatterbot
YouTube-Tutorials--Italian
πŸ“‚ Source Code for (some of) the Programming Tutorials from my Italian YouTube Channel and website ProgrammareInPython.it. This is just a small portion of the content: please visit the website for more.
Stars: ✭ 28 (+27.27%)
Mutual labels:  chatterbot
NLP-chatbot
A medical chatbot that asks patients about their health and books a doctor's appointment on demand.
Stars: ✭ 43 (+95.45%)
Mutual labels:  chatterbot
siPintar
Indonesian Chatbot built by Multi Layer Perceptron(Neural Network)
Stars: ✭ 37 (+68.18%)
Mutual labels:  chatterbot
restfbmessenger
RestFB Messenger
Stars: ✭ 19 (-13.64%)
Mutual labels:  chatterbot
chatbot
A fast responsive, machine learning, conversational dialog engine for creating chat bots, written in Go.
Stars: ✭ 347 (+1477.27%)
Mutual labels:  chatterbot
chatterbot-weather
A ChatterBot logic adapter that returns information about the current weather
Stars: ✭ 27 (+22.73%)
Mutual labels:  chatterbot
FashionShopApp
Fashion Shop App : Flask, ChatterBot, ElasticSearch, Recommender-System
Stars: ✭ 28 (+27.27%)
Mutual labels:  chatterbot
matorral
An open-source, very simple & extensible project managent tool written using Django/Python
Stars: ✭ 21 (-4.55%)
Mutual labels:  herokuapp
mTracker
An email tracker built with Python and Flask
Stars: ✭ 20 (-9.09%)
Mutual labels:  herokuapp
heroku-flask-template
A simple, fast and easy-to-deploy Heroku ready flask web app template written in Python.
Stars: ✭ 26 (+18.18%)
Mutual labels:  herokuapp
news-app
A Laravel app that gathers top news across multiple news sites.
Stars: ✭ 29 (+31.82%)
Mutual labels:  herokuapp
python-web-dev-21-2
Material for "Web Development in Python with Django" using Django 2.1, published as a Pearson LiveLesson on Safari Books Online
Stars: ✭ 38 (+72.73%)
Mutual labels:  herokuapp
certfico
App para geração e envio de certificados para eventos
Stars: ✭ 20 (-9.09%)
Mutual labels:  herokuapp
Meteor-Files-Demo
Demo application for ostrio:files package
Stars: ✭ 16 (-27.27%)
Mutual labels:  herokuapp
UEHToR
UEHToR, #1 Torrent And File Leecher For Heroku, Based on Node.js. Simple to Install with full SEO Support
Stars: ✭ 28 (+27.27%)
Mutual labels:  herokuapp

ChatterBot Django Live Example

This is an example Django app that shows how to create a simple chat bot web app using Django and ChatterBot.

Documentation

Start the Django app by running

python manage.py runserver 0.0.0.0:8000

If you running first time create chatterbot table before starting server

python manage.py migrate --run-syncdb

Further documentation on getting set up with Django and ChatterBot can be found in the ChatterBot documentation

Make migrations

python manage.py migrate

Train your bot

python manage.py train

Training Corpus Path

The chatterbot corpus path can be found here.

Bot Django Settings

You could found Bot settings here

CHATTERBOT = {
    'name': 'Heroku ChatterBot Example',
    'logic_adapters' : [
        "chatterbot.logic.BestMatch"
    ],
    'trainer': 'chatterbot.trainers.ChatterBotCorpusTrainer',
    'training_data': [
        'chatterbot.corpus'
    ]
}

If your app din't responding try to shift to postgresql, you will need install the dj_database_url package, to work nicely with PostgreSQL DB on heroku.

And also you will modify your settings.py as follows:

import dj_database_url
DATABASES={'default': dj_database_url.config()}

Allowed Hosts

Include your address at the ALLOWED_HOSTS directives in settings.py - Just the domain, make sure that you will take the protocol and slashes from the string

for example

ALLOWED_HOSTS = ['127.0.0.1', 'chatterbot-live-example.herokuapp.com']

Deploying on Heroku

Before deploying Heroku you should install Heroku CLI on your machine, documentation found here https://devcenter.heroku.com/articles/heroku-cli

Here some of the steps launch your Django app with Heroku

Build your app and run it locally

pip install -r requirements.txt
Downloading/unpacking ...
...
Successfully installed Django dj-database-url dj-static django-toolbelt gunicorn psycopg2 static3
Cleaning up...

To run your application locally,

heroku local web
11:48:19 web.1  | started with pid 36084
11:48:19 web.1  | 2014-07-17 11:48:19 [36084] [INFO] Starting gunicorn 19.0.0
11:48:19 web.1  | 2014-07-17 11:48:19 [36084] [INFO] Listening at: http://0.0.0.0:5000 (36084)
11:48:19 web.1  | 2014-07-17 11:48:19 [36084] [INFO] Using worker: sync
11:48:19 web.1  | 2014-07-17 11:48:19 [36087] [INFO] Booting worker with pid: 36087

Your app should now be running on http://localhost:5000/.

Deploy your application to Heroku

git add .

git commit -m "Added a Procfile."

heroku login
Enter your Heroku credentials.
...

heroku create
Creating intense-falls-9163... done, stack is cedar
http://intense-falls-9163.herokuapp.com/ | [email protected]:intense-falls-9163.git
Git remote heroku added

git push heroku master
...
-----> Python app detected
...
-----> Launching... done, v7
       https://intense-falls-9163.herokuapp.com/ deployed to Heroku

A more detailed information can be found here https://devcenter.heroku.com/articles/deploying-python

LICENSE

ChatterBot Django Live Example is licensed under BSD 3-clause

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].