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

Create Alexa Skills using IBM Watson Conversation and Apache OpenWhisk

Embed Size (px)

Citation preview

Create Alexa Skills using

IBM Watson Conversation and Apache OpenWhisk

Niklas Heidloff Developer Advocate, IBM

@nheidloff heidloff.net

January 2018

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

Dem

o

Alexa Simulator

@nheidloff

Dem

o

Alexa Application

@nheidloff

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

Architecture

Architecture

@nheidloff

Amazon D

eveloper Console

Skill Deployment – Invocation Phrase

@nheidloff

Amazon D

eveloper Console

Skill Deployment – Intents and Slots

@nheidloff

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

Amazon D

eveloper Console

Skill Deployment – SSL Settings

@nheidloff

Amazon D

eveloper Console

Simulator

@nheidloff

Amazon D

eveloper Console

Simulator

@nheidloff

Amazon D

eveloper Console

Simulator

@nheidloff

Watson Conversation

Intents

@nheidloff

Watson Conversation

Weather Intent

@nheidloff

Watson Conversation

Entities

@nheidloff

Watson Conversation

Location Entity

@nheidloff

Watson Conversation

Dialog – Greetings Node

@nheidloff

Watson Conversation

Dialog – Weather Node

@nheidloff

IBM Cloud Functions

OpenWhisk Function Parameters

@nheidloff

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

OpenW

hisk Function

OpenWhisk Function – Main

@nheidloff

OpenW

hisk Function

OpenWhisk Function – Initialize Clients

@nheidloff

OpenW

hisk Function

OpenWhisk Function – Handle Session Context

@nheidloff

OpenW

hisk Function

OpenWhisk Function – Send Message to Watson

@nheidloff

OpenW

hisk Function

OpenWhisk Function – Handle Action

@nheidloff

OpenW

hisk Function

OpenWhisk Function – Send Response to User

@nheidloff

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