Top Banner
Create Alexa Skills using IBM Watson Conversation and Apache OpenWhisk Niklas Heidloff Developer Advocate, IBM @nheidloff heidloff.net January 2018
28

Create Alexa Skills using IBM Watson Conversation and Apache OpenWhisk

Jan 22, 2018

Download

Software

Niklas Heidloff
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Create Alexa Skills using IBM Watson Conversation and Apache OpenWhisk

Create Alexa Skills using

IBM Watson Conversation and Apache OpenWhisk

Niklas Heidloff Developer Advocate, IBM

@nheidloff heidloff.net

January 2018

Page 2: Create Alexa Skills using IBM Watson Conversation and Apache OpenWhisk

Alexa, start Watson How is the weather? Berlin

Hello. How can I help you?

Please tell me your location.

Okay. I'll lookup the weather for Berlin... Looking up

weather information for Berlin... Light rain developing in the afternoon. Highs in the

upper 30s with temperatures nearly steady overnight.

Dem

o

@nheidloff

Page 3: Create Alexa Skills using IBM Watson Conversation and Apache OpenWhisk

Dem

o

Alexa Simulator

@nheidloff

Page 4: Create Alexa Skills using IBM Watson Conversation and Apache OpenWhisk

Dem

o

Alexa Application

@nheidloff

Page 5: Create Alexa Skills using IBM Watson Conversation and Apache OpenWhisk

Motivation of the Pattern

Motivation

•  Use Alexa to test conversations defined with Watson

•  Learn Apache OpenWhisk and Watson Conversation capabilities

•  Use Watson Conversation for rapid prototyping of conversations for Alexa skills

@nheidloff

Page 6: Create Alexa Skills using IBM Watson Conversation and Apache OpenWhisk

Architecture

Architecture

@nheidloff

Page 7: Create Alexa Skills using IBM Watson Conversation and Apache OpenWhisk

Amazon D

eveloper Console

Skill Deployment – Invocation Phrase

@nheidloff

Page 8: Create Alexa Skills using IBM Watson Conversation and Apache OpenWhisk

Amazon D

eveloper Console

Skill Deployment – Intents and Slots

@nheidloff

Page 9: Create Alexa Skills using IBM Watson Conversation and Apache OpenWhisk

Amazon D

eveloper Console

Skill Deployment – OpenWhisk URL

@nheidloff OpenWhisk URL: https://openwhisk.ng.bluemix.net/api/v1/web/niklas_heidloff%40de.ibm.com_demo/default/alexa-watson.json

Page 10: Create Alexa Skills using IBM Watson Conversation and Apache OpenWhisk

Amazon D

eveloper Console

Skill Deployment – SSL Settings

@nheidloff

Page 11: Create Alexa Skills using IBM Watson Conversation and Apache OpenWhisk

Amazon D

eveloper Console

Simulator

@nheidloff

Page 12: Create Alexa Skills using IBM Watson Conversation and Apache OpenWhisk

Amazon D

eveloper Console

Simulator

@nheidloff

Page 13: Create Alexa Skills using IBM Watson Conversation and Apache OpenWhisk

Amazon D

eveloper Console

Simulator

@nheidloff

Page 14: Create Alexa Skills using IBM Watson Conversation and Apache OpenWhisk

Watson Conversation

Intents

@nheidloff

Page 15: Create Alexa Skills using IBM Watson Conversation and Apache OpenWhisk

Watson Conversation

Weather Intent

@nheidloff

Page 16: Create Alexa Skills using IBM Watson Conversation and Apache OpenWhisk

Watson Conversation

Entities

@nheidloff

Page 17: Create Alexa Skills using IBM Watson Conversation and Apache OpenWhisk

Watson Conversation

Location Entity

@nheidloff

Page 18: Create Alexa Skills using IBM Watson Conversation and Apache OpenWhisk

Watson Conversation

Dialog – Greetings Node

@nheidloff

Page 19: Create Alexa Skills using IBM Watson Conversation and Apache OpenWhisk

Watson Conversation

Dialog – Weather Node

@nheidloff

Page 20: Create Alexa Skills using IBM Watson Conversation and Apache OpenWhisk

IBM Cloud Functions

OpenWhisk Function Parameters

@nheidloff

Page 21: Create Alexa Skills using IBM Watson Conversation and Apache OpenWhisk

IBM Cloud Functions

OpenWhisk Function Web URL

@nheidloff Web URL: https://openwhisk.ng.bluemix.net/api/v1/web/niklas_heidloff%40de.ibm.com_demo/default/alexa-watson.json

Page 22: Create Alexa Skills using IBM Watson Conversation and Apache OpenWhisk

OpenW

hisk Function

OpenWhisk Function – Main

@nheidloff

Page 23: Create Alexa Skills using IBM Watson Conversation and Apache OpenWhisk

OpenW

hisk Function

OpenWhisk Function – Initialize Clients

@nheidloff

Page 24: Create Alexa Skills using IBM Watson Conversation and Apache OpenWhisk

OpenW

hisk Function

OpenWhisk Function – Handle Session Context

@nheidloff

Page 25: Create Alexa Skills using IBM Watson Conversation and Apache OpenWhisk

OpenW

hisk Function

OpenWhisk Function – Send Message to Watson

@nheidloff

Page 26: Create Alexa Skills using IBM Watson Conversation and Apache OpenWhisk

OpenW

hisk Function

OpenWhisk Function – Handle Action

@nheidloff

Page 27: Create Alexa Skills using IBM Watson Conversation and Apache OpenWhisk

OpenW

hisk Function

OpenWhisk Function – Send Response to User

@nheidloff

Page 28: Create Alexa Skills using IBM Watson Conversation and Apache OpenWhisk

Resources

Resources

•  https://github.com/IBM/alexa-skill-watson-conversation •  https://developer.ibm.com/code/patterns

•  https://www.ibm.com/cloud •  https://www.ibm.com/watson/services/conversation •  https://www.ibm.com/cloud/functions

•  https://developer.amazon.com/edw/home.html#/skills •  https://alexa.amazon.de •  https://echosim.io/welcome

@nheidloff