NLP service for SwiftOps (Work-in-progress)
Install prerequesists by executing following command
python -m pip install -r requirements.txt
Update following configuration files as per your dialog flow needs or start with templates given.
- train_model/stories.md
- train_model/domain.yml
- train_model/nlu.md
Configure credentials for your prefered conversation channel Note; We have given example of Slack, as well as Bot UI, more on the way
- train_model/credentials.yml
train models using folling command
./train_model/train.sh
You can test your model on ither command prompt or if you have Jupyter notebook, use train_model/test.ipynb
./train_model/test_bot.sh
Start Server to connect to your configured communication chanel, Slack in this case. You can start the server with ither command line utility or start using bot/bot_listner.py
./start_core.sh
python service.py
your server is started on port 5002 Make your server accessible on the Internet so that Slack can communicate with it. You need to download ngrok utility for the same.
ngrok http 5002
Configure Forwarding url in Slack API. open your slack client and enjoy your conversation.
python chat_ui/conversation_interface.py
your CUI server is started on port 8080