To running this Rasa, you need:
Install requiments (recomment using python 3.7.15):
-
conda create -n env python=3.7.15
-
cd AntBot-Rasa
-
pip install -r requirements.txt
Install models:
- ziplink: Dowload and unzip the models.
- Drop 2 folder (models, model_coqui) into the path AntBot-Rasa/.
Prepare 2 command line:
- commandline 1: rasa run actions
- commandline 2: rasa run --enable-api --credentials ./credentials.yml --debug
Test rasa demo which Postman:
-
Rasa response is default:
1.utter_greet: Hello! I am RASA, can i help you?
2.utter_goodbye: Goodbye, see you later.
3.utter_i_am_a_bot: I am a bot created by RASA and developed by AntBuddy.
4.utter_thank: You are welcome.
If you want rasa train with a new data, you need to connect with mongoDB (line 54, channel/custom_connector.py):
- Get data from file excel(nlu, story) -> save in mongoDB -> Get data from mongoDB.
- Use URL: http://localhost:5005/webhooks/myio/update_flow then Post 2 excel file (include: nlu, story). After that, the new data (nlu, story) and domain file will in folder data. You need to move domain.yml outside and replace an old domain file. Train with new data to get new model.
- If you want to check bot response: Use URL: http://localhost:5005/webhooks/myio/coqui