In the first step of this guide, we built the Voice User Interface (VUI) for our Alexa skill. On this page, we will be exploring the Alexa-Hosted code editor, and deploying our code to enable testing.
- For details on what the Alexa-Hosted skills service provides, open this page in a new tab.
-
Within your skill in the developer console, click to the Code tab at the top of the page. You should see folders and files within the left panel, and the index.js file opened in the main panel. This index.js file is the main code file for the skill. There is also a file called package.json. We will be updating both these files next.
-
Click into the index.js file, Select-All the code, and delete it.
-
From the Github project folders (above), locate and open the file /lambda/custom/index.js.
-
Click the "Raw" button just above the code, and Select-All and copy the code. Return to the Alexa skill console and paste this into the index.js file you had previously cleared.
-
Repeat these steps for the package.json file: Copy the contents of /lambda/custom/package.json, and paste them over the package.json file in your skill.
-
Select the Save button, then select Deploy. This will deploy your code into a Lambda function that is automatically managed for you by the Alexa-Hosted service.
-
At the bottom left corner of the page, notice the link to Logs: Amazon CloudWatch. CloudWatch is the logging service.