Conversation Inspector for IBM Watson
The Conversation Inspector for IBM Watson is a tool for developers to build conversational user experiences with Watson Conversation. The purpose of the tool is to display and manipulate the JSON that is sent between applications and Watson Conversation services. This is useful when, for example, you use context variables extensively to manage state information.
Main functionality:
- Displays JSON data of incoming messages (sample) and provides filters, for example only context variables (sample)
- Displays JSON data of outgoing messages (sample)
- Allows sending outgoing messages via text or JSON (sample)
- Displays history of conversation steps (sample)
- Allows developers to navigate back to previous steps (sample)
- Supports developers to download and copy all data to the clipboard (sample)
- Displays Watson Conversation workspace status (sample)
- Provides auto-complete textbox for previous text messages (sample)
Try out the online version yourself.
Screenshot of a sample conversation:
Authors:
- Niklas Heidloff @nheidloff
- Ansgar Schmidt @ansi
Setup on Bluemix
You can deploy the Conversation Inspector either via 'Deploy to Bluemix' button or by pushing it from your local environment.
Deploy to Bluemix Button
The easiest way to deploy the Conversation Inspector to Bluemix is to press this button.
You can bind a Watson Conversation service to the Cloud Foundry application. In this case the Watson user name and password are read from the VCAP environment variable and don't have to be entered manually. You can bind the service to the application either in the Bluemix user interface or via the following commands.
cf login
cf services
cf bind-service conversation-inspector-for-ibm-watson my-conversation-service-name
Deploy from local Environment
Edit manifest.yml to point to your own application
git clone https://github.com/nheidloff/conversation-inspector-for-ibm-watson.git
cd conversation-inspector-for-ibm-watson
npm install
typings install
npm run build:prod
cf login
cd node
cf push
Local Setup
You can run the Conversation Inspector either via Webpack or Node.
Rather than defining the Watson Conversation credentials and workspace ID every time when the application is started, you can define this information in src/assets/config.json when running locally.
Run locally via Webpack Dev Server
git clone https://github.com/nheidloff/conversation-inspector-for-ibm-watson.git
cd conversation-inspector-for-ibm-watson
npm install
typings install
npm start
Go to http://localhost:3000 in your browser
Run locally via Node Express
git clone https://github.com/nheidloff/conversation-inspector-for-ibm-watson.git
cd conversation-inspector-for-ibm-watson
npm install
typings install
npm run build:prod
cd node
npm install
node server-local.js
Go to http://localhost:6023 in your browser
Next Steps and Contributions
We have a lot of ideas how to further improve the tool. Check out the issues for details.
Create issues or pull requests with your desired changes.