I noticed something strange when testing my model for interacting with the Alexa skillset.
I defined a custom slot type, for example:
CAR_MAKERS Mercedes | BMW | Volkswagen
And my scheme of intent was something like this:
{ "intents": [ { "intent": "CountCarsIntent", "slots": [ { "name": "CarMaker", "type": "CAR_MAKERS" }, ...
with exemplary statements such as:
CountCarsIntent Add {Amount} cars to {CarMaker}
Now, when testing in the developer's console, I noticed that I can write things like:
"Add three cars to Ford"
And it really will analyze it correctly! Although Ford was never mentioned in the interaction model! Lambda request:
"request": { "type": "IntentRequest", ... "intent": { "name": "CountCarsIntent", "slots": { "CarMaker": { "name": "ExpenseCategory", "value": "whatever" }, ...
This really surprises me, because the documentation on custom slot types says quite clearly that a slot can only accept values ββthat are listed in the interaction model.
Now it seems that the values ββare also being analyzed dynamically! Is this a new feature, or am I missing something?
alexa-skills-kit alexa alexa-skill
Konstantin schubert
source share