🕒 ~ 15 minutes
You're almost ready to make the first voice command. At this stage you're acting as any end user that is installing the skill. You'll be going through the same experience.
There are several ways to interact with Alexa:
- Using the
Test
tab on the page you set up the Amazon Alexa Skill. - Or via https://echosim.io/ (requires a microphone)
-
- iOS - Install Reverb for Amazon Alexa
- Android - Install Reverb for Amazon Alexa
Once you open the mobile app use the access credentials provided during the lab to login.
-
This is out of scope for this lab.
Open the browser to: https://alexa.amazon.com .
Use the same credentials used to setup the Amazon Alexa skill.
On the left side menu click on Skills
, then click Your skills
link on top of the page. You should see a list with your skills. Click on Adobe Analytics skill
to open it.
The first thing end users should see after installing this skill is a screen telling them that Account Linking is required.
Click on Enable
button and login using an Adobe ID.The browser should redirect you now to Adobe's login page.
You should use the Adobe ID provided during the lab.
Once login is successful with Adobe, Alexa should confirm it with a message similar to the one in the screenshot below.
To complete this section move on to Exercise 1.
In this exercise we will configure Alexa to Respond back with "Hello" followed by your name after the skill is launched.
Using the browser open exercises/exercise-1/alexa-skill.js
file in your github fork and click the pencil icon to edit it. If you are using the CLI open this file in a text editor.
Add code to handle new sessions requests. A LaunchRequest
is an object that represents that a user made a request to an Alexa skill, but did not provide a specific intent.
// Create default handlers
var newSessionHandlers = {
'LaunchRequest': function () {
//Skill was launched
//Say Hello!
this.emit(':tell', "Hello NAME");
}
};
In the main function register the newSessionHandlers
with the Alexa SDK
alexaSDK.registerHandlers(newSessionHandlers);
Commit changes back to github, either using the browser or the git CLI.
Make sure the manifest.yaml
file has the location field set to:
location: exercises/exercise-1/alexa-skill.js
Invoke your skill.
-
You
: "Alexa, ask Adobe Analytics" -
Alexa
: "Welcome to Adobe Analytics.. Which report suite would you like to use? Summit Demo 2017, Template Report Suite"