Follow up intent for NO INPUT not firing with dialogflow

久未见 提交于 2019-12-11 11:03:46

问题


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.

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.


回答1:


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.

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.




回答2:


No Input will be main intent as it can be reused by other intents. You may need to save bots response in a parameter in the context to check what the bot replied when handling the re-prompts from this generic No Input intent.



来源:https://stackoverflow.com/questions/53369796/follow-up-intent-for-no-input-not-firing-with-dialogflow

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!