Build your First Alexa Skill - Amazon S3Amazon+Alexa+Meet… · Alexa, ask “nonsmoker” “how...

Post on 23-Jul-2020

5 views 0 download

transcript

1

Build your First Alexa Skill

Alexa, What’s the WiFi info?WiFi Name: Betaworks1 - Guest WiFi Password: betaworks

2

Alexa Skill Terminology

Build your first Alexa Skill

Alexa, ask “nonsmoker” “how many days it’s been since I quit”

Invocation Name Intent

3

“Hello, World” Skill

Build your first Alexa Skill

Alexa, tell <your last name> to say hello world.

4

Alexa Skill Steps

Lambda Alexa Skills Portal

Test

Build your first Alexa Skill

Customize

5

bit.ly/alexaskill

Build your first Alexa Skill

6

Step 1: Lambda

Lambda

Build your first Alexa Skill

7

1a: Amazon Lambda Login

• Click Link 1

• Login or create an account with the same Amazon account that your Echo is linked to.

Build your first Alexa Skill

8

1b: Amazon Lambda Function

Build your first Alexa Skill

9

1c: Copy Source Code

• Click Link 2

• Copy all of the source code in the box

Build your first Alexa Skill

10

1d: Paste Source Code

Build your first Alexa Skill

11

1e: Set Execution Role

• Click “Role” dropdown

• Scroll dropdown menu to bottom

• Click “lambda_basic_execution”

Build your first Alexa Skill

12

1f: Finish Creating Function

Build your first Alexa Skill

13

1g: Set Event Source

Build your first Alexa Skill

14

Step 1 Done

Build your first Alexa Skill

15

Step 2: Amazon Skills Portal

Alexa Skills Portal

Build your first Alexa Skill

16

2a: Amazon Developer Login

Build your first Alexa Skill

• Click Link 3

• Login or create an account with the same Amazon account that your Echo is linked to.

17

2b: Navigate to Add New Skill

Build your first Alexa Skill

18

2c: Name and Invocation Name

Build your first Alexa Skill

19

2d: Interaction Model

Build your first Alexa Skill

20

2e: Copy Intent Schema

Build your first Alexa Skill

• Click Link 4

• Copy all of the text in the box

21

2f: Paste Intent Schema

Build your first Alexa Skill

22

2g: Copy Sample Utterances

Build your first Alexa Skill

• Click Link 5

• Copy all of the text in the box

23

2h: Paste Sample Utterances

Build your first Alexa Skill

24

2i: Configuration

Build your first Alexa Skill

25

2j: Copy ARN

Build your first Alexa Skill

26

2k: Paste ARN

Build your first Alexa Skill

27

Step 2 Done

Build your first Alexa Skill

28

Step 3: Amazon Skills Test

Build your first Alexa Skill

Test

29

3a: Service Simulator

Build your first Alexa Skill

Input

Output

30

3b: Test on Device

Build your first Alexa Skill

Alexa, tell <your last name> to say hello world.

31

Step 4: Customize

Build your first Alexa Skill

32

4a: Change “Sample Utterances”

Build your first Alexa Skill

• Go to “Interaction Model” in dev portal.

• In Sample Utterances, edit the words to the right of “TestIntent” with what you want to say (input).

33

4b: Change Lambda Output

Build your first Alexa Skill

• Go to “Code” tab in Lambda

• Scroll to line 104 and replace Hello, World with your output.

• Keep the quotes around your output

• Click “Save”.

• Test in Amazon Developer Portal.

34

Fin

Build your first Alexa Skill