简体   繁体   English

没有 ibm 云功能的 ibm watson webhook

[英]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.请问是否可以在 IBM Watson webhook 中使用特定的 rest API,而不使用 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.我想用 nodeJs 开发一个 rest API 并将其公开以用于 webhook 调用 Url(IBM Assistant) 听听我做了什么:我尝试使用与我可以运行的内容相同的内容,我在我的服务器 nodeJS 中公开了它,但它不起作用。

Please have you an example.请给你一个例子。

See this overview page in the documentation of IBM Watson Assistant on where you can use webhooks .请参阅IBM Watson Assistant 文档中的概述页面,了解可以在何处使用 webhooks Initially, some years back, Watson Assistant / Watson Conversation only allowed webhooks based on IBM Cloud Functions.最初,几年前,Watson Assistant/Watson Conversation 只允许基于 IBM Cloud Functions 的 webhook。 But that has changed long ago.但这在很久以前就已经改变了。

Thus, you can configure webhooks that are not based on Cloud Functions.因此,您可以配置不基于 Cloud Functions 的 Webhook。 For dialog skills, the requirements are shown here :对于对话技能, 要求如下所示

  • The call must be a POST HTTP request.调用必须是 POST HTTP 请求。
  • The request body must be a JSON object (Content-Type: application/json).请求正文必须是 JSON 对象(内容类型:application/json)。
  • The response must be a JSON object (Accept: application/json).响应必须是 JSON 对象(接受:application/json)。
  • The call must return in 8 seconds or less.调用必须在 8 秒或更短的时间内返回。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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