Create Lambda Function - 1

9 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
€46.40
List Price:  €64.96
You save:  €18.56
£39.83
List Price:  £55.77
You save:  £15.93
CA$68.34
List Price:  CA$95.68
You save:  CA$27.34
A$75.73
List Price:  A$106.02
You save:  A$30.29
S$67.43
List Price:  S$94.41
You save:  S$26.98
HK$390.55
List Price:  HK$546.80
You save:  HK$156.25
CHF 45.24
List Price:  CHF 63.34
You save:  CHF 18.10
NOK kr543.62
List Price:  NOK kr761.11
You save:  NOK kr217.49
DKK kr346.42
List Price:  DKK kr485.02
You save:  DKK kr138.59
NZ$83.15
List Price:  NZ$116.42
You save:  NZ$33.26
د.إ183.60
List Price:  د.إ257.06
You save:  د.إ73.45
৳5,471.12
List Price:  ৳7,660.01
You save:  ৳2,188.88
₹4,168.17
List Price:  ₹5,835.78
You save:  ₹1,667.60
RM236.95
List Price:  RM331.75
You save:  RM94.80
₦61,737.65
List Price:  ₦86,437.65
You save:  ₦24,700
₨13,868
List Price:  ₨19,416.31
You save:  ₨5,548.31
฿1,837.56
List Price:  ฿2,572.74
You save:  ฿735.17
₺1,617.36
List Price:  ₺2,264.43
You save:  ₺647.07
B$254.77
List Price:  B$356.70
You save:  B$101.93
R925.26
List Price:  R1,295.44
You save:  R370.18
Лв90.75
List Price:  Лв127.05
You save:  Лв36.30
₩67,788.68
List Price:  ₩94,909.58
You save:  ₩27,120.90
₪185.35
List Price:  ₪259.50
You save:  ₪74.15
₱2,852.60
List Price:  ₱3,993.87
You save:  ₱1,141.27
¥7,651.21
List Price:  ¥10,712.31
You save:  ¥3,061.10
MX$848.45
List Price:  MX$1,187.89
You save:  MX$339.44
QR181.83
List Price:  QR254.57
You save:  QR72.74
P679.12
List Price:  P950.82
You save:  P271.70
KSh6,605.16
List Price:  KSh9,247.76
You save:  KSh2,642.59
E£2,394.23
List Price:  E£3,352.12
You save:  E£957.88
ብር2,861.57
List Price:  ብር4,006.43
You save:  ብር1,144.85
Kz41,791.64
List Price:  Kz58,511.64
You save:  Kz16,720
CLP$47,104.79
List Price:  CLP$65,950.47
You save:  CLP$18,845.68
CN¥361.78
List Price:  CN¥506.53
You save:  CN¥144.74
RD$2,896.80
List Price:  RD$4,055.76
You save:  RD$1,158.95
DA6,728.30
List Price:  DA9,420.16
You save:  DA2,691.86
FJ$112.64
List Price:  FJ$157.70
You save:  FJ$45.06
Q387.49
List Price:  Q542.52
You save:  Q155.02
GY$10,429.06
List Price:  GY$14,601.52
You save:  GY$4,172.46
ISK kr6,974.05
List Price:  ISK kr9,764.23
You save:  ISK kr2,790.17
DH502.81
List Price:  DH703.98
You save:  DH201.16
L883.05
List Price:  L1,236.34
You save:  L353.29
ден2,855.97
List Price:  ден3,998.59
You save:  ден1,142.61
MOP$401.24
List Price:  MOP$561.77
You save:  MOP$160.53
N$922.79
List Price:  N$1,291.99
You save:  N$369.19
C$1,835.15
List Price:  C$2,569.36
You save:  C$734.20
रु6,656.11
List Price:  रु9,319.09
You save:  रु2,662.97
S/186.09
List Price:  S/260.54
You save:  S/74.45
K192.70
List Price:  K269.79
You save:  K77.09
SAR187.49
List Price:  SAR262.50
You save:  SAR75.01
ZK1,344.69
List Price:  ZK1,882.68
You save:  ZK537.98
L230.99
List Price:  L323.40
You save:  L92.41
Kč1,163.34
List Price:  Kč1,628.77
You save:  Kč465.43
Ft18,074.53
List Price:  Ft25,305.79
You save:  Ft7,231.25
SEK kr539.27
List Price:  SEK kr755.02
You save:  SEK kr215.75
ARS$43,903.33
List Price:  ARS$61,468.17
You save:  ARS$17,564.84
Bs345.22
List Price:  Bs483.33
You save:  Bs138.11
COP$194,164.52
List Price:  COP$271,845.87
You save:  COP$77,681.34
₡25,478.72
List Price:  ₡35,672.25
You save:  ₡10,193.53
L1,231.47
List Price:  L1,724.16
You save:  L492.69
₲373,200.63
List Price:  ₲522,510.75
You save:  ₲149,310.11
$U1,910.59
List Price:  $U2,674.97
You save:  $U764.38
zł200.97
List Price:  zł281.37
You save:  zł80.40
Already have an account? Log In

