如何在MS Bot Framework上做决策树? [英] How to do a decision tree on MS Bot Framework?

查看:64
本文介绍了如何在MS Bot Framework上做决策树?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为一级服务台构建一个机器人,例如:

I'm building a bot for a 1st level help desk, something like:

1)您喜欢哪个?产品,注册或查找商店? 2)您想了解什么产品?做X最好的产品?产品X的应用?在哪里购买产品X?

1) Which are do you like? Products, Registration or Find a store? 2) What you want to know about products? The best product to do X? The applications of product X? Where to buy product X?

我当时正在使用表单流,并在完成时调用或转发另一个流(所以我为每个流有一个类,并且有数千个)

I was doing using form flow and, on completion, call or forward another flow (so I have one class for each flow, and there are thousand of them)

问题是:转发流时,新流停止响应(执行提示,并且任何答案都会重新启动该流-即从不命中第二个流中的.OnCompletion = \

The problem is: when Forwarding a flow, the new flow stop responding (the prompt is executed, and any answer restart that flow - i.e. never hits .OnCompletion in the second flow =\

我想知道:在不构建Bot Framework之上的自定义状态机框架的情况下,构建复杂的多分支bot的最佳方法是什么?

I was wondering: which is the best way to build complex, multi-branches bots without building a custom state machine framework on top of Bot Framework?

推荐答案

也许看看对话框链 ...否则,也可以选择自定义路线(取决于树的深度).

Perhaps look at Dialog Chains ... else the custom route (depending on the depth of your tree) would be an option as well.

关于哪一个最好,我也希望得到这个答案……我们已经习惯了custom,但是希望其他人也能提供帮助.

As to which is best , I would too like that answer ... we've gone with custom , but would like other's input.

这篇关于如何在MS Bot Framework上做决策树?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