同じスロットタイプを使用する2つのインテントがあります。ただし、入力がランダムな文字列の場合、AlexaはJSONリクエスト内の意図を自動的に識別しますが、発言の一部ではありません。例えば、以下の例では、ユーザ入力が「bla bla bla」であった場合、GetAccountBalance
は、提供された発声の一部ではないがスロット値のない意図として識別される。Alexa Intent Schema:ランダム入力がインテントとして識別される
これらのケースをエラーチェックする方法と、インテントスキーマを開発する際に、このようなケースを避けるベストプラクティスは何ですか。すべてのランダム入力を処理できるインテントを作成する方法はありますか?
例スキーマ:
{
"intents": [
{
"intent": "GetAccountBalance",
"slots": [
{
"name": "AccountType",
"type": "ACCOUNT_TYPE"
}
]
},
{
"intent": "GetAccountNumber",
"slots": [
{
"name": "AccountType",
"type": "ACCOUNT_TYPE"
}
]
}
]
}
発話:Alexaのスキルを開発する際
GetAccountBalance what is my account balance for {AccountType} Account
GetAccountBalance what is my balance for {AccountType} Account
GetAccountBalance what is the balance for my {AccountType} Account
GetAccountBalance what is {AccountType} account balance
GetAccountBalance what is my account balance
GetAccountBalance what is account balance
GetAccountBalance what is the account balance
GetAccountBalance what is account balance
GetAccountNumber what is my account number for {AccountType} Account
GetAccountNumber what is my number for {AccountType} Account
GetAccountNumber what is the number for my {AccountType} Account
GetAccountNumber what is {AccountType} account number
GetAccountNumber what is my account number
GetAccountNumber what is account number
GetAccountNumber what is the account number
GetAccountNumber what is account number