Is it possible to capture an entity value not matching one of the predefined entityTypes values provided in the model?
When testing from the webhook URL, this.$entities.goBearing is undefined (where “goBearing” is the name of the slot/entity referenced in phrases as shown, in my simple model, below). Defined values work fine.
My recollection from Alexa was that it would attempt to fill an entity not provided as a slot value. This allowed my interactive adventure game skill to give a more contextual response along the lines of “I would love to go ballistic, however that is not a valid direction.”
Can this be done? Thanks…
{
“invocation”: “Adventure Castle”,
“version”: “4.0”,
“intents”: {
“goIntent”: {
“phrases”: [
“go”,
“go {bearing}”
],
“entities”: {
“bearing”: {
“type”: “goBearing”
}
}
}
},
“entityTypes”: {
“goBearing”: {
“values”: [
“left”,
“right”
]
}
}
}