【问题标题】:Gupshup NLP Code template with Wit.ai带有 Wit.ai 的 Gupshup NLP 代码模板
【发布时间】:2017-10-08 17:39:00
【问题描述】:

我想知道为什么这个模板还有一个最近被弃用的方法,并且在二月份将不再使用:

    var witContext = {};
    witClient.runActions(sessionId, event.message, witContext, (e, context1) => {
        if (e) {
            console.log('Oops! Got an error: ' + e);
            return;
        }
        context.console.log('Yay, got Wit.ai response: ' + JSON.stringify(data));
        //context.sendResponse('No keyword found : '+event.message); 
    });

我们如何在这个推荐的模板/message()方法中使用?

【问题讨论】:

    标签: javascript wit.ai gupshup


    【解决方案1】:

    由于 wit.ai 正在关闭机器人引擎,因此没有必要使用模板。我们 Gupshup 将删除该模板,并允许将任何带有 wit.ai 模板的旧机器人迁移到我们新的 IDE 机器人构建器,您可以在其中轻松地进行迁移,如 here 所述

    到目前为止,您可以使用post 中建议的方法。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-01-31
      • 2016-01-05
      • 1970-01-01
      • 1970-01-01
      • 2016-09-06
      • 2014-07-22
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多