dialog-watson-client
Client for dialogs watson module
Requirements
Installation
Install with pip: pip install dialog-watson-client
Run the playground
Simply run in command line: dialog-watson-client --name=dialog-name path/to/dialog/file [--clean](optional: clean your dialogs in watson)
and you will chat with your robot
At the first launch it will create a config file located to ~/.config-dialog-watson.yml
and ask you your watson credentials
Usage for developers
Bootstrap example:
from dialog_watson_client.Client import Client
watsonClient = Client('user_watson', 'password_watson', 'file/path/to/dialog', 'your_dialog_name')
watsonClient.start_dialog()
resp = watsonClient.converse('hi')
print resp.response
watsonClient.get_profile().get_data()
Note: If your file is in xml (and you have lxml
lib installed) it will also check your format with xsd: https://www.ibm.com/smarterplanet/us/en/ibmwatson/developercloud/doc/dialog/download/WatsonDialogDocument_1.0.xsd