question

newuser-38cdf09d-914e-4c8d-b88c-d0ee6d1c4fcf avatar image

Incorrect intent matching when using AMAZON.LITERAL slot type

Hi.

My skill relies on AMAZON.LITERAL slot in one of my custom intents (InteractiveFictionCommandIntent).

I added multi-turn dialogs to a new version of my skill but when a user is saying "stop" or "cancel" in the middle of a dialog, my skill receives that custom intent of mine with the word "stop" or "cancel" in the literal slot.

I would expect Alexa to interpret those words as built-in AMAZON.StopIntent and AMAZON.CancelIntent instead. I tried adding the following mappings to my interaction model but it still thinks that "stop" matches to InteractiveFictionCommandIntent and not AMAZON.StopIntent:

AMAZON.StopIntent stop

AMAZON.CancelIntent cancel

When I put the text "stop" into Service Simulator press "Ask My Skill" I am getting the following:

{ "session": { "sessionId": "SessionId.5d716b46-2112-4d04-8235-842977e66626", "application": { "applicationId": "amzn1.echo-sdk-ams.app.75f0f37e-aa18-4db0-9976-23798670c600" }, "attributes": {}, "user": { "userId": "amzn1.ask.account.AFP3ZWPOS2BGJR7OWJZ3DHPKMOMNWY4AY66FUR7ILBWANIHQN73QGTWCNLR7NZZZQ6WFBY6RR6IHNYSB7LJ5ZYPBEJNHHXEOXDW2QH6RSJ6JODJT5HCSCK6UHKTRUEUSJUGTZLZHE7EQGWO2IUICEZAI756QSX57AXTMKHCJ3M4PW35CZE3LSH3KLLWCB5Q7WI2UK73B7EZE2NA" }, "new": true }, "request": { "type": "IntentRequest", "requestId": "EdwRequestId.6bc6c964-18b0-41b6-8d3a-d96c036f9bc7", "locale": "en-US", "timestamp": "2016-11-23T23:35:49Z", "intent": { "name": "InteractiveFictionCommandIntent", "slots": { "payload": { "name": "payload", "value": "stop" } } } }, "version": "1.0" }

The skill fails certification because of this issue, but I don't know what I can do short of special-casing the custom intents that have the word "stop"/"cancel" in them. This looks like a bug to me. Why else would a specific intent mapping in interaction model be ignored?

And the time is running out: I must submit the skill by Nov 30 (because of the AMAZON.LITERAL change).

alexa skills kitskillintents
10 |3000 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

Brian@Amazon avatar image
Brian@Amazon answered
How have you set up your literal? This shouldn't be happening, but my guess is that it would be possible to manipulate the slots such that it works.
10 |3000 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.