我正在使用Skype进行Microsoft bot-builder调用,并在Node.JS应用程序上创建了一个应用程序。所有基本功能都运行正常,但有一种方案可以询问用户输入并存储用户已回答的内容,但没有先前的选择。请检查以下代码:
function (session) {
session.send("Welcome to the dinner reservation.Please tell ur name ?");
},
function (session, results) {
console.log("result---->"+JSON.stringify(results));
}
我试图捕获我在session.send中提出问题的用户结果。但是我得到的是{"resumed":0}
in日志
你试过以下吗?
编辑:我没有注意到它,但你只是发送一条消息,你应该做的是提醒用户他/她的名字。请尝试以下方法:
function (session) {
builder.Prompts.text("Welcome to the dinner reservation.Please tell ur name ?");
},
function (session, results) {
console.log("result---->" + results.response);
}