如何找到对话委托的引出插槽 ID

How to find the elicit slot id for a dialog delegate

我是使用 ask cli 进行 Alexa 开发的新手,当我通过 dialog-delegate-starter 时,我 运行 遇到了问题。在 json 模型中,有一个名为 elicitation 的字段,它的值为 "Elicit.Slot.251925459829.983270759031",这似乎是某种自动生成的 id。我正在想象创建自己的对话意图,并且必须手动填写。这个id是怎么生成的,在哪里找到的?

"dialog": {
      "intents": [
        {
          "name": "factIntent",
          "confirmationRequired": false,
          "slots": [
            {
              "name": "city",
              "type": "cityName",
              "elicitationRequired": true,
              "confirmationRequired": false,
              "prompts": {
                "elicitation": "Elicit.Slot.251925459829.983270759031"
              }
            }
          ]
        }
      ]
    },

您真的不需要手动填写这些内容。即使您使用 "manual delegation",您也可以使用它们。我不确定你需要它们做什么,但有一种方法可以得到它们。

也许这会有所帮助:https://developer.amazon.com/es-mx/docs/custom-skills/delegate-dialog-to-alexa.html