在用户说“取消”时,将用户重定向到默认欢迎意图。或“退出”; [英] Redirect user to the Default Welcome Intent when he says "cancel" or "exit"
问题描述
我正在为Google助手开发Dialogflow应用程序。在这种情况下,如果我说取消,它会直接在我指定了 actions_intent_CANCEL
事件的地方调用 exit_conversation
意图。因此,它将显示该意图中指定的输出,并且bot退出对话。
I'm developing a Dialogflow application for Google Assitant. In that, if I say "Cancel" it directly calls the exit_conversation
intent where I've specified actions_intent_CANCEL
event. So it displays the output specified in that intent and bot exit the conversation.
代替退出Bot,我需要打开默认欢迎意图。有什么方法吗?
Instead of exiting the Bot I need to open Default Welcome Intent. Is there any way to do that?
PS 我正在使用Python实现作为该机器人的后端。
P.S. I'm using Python fulfillment as a backend for this bot.
推荐答案
简而言之-不,您不能那样做。
In short - no, you can't do that.
问,当用户尝试退出时,您不想让他们退出。从Google和您的用户的角度来看-这是一个非常不可接受的选择。
You're essentially asking that, when the user tries to quit, you don't want to let them quit. From Google's and your users' point of view - that is a pretty unacceptable option.
CANCEL事件处理程序的功能相当有限-Google将终止对话,即使您没有指定麦克风应该关闭,但您仍有机会说最后一条话并提供指向其他地方的链接。
The CANCEL event handler is fairly limited with what it can do - Google will terminate the conversation, even if you don't specify that the microphone should be closed, but you're given the opportunity to say a final message and offer a link to elsewhere.
这篇关于在用户说“取消”时,将用户重定向到默认欢迎意图。或“退出”;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!