Using Ask CLI & Alexa SDK

6 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
One-time Fee
$49.99
List Price:  $69.99
You save:  $20
€47.77
List Price:  €66.88
You save:  €19.11
£39.64
List Price:  £55.51
You save:  £15.86
CA$70.94
List Price:  CA$99.32
You save:  CA$28.38
A$78.59
List Price:  A$110.04
You save:  A$31.44
S$67.09
List Price:  S$93.93
You save:  S$26.84
HK$388.70
List Price:  HK$544.21
You save:  HK$155.51
CHF 45.01
List Price:  CHF 63.01
You save:  CHF 18
NOK kr556.49
List Price:  NOK kr779.13
You save:  NOK kr222.64
DKK kr356.31
List Price:  DKK kr498.87
You save:  DKK kr142.55
NZ$87.54
List Price:  NZ$122.57
You save:  NZ$35.02
د.إ183.61
List Price:  د.إ257.07
You save:  د.إ73.45
৳6,082.62
List Price:  ৳8,516.16
You save:  ৳2,433.53
₹4,345.36
List Price:  ₹6,083.86
You save:  ₹1,738.49
RM222.23
List Price:  RM311.14
You save:  RM88.91
₦75,492.39
List Price:  ₦105,695.39
You save:  ₦30,203
₨13,978.18
List Price:  ₨19,570.57
You save:  ₨5,592.39
฿1,684.21
List Price:  ฿2,358.03
You save:  ฿673.82
₺1,813.34
List Price:  ₺2,538.83
You save:  ₺725.48
B$286.22
List Price:  B$400.73
You save:  B$114.51
R918.92
List Price:  R1,286.57
You save:  R367.64
Лв93.45
List Price:  Лв130.83
You save:  Лв37.38
₩72,018.15
List Price:  ₩100,831.17
You save:  ₩28,813.02
₪178.28
List Price:  ₪249.61
You save:  ₪71.32
₱2,907.99
List Price:  ₱4,071.42
You save:  ₱1,163.43
¥7,590.87
List Price:  ¥10,627.83
You save:  ¥3,036.95
MX$1,012.87
List Price:  MX$1,418.09
You save:  MX$405.22
QR182.48
List Price:  QR255.49
You save:  QR73
P691.04
List Price:  P967.51
You save:  P276.47
KSh6,461.20
List Price:  KSh9,046.20
You save:  KSh2,585
E£2,529.99
List Price:  E£3,542.20
You save:  E£1,012.20
ብር6,426.16
List Price:  ብር8,997.14
You save:  ብር2,570.97
Kz45,590.88
List Price:  Kz63,830.88
You save:  Kz18,240
CLP$47,388.02
List Price:  CLP$66,347.02
You save:  CLP$18,959
CN¥363.92
List Price:  CN¥509.52
You save:  CN¥145.59
RD$3,107.31
List Price:  RD$4,350.49
You save:  RD$1,243.17
DA6,740.10
List Price:  DA9,436.68
You save:  DA2,696.58
FJ$114.89
List Price:  FJ$160.86
You save:  FJ$45.96
Q386.25
List Price:  Q540.79
You save:  Q154.53
GY$10,474.43
List Price:  GY$14,665.04
You save:  GY$4,190.61
ISK kr7,008.09
List Price:  ISK kr9,811.89
You save:  ISK kr2,803.80
DH498.75
List Price:  DH698.29
You save:  DH199.54
L932.39
List Price:  L1,305.42
You save:  L373.03
ден2,939.32
List Price:  ден4,115.28
You save:  ден1,175.96
MOP$401.15
List Price:  MOP$561.64
You save:  MOP$160.49
N$922.85
List Price:  N$1,292.07
You save:  N$369.21
C$1,842.14
List Price:  C$2,579.14
You save:  C$737
रु6,955.59
List Price:  रु9,738.38
You save:  रु2,782.79
S/185.20
List Price:  S/259.30
You save:  S/74.09
K201.36
List Price:  K281.92
You save:  K80.56
SAR187.48
List Price:  SAR262.49
You save:  SAR75.01
ZK1,408.06
List Price:  ZK1,971.40
You save:  ZK563.33
L237.76
List Price:  L332.89
You save:  L95.12
Kč1,197.96
List Price:  Kč1,677.24
You save:  Kč479.28
Ft19,190.82
List Price:  Ft26,868.69
You save:  Ft7,677.86
SEK kr535.66
List Price:  SEK kr749.97
You save:  SEK kr214.31
ARS$52,958.15
List Price:  ARS$74,145.65
You save:  ARS$21,187.50
Bs347.18
List Price:  Bs486.09
You save:  Bs138.90
COP$206,555.21
List Price:  COP$289,193.83
You save:  COP$82,638.61
₡25,356.42
List Price:  ₡35,501.02
You save:  ₡10,144.59
L1,276.31
List Price:  L1,786.93
You save:  L510.62
₲395,669.61
List Price:  ₲553,969.11
You save:  ₲158,299.50
$U2,162.01
List Price:  $U3,026.99
You save:  $U864.97
zł198.63
List Price:  zł278.10
You save:  zł79.46
Already have an account? Log In

