简体   繁体   English

带有node.js的Microsoft bot框架以及数据库和流

[英]microsoft bot framework with node.js plus database and flow

I would like to create a BOT with Microsoft Bot Framework and I would like to ask few questions about that. 我想用Microsoft Bot Framework创建一个BOT,并且我想问几个问题。

First question is : What is the best way to designe database if I have questions connected with already defined answers. 第一个问题是:如果我对已经定义好的答案有疑问,那么设计数据库的最佳方法是什么?

For example: Question -> Answer(2 defined options) -> Question -> Answer(4 defined options) -> Question -> Answer(3 defined options) ... End with some conclusion So 1 question can have few answers leading to different question. 例如:问题->答案(2个定义的选项)->问题->答案(4个定义的选项)->问题->答案(3个定义的选项)...以一些结论结尾所以1个问题可以导致很少的答案不同的问题。 (If you lead a person through some story). (如果您带领某人讲故事)。

And second questions is : How to make a good conversation flow in node.js with Question/Answer thing. 第二个问题是:如何使用Question / Answer在node.js中建立良好的对话流程。 If you can give me some sample code. 如果可以给我一些示例代码。

Thanks! 谢谢!

If your aim to achieve Question and Answer then I would suggest you the qnamaker Provided by Mircosoft. 如果您的目标是实现问答,那么我建议您由Mircosoft提供的qnamaker。

If you want to manage on database go with the NoSQL database (MongoDB) and internally you can directly search for the question and its answer. 如果要管理数据库,请使用NoSQL数据库(MongoDB),在内部可以直接搜索问题及其答案。

I would suggest go with qnamaker it will easiest way to do. 我建议与qnamaker一起使用将是最简单的方法。

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

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