total99in
total99in

Reputation: 11

How to escape slot in IBM watson assistant?

I want to know how to escape while using slot for example, there is a slot need entities @time, @date, @place so user said "next sunday, in the market" In this moment, not include @time. so slot asked "I need time information too" but user doesn't answer about time, just input "main menu" because he want to go main node (welcome message) In conclusion, I wanna make when user in slot, but input other intent, just quit slot(Ignore all data from slot) and go intent node.

How can I do that? It's seem to be impossible..

Upvotes: 1

Views: 471

Answers (1)

chughts
chughts

Reputation: 4737

As @data_henrik suggests the way to handle this is through a digression. When you hit the "I don't know what time" or : "go back to the main menu" digression, you can perform operations to break out of the slot operation.

There are a number of ways to break of slots:

  • You can clear the dialog stack - <? clearDialogStack() ?> which will go back to the beginning.
  • You could set the required time field to a temporary value; set some handling variables; then handle the redirection in a post slots node, which checks for digression set variables.

Upvotes: 2

Related Questions