简体   繁体   English

正在使用的关键字触发了 Google 助理的意外退出和全局响应

[英]Keywords in Action triggering unexpected exit and global response from Google Assistant

Certain keywords are exiting my action.某些关键字正在退出我的操作。

First of all, I'm aware that there are built-in/system intents ( docs ).首先,我知道有内置/系统意图( docs )。 I know that there are conversation exit keywords that trigger actions.intent.CANCEL and exit the action/conversation (eg. "exit", "cancel", "stop". See docs ).我知道有对话退出关键字会触发 actions.intent.CANCEL 并退出操作/对话(例如“exit”、“cancel”、“stop”。请参阅文档)。

However, I cannot find any documentation referencing the keywords that are exiting my action (and any new one I create).但是,我找不到任何引用退出我的操作(以及我创建的任何新操作)的关键字的文档。

Keywords like "thank you", "help", "call center", consistently exit my action and submit the user query globally to Google Assistant. “谢谢”、“帮助”、“呼叫中心”等关键字始终退出我的操作,并将用户查询全局提交给 Google 助理。 For example, inputting "thank you" during a conversation in my action will exit (ie. " has left the conversation") and Google Assistant will answer me with something like "That's what I was built for.".例如,在我的操作中的对话过程中输入“谢谢”将退出(即“已离开对话”),Google 助理会回答我“这就是我的目标。”。 Testing in the simulator shows this exit as an invocation error (See screenshot_1 ), testing with Google Assistant on mobile shows the exit from action and answer from GA (See screenshot_2 ).在模拟器中测试显示此退出为调用错误(参见screenshot_1 ),在移动设备上使用 Google Assistant 进行测试显示退出操作和来自 GA 的答案(参见screenshot_2 )。

Why is this happening instead of a fallback intent?为什么会发生这种情况而不是后备意图?

This seems to be a case of no-match yielding where some queries that does not match your Action will be executed by the Assistant instead.这似乎是不匹配产生的情况,其中一些与您的操作不匹配的查询将由助手执行。

If you do want to handle these queries yourself, you can add an intent that matches freeform text .如果您确实想自己处理这些查询,则可以添加与自由格式文本匹配的意图。 Though this may come at a detriment to the user experience if they did intend for the Assistant to answer.尽管如果他们确实打算让助手回答,这可能会损害用户体验。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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