question

newuser-64a41272-f9be-4eda-8d84-71a5b807515c avatar image

Cant access dynamodb with the help of intent handlers in ask-sdk

Hi there,

i am developing my first alexa skill.I created the intents in developer console and i created the lambda with the help of ask-sdk ,it is working.But i want to access my dynamo db and i am doing with the help of aws-sdk's get method but i am unable to invoke the method from the intent handler.I am calling the method from one of the intent handler but it is giving no response.Kindly help me.I have been stuck hard to this

snap.pngsnap5.png

alexa skills kitlambdaawsdynamodbASK Toolkit for Visual Studio Code
snap.png (21.2 KiB)
snap5.png (24.6 KiB)
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.

sungyoo avatar image
sungyoo answered

Hey there it seems like you are also doing a check to see if the request is a type of 'check' in your second condition in your canHandle. I don't think we have a request type called 'check'. You did correctly on checking for IntentRequest though! Did you mean to check for other request type such as LaunchRequest instead?

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.

newuser-64a41272-f9be-4eda-8d84-71a5b807515c avatar image
newuser-64a41272-f9be-4eda-8d84-71a5b807515c answered

snap2.pngsnap3.png'Check' is the name of my intent and i have to access dynamodb from that intent.This is giving error.Kindly help me to that


snap2.png (21.9 KiB)
snap3.png (23.3 KiB)
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.

sungyoo avatar image
sungyoo answered

Hey there, so when you are checking for the intent name, I think you are doing it wrong.

Refer to this sample since you should be checking for request.intent.name instead of request.type!

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.