Hello guys, welcome to the 15th session of create custom Alexa skill using AWS lambda function tutorial for beginners. In the previous session, we have used Alexa SDK code that is version two. In this session, we will use version one SDK. Amazon recently introduces version two SDK but still some of the features of version one is not covered in version two. In version two entire structure of creating and less as response printer change. If you're not interested in version one SDK, then you can skip a couple of sessions.
Let us switch to VS code, open terminal switch working directory to custom within lambda. Here we need to install asked SDK. We also need to use a version one adapter This package allows us to use version one method to use them in version two. I'm going to remove those unnecessary handlers from here. That is remain help intent handler. Create a new constant with name handler.
Here we will specify all of the handlers in JSON format. We need to write the intent name or request type followed by a function that will let us create for launch request that output speech tags in variable. Use this dot response dot suite to generate output speech in response, update text, use shoot and session method to set shoot and session value. And call this dot I made the response ready actually this conversion rates response Jason. Let us also create it for Hello intent use speak method use lists and method to set a read from text. It will also set false in showed an session called Emmet.
You can add all intent in this way if you want to add, but for now, I am not again writing the same thing. This module will export a function in which we will receive event context and callback create Alexander Use the register handlers method to register a handler that we have created. Because of this basically version two SDK with version one adapter we can also use version two handlers along with those handlers. For this use register v2 handler method and call execute method to start our Skill Builder. Let us remove this line. Here we have created an instance of the core so let us change it so important the one adductor open terminal, right as deploy iPhone t lambda Get our lambda deployed successfully let us switch to the browser sativa skin we got a new message from the Viva director.
Let us send help we got response as per we to handle. Now, let us see what we have learned in this session. In this session we have to install adapter for revision, then you speak listen and amic method to generate a response. We will see more methods of the response builder in next session. If you are not interested in these then you can skip it. Thanks for watching this video.
If you have any doubts Feel free to contact me Have a nice day.