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.
Demo
@nheidloff
Demo Alexa Simulator
@nheidloff
Demo Alexa Application
@nheidloff
Motivation of the PatternMotivation
•  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
AmazonDeveloperConsole Skill Deployment – Invocation Phrase
@nheidloff
AmazonDeveloperConsole Skill Deployment – Intents and Slots
@nheidloff
AmazonDeveloperConsole 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
AmazonDeveloperConsole Skill Deployment – SSL Settings
@nheidloff
AmazonDeveloperConsole Simulator
@nheidloff
AmazonDeveloperConsole Simulator
@nheidloff
AmazonDeveloperConsole Simulator
@nheidloff
WatsonConversation Intents
@nheidloff
WatsonConversation Weather Intent
@nheidloff
WatsonConversation Entities
@nheidloff
WatsonConversation Location Entity
@nheidloff
WatsonConversation Dialog – Greetings Node
@nheidloff
WatsonConversation Dialog – Weather Node
@nheidloff
IBMCloudFunctions OpenWhisk Function Parameters
@nheidloff
IBMCloudFunctions 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
OpenWhiskFunction OpenWhisk Function – Main
@nheidloff
OpenWhiskFunction OpenWhisk Function – Initialize Clients
@nheidloff
OpenWhiskFunction OpenWhisk Function – Handle Session Context
@nheidloff
OpenWhiskFunction OpenWhisk Function – Send Message to Watson
@nheidloff
OpenWhiskFunction OpenWhisk Function – Handle Action
@nheidloff
OpenWhiskFunction OpenWhisk Function – Send Response to User
@nheidloff
ResourcesResources
•  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

Create Alexa Skills using IBM Watson Conversation and Apache OpenWhisk