How to extent sample project for IBM Watson Assistant to display more than text answers?

130 views Asked by At

I am currently testing the IBM Watson Assistant and one of its Node.js sample projects. I have configured options like (options, images, connect to agent and pause) in Watson Assistant. In the sample app, those options are not shown in the chat window. Why? How can I add them to the bot?

1

There are 1 answers

0
data_henrik On

From a quick look at the source in https://github.com/IBM/watson-banking-chatbot/blob/master/public/js/conversation.js#L90 it seems that the code only prints out text. See the IBM Watson Assistant response types for how options, images and more are encoded.

It seems you would need to extend the code in how to compose the actual output based on detected response options.