This skill is based on the "Step-by-Step Guide to Build a Trivia Skill" template. Follow the instructions on the page to setup this skill. The code of this skill is listed at the code section below.
Since the instructions are very thorough and in excellent detail, the steps to build this skill will not be documented here. Major part of the effort is devoted to building the questions for the trivia. The source of the quotes is from this site, Hollywood's 100 Favorite Movie Quotes.
Voice flowUpon opening the skill, there is a welcome message. Instructions about how the trivia works are given. User will be asked 5 questions of multiple choices. User will attempt to answer the 5 questions correctly. So, the flow is very simple to understand.
.
Intents{
"intents": [
{"intent": "AnswerIntent", "slots": [{"name": "Answer", "type": "AMAZON.NUMBER"}]},
{"intent": "DontKnowIntent"},
{"intent": "AMAZON.StartOverIntent"},
{"intent": "AMAZON.RepeatIntent"},
{"intent": "AMAZON.HelpIntent"},
{"intent": "AMAZON.YesIntent"},
{"intent": "AMAZON.NoIntent"},
{"intent": "AMAZON.StopIntent"},
{"intent": "AMAZON.CancelIntent"}
]
}
.
Utterances (en_GB)AnswerIntent the answer is {Answer}
AnswerIntent my answer is {Answer}
AnswerIntent is it {Answer}
AnswerIntent {Answer} is my answer
AnswerIntent {Answer}
AMAZON.StartOverIntent start game
AMAZON.StartOverIntent new game
AMAZON.StartOverIntent start
AMAZON.StartOverIntent start new game
DontKnowIntent i don't know
DontKnowIntent don't know
DontKnowIntent skip
DontKnowIntent i don't know that
DontKnowIntent who knows
DontKnowIntent i don't know this question
DontKnowIntent i don't know that one
DontKnowIntent dunno
.
State Diagram.
Skill link
Comments
Please log in or sign up to comment.