Transcript

Hello guys, welcome to the 12th session of great custom Alexa skill using AWS lambda function tutorials for beginners. In this session we will see how to use ask CLA to create skill and lambda function. In previous session we have created skin using skip key and lambda function using AWS console. Amazon also provides the API to create or manage skill and lambda function directly from the terminal. For this, we need to use ask CLA. It provides some commands by node j s, so we need to install the node first.

We also need to install AWS Eli if you also want to deploy lambda from us daily. throughout this series, I will use Visual Studio code as a text editor. You can use different if you want, and preferring this because it has built in Terminal console so I don't need to open Command Prompt or terminal in different video. I have downloaded both CLA. Let us double click on AWS Eli to install it. I have already installed so cancel it.

After installing these we need to delete root access keys if you have for this open AWS console such Iam expand delete Select Continue expand access key and click on Create access key button. I have already created one so it displays it And I'm going to create a new one. Now we need to configure AWS CNI. For this open the terminal right AWS configure, it will ask for access keys basically pasted and also a secret key. You can skip other options to. Here we have configured AWS CNI.

After these you need to install Node for ask see like, if you have already installed then skip the step and install ask SDK globally. links for all installer or modules are available in resources. It will take some time to download dependent packages. After this, I'm restarting Visual Studio code. Now we need to configure as CLA. For that right ask and then it will ask to select profile.

I have created four to five different profiles, so they are listed here. If you're running the first time, then we need to create a new profile right name for new profile, then asked to choose AWS file for lambda, we need to select default. It will open the browser login and give required permissions. Here you can see that our new profile is created. To create new skill project we need to use ask new command. Then it will ask name that you want to use for skill.

We can also pass it as option for this command, right? Ask new skill name option and specify a name that you want to use. For scale, then we can optionally set mean for lambda function to use lambda name option, but you cannot use it when you are using template. Here it was initializing scale project and it was creating Amazon provides some templates that we can use while creating new skills such as fax, feed, grease, etc. If you want to use those templates, then you can write iphone iphone template and specify the name of the template that you want to use. Let us open this directory.

Here is a new folder with the name of the scheme. Let us expand folder name lambda within that it contains the index.js file that is opening Here is a JavaScript code that will deploy it in AWS lambda function. We will understand its structure and modify it in next session. package dot Jason file for the node. Here it includes a dependency for Alexa SDK. I'm using the latest version of ask CLA so it was added Alexa SDK core in studio version one.

Here is a model. It contains Jason for interaction model. As we have seen interaction model contains intense plots and utterances. If your scale supports multiple languages, then you can add new files with local name and scale the JSON file contains configuration for launch tab, enter description, example phrase now It also contains endpoint detail. Here we will use a lambda function. If your skill required any interface or permissions then it will be added here.

Let us see what we have learned in this session. To use s3 ally we need to install AWS CLA and no Gs. After these use ask any command to initialize your account. Use ask new command to create new skill, we need to pass key name and optional lamda name and we also saw directory structure of ask CLA and coding structure of lambda function. Thanks for watching this video. If you have any doubts, please feel free to contact me.

Have a nice day.

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.