【发布时间】:2017-12-08 08:40:10
【问题描述】:
使用 node.js 构建一个与 Luis 通信的聊天机器人。
if (!meeting.datetimeV2) {
builder.Prompts.text(session, 'what is the date and time');
} else {
next();
}
这部分应该以日期和时间码为例:
Bot: what is the date and time?
human:today at 5pm
我遇到的问题是机器人正在接受像jagahgdh 或ffffff 这样的输入,基本上是因为使用builder.Prompts.text 而预期的巨魔答案,但我的问题是我该如何解决这个问题并确保用户输入的格式正确,否则我将不得不再次提出相同的问题。
【问题讨论】:
标签: node.js chatbot azure-language-understanding