[英]slot.value returns all utterances rather than just those from slot
[英]Alexa activates intent even though the slot.value does not exist in the JSON file
所以我有这个意图:
'PlayRadioIntent': function(channel) { this.setSessionAttribute('RadioName', channel); this.followUpState('PlayConfirmationState') .ask('Do you want me to play your stupid ' + channel.value); },
如果用户说:我想听slot:radio_name,则激活该选项 。
当我用以下方法测试时:
我想听eaaehae。
Alexa回复:
所请求的技能的响应存在问题。
这很合理,因为eaaehar在我提供的无线电数据库中不存在*
问题是当我用以下方法测试时:
我想听eaaehae广播。
Alexa回复:
您要我播放您的愚蠢eaaehae广播吗?
这没有任何意义,因为eaaehae无线电在我提供的无线电数据库中不存在
有谁知道是什么原因导致此问题。 谢谢 :)
所请求的技能的响应存在问题。 这很合理,因为eaaehar在我提供的无线电数据库中不存在*
每当Alexa用“所请求的技能的响应存在问题”进行响应时,这仅表示您的代码无法提供有效的响应。 无论是错误消息还是预期的响应,您都应该只发送有效的响应。
在您的情况下,您需要使用数据库中的期望值来验证在radio_name slot中接收到的slot-value,并发送回有效的响应。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.