question

Mike Mulev avatar image
Mike Mulev asked

Alexa sends wrong intents to my remote endpoint

I'm completely stuck on finding out why Alexa chooses a wrong intent when I'm asking her "Alexa, ask {my_skill} to play jazz".

I'm waiting for PlayIntent to be sent to my endpoint, but Alexa chooses AdsPositiveIntent for some reason :/

Any ideas why she's can not understand my request and how to debug such issue?

My skill model:

{
  "intents": [
    {
      "name": "AdsBuyItIntent",
      "samples": [
        "buy it",
        "order it",
        "want to buy it"
      ],
      "slots": []
    },
    {
      "name": "AdsPositiveIntent",
      "samples": [
        "give me more details",
        "gimme more details",
        "tell me more",
        "more details",
        "sounds interesting",
        "want it",
        "i am interested",
        "Yes",
        "Yep",
        "I am",
        "I do",
        "I want",
        "I'm interested"
      ],
      "slots": []
    },
    {
      "name": "AMAZON.CancelIntent",
      "samples": []
    },
    {
      "name": "AMAZON.HelpIntent",
      "samples": []
    },
    {
      "name": "AMAZON.PauseIntent",
      "samples": []
    },
    {
      "name": "AMAZON.ResumeIntent",
      "samples": []
    },
    {
      "name": "AMAZON.StopIntent",
      "samples": []
    },
    {
      "name": "PlayIntent",
      "samples": [
        "play {station_name}"
      ],
      "slots": [
        {
          "name": "station_name",
          "type": "RadioStationName",
          "samples": []
        }
      ]
    }
  ],
  "types": [
    {
      "name": "RadioStationName",
      "values": [
        {
          "id": null,
          "name": {
            "value": "station name",
            "synonyms": []
          }
        }
      ]
    }
  ]
}
alexa skills kitskillintents
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Brian@Amazon avatar image
Brian@Amazon answered

Are you using service simulator or a device to test this?

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Brian@Amazon avatar image
Brian@Amazon answered

Ah. With RadioStationName not having any values, it's throwing the models off. Can you try providing some training data for the slot, and see what happens?

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.