Building Alexa Skills With IBM Watson and OpenWhisk
Check out this open source project that uses IBM Watson Conversation and OpenWhisk to efficiently create conversation flows for Alexa skills.
Join the DZone community and get the full member experience.Join For Free
i’ve open sourced a sample that shows how to build alexa skills via the serverless framework openwhisk and ibm watson conversation . the sample demonstrates how to define a conversation flow declaratively via watson conversation dialogs and it shows how to pass context between different intents.
here is a sample conversation flow:
- user: alexa, ask my skill what do you know about me
- alexa/watson: i don’t know anything about you. where do you live?
- user: berlin
- alexa/watson: now i know you live in berlin
- user: alexa, ask my skill what is the weather
- alexa/watson: looking up weather information for berlin …
the sample has been implemented via the new slots filling functionality in watson conversation. the screenshot shows how the entity (slot) ‘location’ is defined as mandatory and how the value is stored in a context variable.
the next screenshot shows how the location is automatically used in the next ‘weather’ intent.
to build your own alexa skills via openwhisk and watson, check out the instructions in the github project.
thanks a lot to my colleague ansgar schmidt for his help.
Published at DZone with permission of Niklas Heidloff, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.