How do I define a custom slot type that isn't a list?

后端 未结 5 1609
盖世英雄少女心
盖世英雄少女心 2020-12-24 02:09

I\'m playing around with the Alexa Skills Kit (for the Amazon Echo) and want to create a skill that would send the intent to an AWS Lambda function which would just email so

5条回答
  •  天涯浪人
    2020-12-24 02:24

    AMAZON.SearchQuery

    AMAZON.SearchQuery slot type lets you capture less-predictable input that makes up the search query.

    Ex:

    {
      "intents": [
        {
          "name": "SearchIntent",
          "slots": [
            {
              "name": "Query",
              "type": "AMAZON.SearchQuery"
            },
            {
              "name": "CityList",
              "type": "AMAZON.US_CITY"
            }
          ],
          "samples": [
            "search for {Query} near me",
            "find out {Query}",
            "search for {Query}",
            "give me details about {CityList}"
          ]
        }
      ]
    }
    

    More on AMAZON.SearchQuery here

    There is AMAZON.LITERAL slot that passes the recognised words for the slot value with no conversion. But, its's not recommended. You cannot use AMAZON.LITERAL in a skill configured with a dialog model.

提交回复
热议问题