[英]Timeout on Google Home using Dialogflow
I'm developing my own bot and in one instance I prompt the user to take a measurement, and then wait for their reply.我正在开发自己的机器人,有一次我提示用户进行测量,然后等待他们的回复。 Currently, my bot times out before the user even has time to take the measurement.
目前,我的机器人在用户有时间进行测量之前就超时了。 Suggestions on how to extend the timeout period?
关于如何延长超时期限的建议?
You cannot extend the timeout period, and you cannot extend how many "no-input" events occur before the Action closes.您不能延长超时期限,也不能延长在 Action 关闭之前发生的“无输入”事件的数量。
There are a couple of possible approaches to a solution:有几种可能的解决方案:
You can end the conversation and instruct the user to re-start the conversation with the measurement by providing you the information as part of a deep link.您可以通过将信息作为深层链接的一部分提供给您,结束对话并指示用户重新开始与测量的对话。 (Or just prompt them when they return to the conversation.)
(或者只是在他们返回对话时提示他们。)
You can play some "hold music" by using a Media response.您可以使用媒体响应播放一些“保持音乐”。 When the media ends, you will get a notice, so you can play more music until the user gives you a response.
当媒体结束时,您会收到通知,因此您可以播放更多音乐,直到用户给您回复。
You can use <break time="5" />
in SSML.您可以在 SSML 中使用
<break time="5" />
。
conv.ask(`<speak><break time="5" /></speak>`);
https://developers.google.com/assistant/actions/reference/ssml https://developers.google.com/assistant/actions/reference/ssml
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.