简体   繁体   English

使用 Dialogflow 在 Google Home 上超时

[英]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.

相关问题 无法使用对话流获取 Google Home 设备 ID - Cannot get the google home device id using dialogflow 在 google home mini 中进行测试时,Dialogflow 代理的响应不同 - Dialogflow agent responding differently when testing in google home mini 如何使用 Flask 向 Google Dialogflow 提交查询 - How to submit a query to Google Dialogflow using Flask 使用 Dialogflow-fulfillment 获取设备位置,而不是使用 Google Actions - Getting device location using Dialogflow-fulfillment, not using Google Actions 使用服务帐号在 Google Cloud 项目上启用 Dialogflow API - Enable Dialogflow API on Google Cloud Project using Service Accounts 在 google dialogflow 上使用单个服务帐户访问多个项目 - Access multiple projects using a single service account on google dialogflow 如何使用 Google Actions Dialogflow 播放实时音频 stream - How to play live audio stream using Google Actions Dialogflow 在对话流中使用谷歌帐户链接后继续对话 - Continuing a conversation after account linking using google in dialogflow 如何使用谷歌云 API 启用 Dialogflow API - How can enable Dialogflow API using google cloud API 使用 dialogflow 实现 webhook 的 Google 聊天自定义卡片 - Google chat custom cards using dialogflow fulfilment webhook
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM