I have two intentions that use the same types of slots. However, if the input is a random string, Alexa will automatically identify the intent in its JSON request, even if it is not part of the statements. For example, in the example below, if the user input was "bla bla bla", GetAccountBalance identified as a target without a slot value, even if it is not part of the statements provided.
What is the error checking method for these cases and what is the best way to avoid such cases when designing an intent scheme? Is there a way to create an intent that can handle all random inputs?
Example circuit:
{ "intents": [ { "intent": "GetAccountBalance", "slots": [ { "name": "AccountType", "type": "ACCOUNT_TYPE" } ] }, { "intent": "GetAccountNumber", "slots": [ { "name": "AccountType", "type": "ACCOUNT_TYPE" } ] } ] }
Statements:
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
source share