Skip to content
Advertisement

Alexa skill can’t understand command

I am trying to create a skill in Alexa dev console which will respond to a command by returning information found from API queries. My other commands work, such as “help”, status of elevator xxx, etc. Just this one command doesn’t return correct results.

The expected outcome:

Me: what is going on.

Alexa: Greetings. There are currently XXX elevators deployed in the XXX buildings of your XXX customers Currently, XXX elevators are not in Running Status and are being serviced XXX Batteries are deployed across XXX cities On another note you currently have XXX quotes awaiting processing You also have XXX leads in your contact requests.

Actual result:

Me: what is going on.

Alexa:Sorry, I can't understand the command. Please say again.

JSON Input 1 from the command:

JavaScript

JSON Output 1:

JavaScript

Index.js:

JavaScript

And lastly, the JSON for the interaction model:

JavaScript

I’m quite new to Alexa skills development, and am just following a tutorial that may be a bit outdated. Any help would be greatly appreciated!

Advertisement

Answer

Add AMAZON.FallbackIntent in your interaction model.

“Sorry, I can’t understand the command. Please say again. ” This speech output should be sent when AMAZON.FallbackIntent is requested, not on an error.

I don’t know how javascript works, but I think there is some error in your code which triggers errorHandler which then gives that output.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement