简体   繁体   中英

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..

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()?> <? 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM