跟进意图,以防止IN INPUT不使用dialogflow触发 [英] Follow up intent for NO INPUT not firing with dialogflow

查看:63
本文介绍了跟进意图,以防止IN INPUT不使用dialogflow触发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个读书操作,并且尝试为我的阅读意图添加一个后续意图,以便在没有响应的情况下再次提示用户。遵循文档 https://developers.google.com/actions/assistant/reprompts -我的webhook永远不会被调用。

I have a "book reading" action and I tried to add a follow up intent for my read intent to reprompt a user if there was no response. Following the doc https://developers.google.com/actions/assistant/reprompts - my webhook never gets called.

但是,如果我将no input handler作为主要意图添加,那么我确实会收到此事件!

However, if I add the no input handler as a main intent, I do get this event!

这是一个错误还是我错过了什么?

Is this a bug or did I miss something.

推荐答案

无输入事件有点不寻常,因为与许多其他事件相比,内部处理方式有所不同。如果这种差异要求将其作为顶级Intent处理,这不会令我感到惊讶。您可能还希望尝试在图书阅读部分中设置上下文,并将其作为无输入事件的输入上下文。

The no-input event is a little unusual, since it is handled differently internally compared to many other events. It would not surprise me if this difference requires it to be handled as a top-level Intent. You may also wish to just try setting the context in your book reading portion and having this as an input context for your no-input event.

但是 ...这也可能不会执行您想要的操作。

However... this will also likely not do what you want it to do.

无输入事件将在三个连续事件后自动终止对话,即使您不会明确关闭对话。

The no-input event will automatically terminate the conversation after three sequential events, even if you don't explicitly close the conversation.

当前处理此问题的方法是使用媒体响应。这将包括一个非常短的音频文件。音频播放后,您的操作将是 actions_intent_MEDIA_STATUS 事件,可用于触发下一部分的读取。

The current way to handle this would be to use a Media Response after each portion you read. This would include a very short audio file. After the audio plays, your Action will be actions_intent_MEDIA_STATUS event, which you can use to trigger the next portion to be read.

这篇关于跟进意图,以防止IN INPUT不使用dialogflow触发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