首页 文章

Alexa技能意图不使用我的插槽中的单词列表

提问于
浏览
1

假设我有以下意图的alexa技能:

{
"intents": [
  {
      "intent": "aaa",
      "slots": []
  },
  {
      "intent": "bbb",
      "slots": [
        {
          "name": "City",
          "type": "CITIES"
        }
      ]
  },
  {
      "intent": "ccc",
      "slots": [
        {
          "name": "City",
          "type": "CITIES"
        }
      ]
  },
  {
      "intent": "ddd",
      "slots": [
        {
          "name": "City",
          "type": "CITIES"
        },
        { "name": "Name",
          "type": "USER_NAMES"}
      ]
  },
 ]
}

假设我使用这个简单的话语:

ddd tell me if user {Name} lives in the {City}.

通过这样做,我假设在我的alexa技能,只要我的Intent正在调用将在我的自定义插槽中的 Names 中的插槽名称之一和我的自定义插槽中的 Cities 的插槽城市中提供 .

但是,结果是我得到了自由文本,我没有在自定义插槽中提供 . 自由文本,如果你说的话听起来像我说的,但意味着不同的东西 .

我不确定我做错了什么或者这是否符合设计要求 .

1 回答

相关问题