Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Building Alexa Skills With IBM Watson and OpenWhisk

DZone's Guide to

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.

· IoT Zone
Free Resource

Discover why Bluetooth mesh is the next evolution of IoT solutions. Download the mesh overview.

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.

alexa-watson-1

The next screenshot shows how the location is automatically used in the next ‘weather’ intent.

alexa-watson-2

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.

Take a deep dive into Bluetooth mesh. Read the tech overview and discover new IoT innovations.

Topics:
openwhisk ,alexa skills ,ibm watson ,iot

Published at DZone with permission of Niklas Heidloff, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}