I have a simple java script program that I would like to transfer over the the Amazon Echo, however I cannot figure out how to transfer over some variables from text based to voice. for example:
var rhyme = prompt('Enter the word to rhyme with'); //input
console.log('rhyming words API call result:', getNRhymingWords(rhyme, 5)); //output
I have set up a custom intent and slots for every word in the dictionary, but I can still not get the slot to work. I am planning to simply call rhyme variable at the start of the function and the output at the end. Any help is greatly appreciated!