0

I'm trying to build an IBM Chatbot using Watson Assistant and Node.js. First, to get familiar with the ecosystem tried to make a very simple chatbot based on the sample app text-bot-openwhisk:

https://github.com/watson-developer-cloud/text-bot-openwhisk

I managed to recreate the dialog flow, the necessary actions and cloud functions and deploy them to the cloud.

I tried to make programmatic calls from a dialog node based on this article:

https://console.bluemix.net/docs/services/conversation/dialog-actions.html#dialog-actions

Basically I tried to duplicate the getWeather.js action of the aforementioned sample app.

The problem is the main function of the action doesn't receive the conversation property, so the assert(params.conversation.context, 'params.conversation.context can not be null'); assertion always fires.

What should I change in order to receive the conversation params?

kissgab
  • 1
  • 1
  • default the context to `{}` ? – Simon O'Doherty Mar 29 '18 at 08:36
  • The real problem is that the `conversation` parameter is missing so the whole dialog flow is broken for this action. As far as I now this parameter should always be passed to the action, so something is wrong here :) – kissgab Apr 03 '18 at 07:32

0 Answers0