question

nkostiw avatar image
nkostiw asked ·

Alexa isn't picking up the correct intent value

With the following intent schema,
{
  "intents": [
    {
      "slots": [
        {
          "name": "user",
          "type": "USERS"
        }
      ],
      "intent": "LogInIntent"
    },
    {
      "slots": [
        {
          "name": "logInCode",
          "type": "AMAZON.NUMBER"
        }
      ],
      "intent": "VerifyAccountIntent"
    },
    {
      "intent": "ResendVerificationIntent"
    }
  ]
}

I'm trying to invoke the VerifyAccountIntent. Which takes in a login code as user input but Alexa keeps mapping the request to the Resend verification intent. Even when all I use for the request is the number.

Anyone have any idea why it might be doing this?

Example Utterances:

VerifyAccountIntent {logInCode}
VerifyAccountIntent Code is {logInCode}
VerifyAccountIntent Verification Code is {logInCode}
VerifyAccountIntent Passcode is {logInCode}
VerifyAccountIntent It's {logInCode}


ResendVerificationIntent Resend 
ResendVerificationIntent Send again
ResendVerificationIntent Resend again
ResendVerificationIntent Try again
ResendVerificationIntent Send it again
alexa skills kitintentslogin with amazonschema
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

nkostiw avatar image
nkostiw answered ·

Figured this issue out myself actually.

If anyone else finds themselves struggling with this try typing out the numbers in English.

i.e. instead of typing in "123456", replace it with "one two three four five six".

Another note is to ensure that you have an "Unhandled" function coded for each state, as well as intent handler functions for each state when neccessary.

10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.