Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jalajthanaki/chatbot_rule_based
Built the chatbot using rule-based approach.
https://github.com/jalajthanaki/chatbot_rule_based
chatbot pattern-matching pattern-recognition rule-based
Last synced: 7 days ago
JSON representation
Built the chatbot using rule-based approach.
- Host: GitHub
- URL: https://github.com/jalajthanaki/chatbot_rule_based
- Owner: jalajthanaki
- Created: 2018-01-19T08:45:56.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-02-27T10:05:20.000Z (almost 7 years ago)
- Last Synced: 2025-01-03T22:33:52.733Z (9 days ago)
- Topics: chatbot, pattern-matching, pattern-recognition, rule-based
- Language: Python
- Size: 6.84 KB
- Stars: 10
- Watchers: 2
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Rule Based Chatbot
===================This repository contains the code for chatbot. I have developed this chatbot using template based approach.
## Dependencies
In oreder to run this you need forllowing libraries.
* flask
* flask_cors
* json
* os
* flask_pymongo
* pytz
* datetime
* uuid## Installation
* OS, json, datetime and uuid are default python libraries
* Install Flask libraries using following commands:
```bash
$ sudo pip install Flask==0.12.2
$ sudo pip Flask-Cors==3.0.2
$ sudo Flask-PyMongo==0.5.1
```
* Installlation of pytz library
```bash
$ sudo pip install pytz==2017.2
```* Install MongoDB NoSQL db by following this step.
```bash
$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6
$ echo "deb [ arch=amd64,arm64 ] http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.4.list
$ sudo apt-get update
$ sudo apt-get install -y mongodb-org
$ sudo service mongod start```
## usage
1. First run `flaskengin.py`2. Go to the URL:
3. `http://0.0.0.0:5002/` where you can see Hello from chatbot Flask!
4. You can see the chatbot JSON response by using this URL:
```http://0.0.0.0:5002/welcomemsg_chat```5. After that you can hit the following urls
```
http://0.0.0.0:5002/hi_chat?msg=Hi
http://0.0.0.0:5002/asking_borowers_full_name?msg=
http://0.0.0.0:5002/asking_borowers_email_id?msg=
```