I want to define an order intent something like "I want two pencil,one notebook, four cardbox".
In alexa build model it looks something like the following I want {itemQuantity}{itemList}
here {itemQuantity} is defined as Amazon.number and {itemList} is defined as custom slot which could have this set of values {pencil,notebook,eraser,cardbox,sharpner}.
Now If I make the following utterance "I want three eraser" ,it worked perfectly.it returns itemQuantity as 3 and itemList as eraser.
But when I make the intent with multiple values like this "I want two pencil one notebook four cardbox". It returns me itemQuantity as 2 and itemValue as "two pencil one notebook four cardbox".
Rest of the string come entirely as itemList.
I want to get this input in form of array/list like itemQuantity = {2,1,4} itemList = {pencil,notebook,cardbox}