Learn
Creating Your Lambda function
Edit Lambda Function Code
The index.js file on the right contains the code from the Build Your First Alexa Skill course.
We will use this code to create our own function, but before we do that, let’s make it a bit more fun. Let’s edit the greetings that Alexa responds with when we say:
Alexa, open {YOUR-FIRST-NAME} {LAST-INITIAL}’s code academy
Alexa, tell {YOUR-FIRST-NAME} {LAST-INITIAL}’s code academy to say hello
Instructions
1.
In index.js, replace the greeting "Welcome to Codecademy"
with "NAME, welcome to Codecademy"
, where NAME
is your name.
Also replace the greeting "Hello, Codecademy"
with a message of your choice, perhaps including your name (e. g. "Hello, John"
). Feel free to get creative!