Does anyone know if this is possible?
I have an intent like {
{
"intents":
[
{
{
"intent": "Values",
"slots":
[
{
"name": "Value1",
"type": "LITERAL"
},
{
"name": "Value2",
"type": "LITERAL"
}
]
},....
in my code I have the following:
var value1 = intent.slots[0];
var value2 = intent.slots[1];
however when I try to run this both values are undefined. I also tried
var value1 = intent.slots.Value1;
var value2 = intent.slots.Value2;
But got the same result, they were both undefined. Does anyone know if this is indeed possible? and if so how would I get the values in code?
Thanks for your time