- Clone the code into local repo.
- Open your favorite IDE and follow the below steps.
- cd [folder name].
- npm install.
- zip the contents. Note: Zip the folder contents, not the folder.
- Navigate to AWS Console
- Create a new Lambda function.
- Create a new function.
- Give it a name. 1. Use an existing role. 2. Select lambda_basic_execution from drop down. 3. Create Function.
- Now a blank new function is created for us. Click Add trigger.
- Select Alexa Skills kit from dropdown. and Disable Skill ID verification and Add.
- On lambda function page, scroll down select upload zip from the drop down and select the zip that was built in step 3.3.
- Create 2 Environment variable and leave it blank, we’ll get back to it later.
- username
- password
- APP_ID
- Increase the Timer under Basic Settings to 1min. This is to avoid timeouts during processing.
- Save.
- Copy the ARN in the top right to a notepad.
- Navigate to Speech Assets for code.
- Login to Developer Console.
- Click Developer console on top right and select Alexa Skills Kit by hovering on Alexa in the top ribbon.
- Click Create Skill, Give a Skill Name and leave the rest to default. Then you would be prompted to Choose a template, Leave it to default and Click Choose. A skill is created now.
- Select JSON Editor from the left ribbon.
- Copy the code from Step 1 and replace the JSON Editor Content with it. and change invocationName to your skill name.
- Click Save Model and the Build Model. Give it a minute to build.
- Once built Navigate to End Points from left menu. And Select AWS ARN radio.
- Copy *Your Skill ID *on a notepad.
- under Default Region, paste the ARN that you copied in previous section (Step 15).
We are done (Partially) building the skill.
- Navigate back to AWS Console. And let’s fill in the Environment variables that we created earlier.
- For APP_ID the value should be Your Skill ID you copied in the previous step.
- For username, password use your Salesforce credentials.
- Save the model.