【发布时间】:2018-02-18 10:41:02
【问题描述】:
我正在尝试构建一个会话机器人。当我试图通过 next 传递响应时,它不会在下一个函数中反映出来。
bot.dialog('Barcode',
(session, args, next) => {
var intent = args.intent;
var id = builder.EntityRecognizer.findEntity(intent.entities, 'Report.Id');
if (id) {
next({ response: id.entity });
} else {
builder.Prompts.text(session, 'Please enter your id');
}
session.endDialog();
} ,
(session,results) => {
var id = results.response;
session.send(id.toString()); -- i want the value to be passed here
}
).triggerAction({
matches: 'Barcode'
})
【问题讨论】:
标签: botframework