Transcript

Hello guys, welcome to the eighth session of create custom Alexa skill using AWS lambda function tutorials for beginners. In this session we will create a first lambda function and configure it in our scheme. To create lambda function, we need to log into Amazon's AWS account. If you're not subscribed, then you can create a new account which will provide free subscription for five months. I have already signed up so locked in it is a list of services that AWS provides. We are interested to create lambda function.

So search for it is a list of lambda function. It will be displayed if you have created and note that when you are creating lambda function for alaka then we must need to check region in which this function will be backup currently is supposed only for regions which includes Tokyo, Ireland, Northern Virginia and Oregon. I'm using North Virginia click on Create function button. We can create a function from scratch or import it from blueprints are repository. There are several lambda function blueprints for Alex x's, such as facts, keys, previous keys, smartphones, etc. to this city will create from scratch so selected that is great my first lambda for the function name.

Lambda function supports various runtime platforms such as dotnet, Java, node Python. throughout this series, we will use node j. If you're new, then you don't have any rules to select create a custom rules I'm going to create a new rule with named lambda basic execution. Click on allow button. here it will automatically select the role that we have created. Click on Create button in our lambda function created, scroll down.

Here is a code editor for editing our function. Then there are three different ways to generate a response to an existing first is simply generate a JSON object as per response we have seen in the previous session. Second is using Alexa SDK version one will see it in this session 15 and 16 and 30 is using Except for a CD, that is version two, along with some components of Alexa and throughout this series, I will use all three ways but the primary focus will be on using Alexa core SDK. In this couple of sessions, I will generate a response object manually. In next session, I will use Alexa SDK for the year I'm going to create a new function which will generate simple response object from a text message that passes a parameter. Here I'm going to create a new function which will generate simple response object from a text message that passes in a parameter.

Like function make response. It takes the text as a parameter that is create response object that any value in version within output speech I'm going to read in plain text that is fast parameters and after this response of a session will not end. And within this once in handler we will get context and callback along with event. for testing purposes, I'm going to call this function regardless request type are intended. for sending the response to Alexa, we need to use context dot succeed method. Within that I'm calling make response method and pass Hello from lambda and pure function.

Here is Aaron for our function here and stands for Amazon resource name it uses to identify function uniquely. It includes the region and function name copy Open Alexa console, click on the endpoint. We can provide endpoint from AWS lambda, or HTTPS website. Here we have created lambda function so select AWS lambda as you can use different endpoints for a different region based our lambda a Rn in default area. Here is a scale ID copy. In Configuration tab, expand designer and Alexis Katie's cooldown and paste your skill ID here.

Click on Add and fill function and so save and point, no tax. We must need to add Alex's key in the trigger before saving endpoint. Here we have successfully added Alexis skill key in our lambda functions trigger means this lambda function will invoke only it is receiving a request from Alexis. Let us open test. If you open this first time, then you need to enable. Come here we can write text or use microphone to start a conversation.

That is right first demo that is invocation name. Here we got response. Here is a JSON data that will send to our lambda function and here is a Jason written by generated over lambda. For testing we need to add this event in lambda function for testing. This is an example of non structural copy this request change In data expand drop down click on configure test event. Here we will create a new test event with name launch request and based Jason data here click on Create button to create that event.

That is saying hello. Here it says request how Hello intent harpeth is Jason competition. Again create a new event with name Hello event and basic code click on Create button to create test event. Notice My name is Neela it says request from display greeting intent. It also includes person name in this slot. Copy this Jason create a new event, display greetings and paste the code that is 10 I like Python.

It sends a request to favorite language intent. It includes language name in this loss or gain copy Jason create a new event, favorite language and basic code, click on Create button. In this session, we have created lambda function integrated with Alexis key and added this event for all In next session, we'll update our lambda function to response as per request. 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.