I write Alexa Skill and I can only get one word parameter in my code.
Here is the scheme of intent:
{ "intents": [ { "intent": "HeroQuizIntent", "slots": [ { "name": "SearchTerm", "type": "SEARCH_TERMS" } ] }, { "intent": "HeroAnswerIntent", "slots": [ { "name": "SearchTerm", "type": "SEARCH_TERMS" } ] }, { "intent": "AMAZON.HelpIntent" } ] }
and my sample statements:
HeroQuizIntent quiz me HeroAnswerIntent is it {SearchTerm}
For HeroAnswerIntent, I check the SearchTerm slot and I only get single words.
So, “Peter Parker” gives “Parker”, “Steve Rogers” gives “Rogers”, and “Tony Stark” gives “Stark”.
How to take a few words into the slot?
alexa-skills-kit alexa alexa-skill
Xanxir
source share