ibm watson webhook without ibm cloud function

239 Views Asked by At

Please is it possible to use a specific rest API, in IBM Watson webhook, without using IBM Cloud Function. I want to develop a rest API with nodeJs and expose it to be used in webhook call Url(IBM Assistant) Hear what I have done: I tried to use the same content that I have in could function, i exposed it in my server nodeJS, but it doesn't work.

Please have you an example.

1

There are 1 best solutions below

1
data_henrik On BEST ANSWER

See this overview page in the documentation of IBM Watson Assistant on where you can use webhooks. Initially, some years back, Watson Assistant / Watson Conversation only allowed webhooks based on IBM Cloud Functions. But that has changed long ago.

Thus, you can configure webhooks that are not based on Cloud Functions. For dialog skills, the requirements are shown here:

  • The call must be a POST HTTP request.
  • The request body must be a JSON object (Content-Type: application/json).
  • The response must be a JSON object (Accept: application/json).
  • The call must return in 8 seconds or less.