简体   繁体   English

带有Wit.ai的Gupshup NLP代码模板

[英]Gupshup NLP Code template with Wit.ai

I'm wondering why this template has still a method which has been deprecated recently and will be no longer used in February: 我想知道为什么该模板仍然具有最近不推荐使用的方法,并且将在二月份不再使用:

    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); 
    });

How can we use in this template/message() method which is recommended? 我们如何在推荐的template / message()方法中使用它?

As wit.ai is shutting down the bot engine there is no point of having the template. 由于wit.ai正在关闭机器人引擎,因此没有模板的意义。 We at Gupshup will be removing the template and will allow migration of any old bot with wit.ai template to our new IDE bot builder where you can easily do the migration as explained here Gupshup的我们将删除模板,并允许将所有带有wit.ai模板的旧机器人迁移到我们的新IDE机器人生成器中,您可以在此处轻松进行迁移,如此处所述

As of now, you can use the suggested approach in this post . 截至目前,您可以使用此建议的做法

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

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