The problem is that in UI when watson interact with user upto when its not came up with "option response" but when watson has to response with option functionality then it's not showing any option!
I tried to explain my problem as clear as i can. please! please! help me out with that.
if i have used less nodes or whatever it is please let me know.
Thank you.
i want to show, output from watson in (try it section) has to show like this :-
when i tried typing this code in function node 2 :
msg.payload =payload
then in debug node at that point where watson has to option response is like that
in your Function 2 code, you are getting the value of msg.payload.output.text[0]
The Debug output you've shared shows msg.payload.output.text is empty - it doesn't have any text for you to display.
You need to construct the text from:
msg.output.generic[0].title gives you "Thank you. what type of job...."
msg.output.generic[0].options is an array with the individual options in it - each has a label property that you would display and value object (although your screenshot doesn't show what is in that object, and I don't know the Watson Assistant api to say what it would be expecting).
here watson Assistant (i trained it ) works as a AI recruiter and he is asking for Email address from the user! after giving the email. watson have to reply with 3 option box along with ("thank you... what type......." ) as i shared a screenshot above in IBM watson try it section...
so that reply is not coming in node-red UI..
i think now u get it !
"i think the nodes which i had used are not capable of watson to show output in option response!"
my main problem is that
what i want to tell you is, i want the output in Node-red UI like this
There is no pre-built dashboard UI component for doing chat dialogs like that (although it is one I've considered making, just not got around to it).
You'd need to build it up yourself using a ui_template node with some custom HTML and JavaScript to draw the messages.
I understand that isn't as helpful a response as it could be, but I simply don't have a prebuilt example of a chat dialog I can point you at. Maybe someone else has...