question

rjgunning avatar image
rjgunning asked

setting default slot options with shorthand

Is there a way to set up defaults for a slot option in the Alexa model? I have similarly named slot options and want a shorthand form to point to a specific one in a given locale. Hoping to do this in the model rather than implement in the backend.

I.e. in en_US, I want "pint" to return just "U.S. pint" rather than both options. I tried setting the synonym "pint" in the default option, but I'm still having both options returned in resolutions

{
  "id": "pt",
  "name": {
    "value": "U.K. pint"
  }
},
{
  "id": "us_pt",
  "name": {
    "value": "U.S. pint",
    "synonyms": ["pint"]
  }
}
alexa skills kitslotsinteraction modeldialog modelmodel
10 |5000

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

1 Answer

Tsuneki@Amazon avatar image
Tsuneki@Amazon answered

Hi there,

Thank you for posting.

Could you set slot value as "pint" and add "U.S pint" as synonyms in En(US) skill?

10 |5000

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