How to edit/save IBM watson assistant conditional slot values for context variables?

221 Views Asked by At

I am trying to create a chatbot for booking flight tickets in watson assistant. The problem is that I want to enable the slot of return_date only when the trip is a roundtrip. But on testing the bot the context variable of $return_date is not getting reflected where as the $start_date is getting updated with the value of sys-date entered when prompted for return_date.

pic 1

pic 2

Also when trying if the user enters "I want to book roundtrip tickets for 4 people in economy class" then the bot asks for the remaining slot values but does not invoke the slot asking for the return date even though the trip type is mentioned in the conversation.

pic 3

pic 4

pic 5

Please suggest whether the flow needs to be changed or changes in the JSON editor will solve this problem.

0

There are 0 best solutions below