Conversation from IBM Watson provides an API for adding a natural language interface to your application to automate interactions with your end users. Build and integrate chatbots or virtual agents. The IBM Watson Assistant block allows you to build a chatbot or virtual agent, that can carry out conversations with end users in realtime. The block includes a number of cognitive techniques, making your chatbot fully customizable to suit your realtime app's needs.
The IBM Watson Assistant API lets developers create Intelligent Bots. This block demonstrates how to create a simple Pubnub Tutor Bot that will teach the user how to use PubNub. Extrapolating from this example, you can use the IBM Watson Assistant API to build your own chat bot.
To learn more about IBM Watson Assistant Service and getting your credentials, visit the IBM Watson Assistant API homepage.
Publish a message over the input channel. Input Channel: pubnub-tutor-request
{ "text": "hi", "sender": "User", "channel": "test" }
Watson's response is published on the output channel which is sent in the message.
{ "text": "Hello, I know a little about pubnub, and can help you in learning about it ?", "sender": "Pubnub Tutoring", "channel": "test" }
Need help? Contact PubNub Support.
Copyright (c) 2018 PubNub
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.