Over a million developers have joined DZone.

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

Download The Comparative Guide to Rules Engines for IoT to learn what are the most common automation technologies used in the IoT domain for application development

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.

See how CEP engines, stream processing engines, flow based programming engines and other popular rule-based technologies perform against seven IoT-specific criteria.

openwhisk ,alexa skills ,ibm watson ,iot

Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

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

{{ parent.tldr }}

{{ parent.urlSource.name }}