I come from a Java development background, but since joining Watson I’ve started using Python and love it. 🙂 It’s like it was made for Conversation.
The Conversation test sidebar is handy, but sometimes you need to see the raw data, or certain parts that don’t show up in the side bar.
Creating a Bluemix application can be heavy if you just want to do some testing of your conversation. Python allows you to test with very little code. Here is some easy steps to get you started. I am making an assumption you have
1: If you are using a MAC you have python already installed. Otherwise you need to download from python.org.
2: Install the Watson Developer Cloud SDK. You can also just use Requests, but the SDK will make your life easier.
3: In your conversation service, copy the service credentials as-is (if you are using the latest UI). If it doesn’t look like below, you may need to alter it.
4: Go to your conversation workspace, and check the details to get your workspace ID. Make a note of that.
5: Download the following code.
The “ctx” part just paste in your service credentials, and update the workspace ID. The version number you can get from the Conversation API documentation.
6: Run the Python code. Assuming you put in the correct details, you can type into the console and get your responses back from conversation. Just type “…” to quit.