question

Debu Modi avatar image
Debu Modi asked

Lambda not triggered by alexa skill

My skill ID is - amzn1.ask.skill.73311694-6a23-4d27-ab8a-736c2f91ca97

My Lambda ARN is -arn:aws:lambda:us-east-1:530501672835:function:HyperReachNotificationsDemo

I have added Alexa trigger to the lambda as well as added Lambda endpoints on all geographical regions.

I can test with the skill enabled json and I get that in my cloudwatch log.

But when I enable / disable the skill on my alexa app (dev skill), I do not see anything in my cloudwatch logs.

What am I missing ?

lambdaalexa skills
10 |5000

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

Andy Whitworth avatar image
Andy Whitworth answered

What happens if you use the test page in the dev console and type "open <invocation name>" ?


10 |5000

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

KirkC@Amazon avatar image
KirkC@Amazon answered

Hello. I enabled the skill here at my desk and it successfully invokes the skill without issue:

Me: Alexa, launch <invocation name>
Alexa: You have to provide permissions for address and allow notifications in order for the skill to work.

This illustrates that a LaunchRequest was successfully sent to your skill's Lambda function, and that the Lambda function successfully returned a response, correctly noting that I had not yet enabled permissions.

If you're having trouble launching the skill on you phone specifically though, this is probably just a language mismatch issue. The skill currently only has an English (US) interaction model. If your phone is set to any other English language locale (like English (UK), English (CA), English (IN)), then the device will not launch the skill, since the skill doesn't support those languages. Alexa treats these as totally different languages which is often overlooked.

There's two ways to address this, either add the appropriate English language locale:
https://developer.amazon.com/en-US/docs/alexa/custom-skills/add-additional-locales-of-the-same-language-to-your-custom-skills.html

Or, adjust the settings of the Alexa app on your phone to use "English (United States)"

1. Open the Alexa app on your phone
2. Tap "Devices"
3. Tap "Echo & Alexa"
4. Tap "Alexa on this Phone"
5. Under "Language" choose "English (United States)"

10 |5000

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