Alexa skill not to send correct intent

I have the following settings for the Alexa skill I am writing:

Intent schema

{
  "intents": [
    {
      "intent": "AddToGroceriesIntent",
      "slots": [
        {
          "name": "GroceriesItems",
          "type": "GROCERIES_ITEMS"
        }
      ]
    },
    {
      "intent": "GetGroceriesIntent"
    },
    {
      "intent": "ClearGroceriesIntent"
    },
    {
      "intent": "AMAZON.HelpIntent"
    },
    {
      "intent": "AMAZON.StopIntent"
    },
    {
      "intent": "AMAZON.CancelIntent"
    }
  ]
}

      

Examples of scrapings

AddToGroceriesIntent to add {GroceriesItems}
AddToGroceriesIntent to add {GroceriesItems} to shopping list
AddToGroceriesIntent to add {GroceriesItems} to the shopping list
AddToGroceriesIntent to add {GroceriesItems} to the list
GetGroceriesIntent list
GetGroceriesIntent shopping list
GetGroceriesIntent for the shopping list
GetGroceriesIntent for the list
GetGroceriesIntent what on my shopping list
GetGroceriesIntent what on the shopping list
GetGroceriesIntent what on the list
GetGroceriesIntent what on my list
GetGroceriesIntent what is on my shopping list
GetGroceriesIntent what is on the shopping list
GetGroceriesIntent what is on the list
GetGroceriesIntent what is on my list
ClearGroceriesIntent to clear my shopping list
ClearGroceriesIntent to clear my list
ClearGroceriesIntent to clear the shopping list
ClearGroceriesIntent to clear the list
ClearGroceriesIntent to empty my shopping list
ClearGroceriesIntent to empty my list
ClearGroceriesIntent to empty the shopping list
ClearGroceriesIntent to empty the list
ClearGroceriesIntent to delete my shopping list
ClearGroceriesIntent to delete my list
ClearGroceriesIntent to delete the shopping list
ClearGroceriesIntent to delete the list

      

When Alex hears:

alexa will ask my application to clear a list of my

As expected, the correct ClearGroceriesIntent is dispatched . However, when Alex hears:

alexa will ask my application to clear the list

GetGroceriesIntent is dispatched instead .

This issue cannot be replicated by the service simulator - then it works fine. It was only during the speech that he got confused, although (according to the story) Alexa heard the same thing that I was typing into the test form.

(All AddToGroceriesIntent and GetGroceriesIntent statements work as expected)

+3


source to share


1 answer


One suggestion that might help is to change your selections to remove glue words - in your case "to" and "for" should not be in the model statements, link these documents in the "Invoke skill with a specific query (intent)" section. I'm not sure if this will fix the problem, but still good. If the problem persists, a situation may arise that mirrors this discussion about how NLP always returns one of your intentions - even if I don't understand it, it just picks one. Maybe he regularly selects GetGroceriesIntent when he doesn't understand.



+1


source







All Articles