File size: 1,005 Bytes
64a5bab c8c0c7c 64a5bab c8c0c7c 64a5bab c8c0c7c 64a5bab c8c0c7c 64a5bab c8c0c7c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
# Readme
The source code in this repository shows a simple rasa chatbot fallback mechanism, which can get relavent information from Zir-AI search platform.
## Data
reviews.db contains the hotel reviews, its generated by using repo https://github.com/amin3141/zir-souffle
# How-to
First you need to have the rasa shell installed. You can do that by following the rasa tutorials https://rasa.com/docs/rasa/installation
Next is training the model
```
rasa train
```
Then to run in one terminal you need to run
```
rasa run --credentials ./credentials.yml --enable-api --auth-token XYZ123 --model ./models --endpoints ./endpoints.yml --cors "*"
```
And in the background or in another terminal run
```
rasa run actions
```
Lastly, to view the bot in the UI either simply load the `www/index.html` file in the browser or run `python3 server.py` and open `localhost:8080` in browser.
You could also just run the two commands and talk with the bot in shell
```
rasa run actions &
rasa shell
```
|