简体   繁体   中英

ibm watson webhook without ibm cloud function

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM