简体   繁体   English

alexa“未定义”,对“ repromptSpeech”没有响应

[英]alexa “undefined” to no response on “repromptSpeech”

I am trying to create a skill of facts with this structure: 我正在尝试通过以下结构创建事实技能:

User : "Alexa asks my skill a fact" 用户 :“ Alexa问我的技能事实”

Skill : "here is your fact" "are we going on?" 技能 :“这是您的事实”“我们要继续吗?”

User : "yes" 用户 :“是”

Skill : "here is your fact" "are we going on?" 技能 :“这是您的事实”“我们要继续吗?”

User : "no" 用户 :“否”

Skill : "End of session, goodbye" 技能 :“会议结束,再见”

so far so good, but if the user does not answer anything the skill says "undefined" "there was a problem with the requested skill" and she leaves. 到目前为止,还不错,但是如果用户什么都没回答,则技能说"undefined" "there was a problem with the requested skill" ,她就离开了。

User : "Alexa asks my skill a fact" 用户 :“ Alexa问我的技能事实”

Skill : "here is your fact" "are we going on?" 技能 :“这是您的事实”“我们要继续吗?”

User : "" 用户 :“”

Skill : "undefined" "there was a problem with the requested skill" 技能 :“未定义”“所要求的技能有问题”

is there a pre-build intent to handle this kind of case? 是否有预构建的意图来处理这种情况?

I need your help. 我需要你的帮助。

thank you in advance Envoyer des commentaires Historique Enregistré Communauté 在此先感谢您的评论使者EntoristréCommunauté历史

Alexa should deliver a SessionEndedRequest whenever the user does not reply. 每当用户不回复时,Alexa都应传递一个SessionEndedRequest

Handle Requests Sent by Alexa (SessionEndedRequest) : 处理Alexa发送的请求(SessionEndedRequest)

Your service receives a SessionEndedRequest when a currently open session is closed for one of the following reasons: 由于以下原因之一,当前打开的会话关闭时,您的服务会收到SessionEndedRequest:

  • The user says "exit" or "quit". 用户说“退出”或“退出”。
  • The user does not respond or says something that does not match an intent defined in your voice interface while the device is listening for the user's response. 当设备正在侦听用户的响应时,用户没有响应或说出与您的语音界面中定义的意图不符的内容。
  • An error occurs. 发生错误。

So you should be handling that as you would handle the LaunchRequest or IntentRequest . 因此,您应该像处理LaunchRequestIntentRequest一样进行处理。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM