如何让代理在打开麦克风之前说些什么?

How to make the agent say something before leaving the mic open?

Google 拒绝了我的应用并提供以下反馈:

During testing we noticed that when the Action is not able to get data it opens the mic and leaves it open without prompting. Make sure that your agent always says something before leaving the mic open for the user, so that the user knows what they can say. This is particularly important when your agent is first triggered.

我使用 API AI 工具和网络挂钩(连接到 Heroku 上的网络服务 运行)构建了我的应用程序。 Heroku 在 30 分钟不活动后休眠。我认为当 Heroku 需要很长时间才能响应时会出现此错误。知道如何让代理在打开麦克风之前说些什么吗?

我不确定为什么会收到此反馈,因为如果 Web 服务请求超时,Google 主页会发出以下响应。

当您在实现逻辑中使用 assistant.ask 时,您应该向用户提问。用户应该清楚他们应该回答什么。

如果您的 fulfillment 实例进入休眠状态或没有快速响应,那么助手通常会播放一条消息,表明您的操作没有响应。

它可能会回答您在 API.ai 上添加的文本回复,但在您的意图页面底部(在文本回复下方)单击 "Actions on Google",然后选中 "End conversation" Check this screenshot