私はアレクサのカスタムスキルを構築しようとしています。私はスキルがユーザーに質問する質問に対して、ユーザーからのYes/No応答を得ようとする問題に直面しています。カスタムスキルのユーザーからの「はい」/「いいえ」の回答はどうすれば処理できますか?
Alexa: Would you like to know the rules of the game?
User: <Can respond either Yes or No>
特定の操作を実行したいと思います。ここで
は私の意図スキーマです:ここでは
{
"intents": [
{
"intent": "AMAZON.StopIntent"
},
{
"intent": "AMAZON.CancelIntent"
},
{
"intent": "AMAZON.HelpIntent"
},
{
"intent": "StartGame"
},
{
"intent": "GetRules"
}
]
}
は私のサンプル発話です:
StartGame Begin the game
StartGame Start the game
GetRules What are the rules
GetRules Get the rules
GetRules Tell me the rules
GetRules Tell me the rules again
スキルは、ユーザは以下の通りです尋ねる質問:
Welcome to the game. Would you like me to tell you the rules?
私が言うたび"はい"、StartGameインテントはトリガーされているものです。 (「いいえ」の場合も同じです)。 AlexaはStartGameとして常に意図を選択します。 "GetRules"インテントを呼び出す最良の方法は何ですか?私はユーザーに「はい/いいえ」と言うだけで、「ルールを取得する」とは言いません。
これがすでに回答されているかどうかお知らせください/詳細が必要です。