ibm-cloudwatson-conversationwatson-discovery

How to connect between IBM Watson Assisstant and IBM Watson Discovery?


I am using IBM Watson Assisstant to create a chatbot, and created a Watson Discovery collection too in the project. I need help in that how the dialogs works to take a response from the Discovery collection when an intent along with the entities are detected in the try section.


Solution

  • There are a couple of options to link up a IBM Watson Assistant chatbot to IBM Watson Discovery.

    1. The first and oldest is to have the application interact with Watson Assistant and, depending on the flow, context and response send a request to Watson Discovery. Basically, the integration is done in the application layer.
    2. The second option is to use server or client dialog actions in Assistant to directly call into Discovery. See my blog on a barebone news chatbot and the related code on GitHub on how to implement such an action. My example uses client actions (basically let the app handle it again), but server actions are similar. This IBM Cloud solution tutorial covers server actions for a database-driven bot.
    3. The newest option and currently in beta is to use the direct integration of Assistant and Discovery. See "Building a search skill" for an introduction into this direct linkage between IBM Watson Assistant and IBM Watson Discovery.

    The option 2 (server action) and 3 should work from the "Try it" in the tooling, the others not because of the app-based coordination.

    As usual in IT, there are different way to achieve the goal, the choice is yours... ;-)