question

RSD avatar image
RSD asked

Amazon Alexa for searching a database

Hey Guys,

I just started out with Alexa Skills Kit, AWS, Lambda and all that sweet stuff.
I understand the basics for now (Intent - Utterance - Response).
But now I want to do the following:
I want to create a database (DynamoDB?) where a key matches a single value, for e.g.: Name - Address.
Now I want to build a skill where I can ask "Alexa, what is the Adress of {Name}" and vice versa.

I am not sure how to build the model (slots or not?) and how to establish a connection between lambda and dynamoDB. And lately how to search for a value in that DB.
I do not get the part where Alexa distiguishes the different slot values and searches for them in the database. In sql that would be a basic command.

Thanks a lot for the help.

(If I missed a thread about this topic, feel free to notice me)

alexa skills kitslotsutterancesdynamodb
10 |5000

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

Hi RSD. The slots will be passed through in the request. Most of the samples at github.com/alexa feature the usage of slots, so you should be able to see how to parse them. There are numerous getting started guides for DynamoDB which should cover how to put and get items out of DynamoDB. Make sure you assign a role to your lambda function with adequate access! https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/GettingStarted.html

10 |5000

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