Original UI credits: https://github.com/JiteshGaikwad/Chatbot-Widget. I've modified the UI and added support for audio.
You can find the response format for audio in the docs here
Searches for your favourite song from Soundcloud and Jiosaavn and plays it.
- Make sure you have a Soundcloud API Key.
- Place your API key in
actions.py
inself.client_ids
underSongMachine
class.
Install the required libraries using
pip install -r requirements.txt
-
Make sure you download spacy model
en_core_web_md
using the following commandspacy download en_core_web_md
-
Open terminal as root or as administrator depending upon your OS and run the following command
python -m spacy link en_core_web_md en_core_web_md
-
Train the model using
rasa train
Go the the chatbot directory
-
Run Rasa actions server using
rasa run actions
-
Now, run Rasa API server using
rasa run -vv --model models --enable-api --cors "*"
-
Now, run the flask server using
python app.py
Then go this url http://localhost:8000