• Stars
    star
    1,949
  • Rank 23,586 (Top 0.5 %)
  • Language
    Python
  • License
    MIT License
  • Created over 7 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A python chatbot framework with Natural Language Understanding and Artificial Intelligence.

Join the chat at https://gitter.im/ai-chatbot-framework/Lobby Build Status

An AI Chatbot framework built in Python

Building a chatbot can sound daunting, but itโ€™s totally doable. AI Chatbot Framework is an AI powered conversational dialog interface built in Python. With this tool, itโ€™s easy to create Natural Language conversational scenarios with no coding efforts whatsoever. The smooth UI makes it effortless to create and train conversations to the bot and it continuously gets smarter as it learns from conversations it has with people. AI Chatbot Framework can live on any channel of your choice (such as Messenger, Slack etc.) by integrating itโ€™s API with that platform.

You donโ€™t need to be an expert at artificial intelligence to create an awesome chatbot that has AI capabilities. With this boilerplate project you can create an AI powered chatting machine in no time.There may be scores of bugs. So feel free to contribute via pull requests.

Installation

Using docker-compose

docker-compose up -d

Using Helm

helm dep update helm/ai-chatbot-framework

helm upgrade --install --create-namespace -n ai-chatbot-framework ai-chatbot-framework helm/ai-chatbot-framework

# port forward for local installation
kubectl port-forward --namespace=ai-chatbot-framework service/ingress-nginx-controller 8080:80

Using Docker

# pull docker images
docker pull alfredfrancis/ai-chatbot-framework_backend:latest
docker pull alfredfrancis/ai-chatbot-framework_frontend:latest

# start a mongodb server
docker run --name mongodb -d mongo:3.6

# start iky backend
docker run -d --name=iky_backend --link mongodb:mongodb -e="APPLICATION_ENV=Production" alfredfrancis/ai-chatbot-framework_backend:latest

# setup default intents
docker exec -it iky_backend python manage.py migrate

# start iky gateway with frontend
docker run -d --name=iky_gateway --link iky_backend:iky_backend -p 8080:80 alfredfrancis/ai-chatbot-framework_frontend:latest

without docker

  • Setup Virtualenv and install python requirements
virtualenv -p python3 venv
source venv/bin/activate
pip install -r requirements.txt
python manage.py migrate
python run.py
  • Production
APPLICATION_ENV="Production" gunicorn -k gevent --bind 0.0.0.0:8080 run:app

Update Frontend Dist

  • Run Development mode
cd frontend
npm install
ng serve
  • Take Production build
cd frontend
ng build --prod --optimize

Heroku

Deploy

  • add your dev/production configurations in config.py

DB

Restore

You can import some default intents using following steps

Screenshots

Tutorial

Checkout this basic tutorial on youtube,

IMAGE ALT TEXT HERE

Watch tutorial on Fullfilling your Chatbot Intent with an API Call - Recipe Search Bot

Todos

  • Write Unit Tests
  • Multilingual Intent Classifier
  • PyCRFSuite to sklearn-crfsuite migration
  • Support follow up conversations

Dependencies documentations

Free Software, Hell Yeah!


More Repositories

1

minimal-nginx-web-server-docker

Minimal docker image/compose for nginx webserver
Nginx
15
star
2

natural-language-intent-classifer

A Natural Language Intent classifier in Python using NLTK and Scikit-Learn
Python
9
star
3

web-push-notification

Realtime Web push notification using Socket.IO and RabbiMQ
JavaScript
8
star
4

microservices-service-autodiscovery-docker-haproxy-consul-registrator

Scalable Microservices Auto-Service Discovery Architecture using Docker, registator, haproxy and consul.
Shell
5
star
5

Image-similarity-check

Compare two images on a similarity scale from 0(very different) to 100(exactly the same)
PHP
5
star
6

angular-workflow-ui

An UI interface for Angular 6 Workflow/state-machine/transitions
TypeScript
4
star
7

jarvis2.0

An intelligent Home automation system using Internet of Things and Machine learning
C
3
star
8

rbi-bank-ifsc-parser

Python script to parse and store bank ifsc details from rbi website in Mongodb
Python
3
star
9

Info-Hash-To-Magnet-URI

PHP script to Generate Magnet URI from info hash
PHP
3
star
10

AlfaSMS-API

PHP class to send SMS using free SMS providers such as way2sms.com, 160by2.com
PHP
2
star
11

AlfaCURL-Class

PHP class to perform cURL operations
2
star
12

alfredfrancis.github.io

SCSS
2
star
13

spam-classification-weka-java

Spam email/sms Classification using Weka Machine learning in Java
Java
2
star
14

docker-compose-banana

Docker compose for starting banana dashboards
JavaScript
1
star
15

blog

My first rails application
Ruby
1
star
16

jarvis2

IOT based Home automation with Self learning
Python
1
star
17

sms-classification-play-weka

SMS classification using Weka and Play Framework
Java
1
star