意图的Amazon Alexa动态变量 [英] Amazon Alexa dynamic variables for intent
问题描述
我正在尝试构建一个Alexa技能套件,用户可以在其中说出类似这样的意图
I am trying to build an Alexa Skills Kit, where a user can invoke an intent by saying something like
GetFriendLocation where {Friend }
,为了让Alexa识别变量朋友,我必须在 LIST_OF_Friends $中定义所有可能的值c $ c>文件。但是,如果我不知道
Friend
的所有值,并且仍然想与我的应用程序可以访问的某些服务中的值最匹配,该怎么办?
and for Alexa to recognize the variable friend I have to define all the possible values in LIST_OF_Friends
file. But what if I do not know all the values for Friend
and still would like to make a best match for ones present in some service that my app has access to.
推荐答案
如果您将一个小型词典插入插槽(最多可以放入50,000个样本),它将变成一个通用插槽,变得非常开放选择任何东西,而不是选择什么。实际上,我对此没有多大运气。
Supposedly if you stick a small dictionary into a slot (you can put up to 50,000 samples), it becomes a "generic" slot and becomes very open to choosing anything, rather than what is given to it. In practice, I haven't had much luck with this.
这篇关于意图的Amazon Alexa动态变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!