Bot框架常见问题解答(http://docs.botframework.com/faq/#what-does-the-bot-builder-sdk-provide-to-developers-how-does-it-work)表明Bot Builder SDK允许开发人员构建"FormFlow"对话框以帮助处理棘手的问题,例如多转和消歧,但我只能找到C#文档中讨论的FormFlow.
可以使用Node.js SDK构建FormFlow对话框吗?如果是这样,有人可以指点我的文件吗?非常感谢.
我在botframework中创建了一个表单流.我想更改确认选项,默认情况下需要"是"和"否".但我想让它继续'是',即使用户输入'OK','Ya','是'等我怎么能添加确认选项
我正在通过使用FormFlow构建机器人来构建Coratana技能.我使用LUIS检测我的意图和实体,并将实体传递给我的FormFlow对话框.如果未填写一个或多个FormFlow字段,FormFlow对话框将提示用户填写缺少的信息,但不会说出此提示,仅显示在cortana屏幕上.FormFlow有没有办法说出提示?
在下面显示的屏幕截图中,提示"你需要机场班车吗?" 刚刚显示而没有说出来:
我的formFlow定义如下所示:
[Serializable]
public class HotelsQuery
{
[Prompt("Please enter your {&}")]
[Optional]
public string Destination { get; set; }
[Prompt("Near which Airport")]
[Optional]
public string AirportCode { get; set; }
[Prompt("Do you need airport shuttle?")]
public string DoYouNeedAirportShutle { get; set; }
}
Run Code Online (Sandbox Code Playgroud) 我想绕过像这样定义的表单流中的最后一个确认步骤
new FormBuilder<WizardResult>()
.Confirm("No verification will be shown", state => false)
.Message("Form Test")
.OnCompletion(processOrder)
.Build();
Run Code Online (Sandbox Code Playgroud)
根据这篇文章, 这可以通过处理程序进行确认来完成,但是在我的情况下,仍然需要确认...
我想念什么?
任何人都可以解释我什么时候使用Dialogs比FormFlow更好?在我的情况下,我没有提供很多选项供用户选择(比如Sandwich bot示例),但我会有很多逻辑.例如:如果用户说了什么,我正在通过LUIS模型分析他的答案,然后调用一个特定的方法.根据用户说的我需要调用不同的方法.
我正在使用Microsoft bot框架创建一个机器人来询问用户然后理解答案.在bot框架中使用FormFlow API对用户进行询问并检索答案.以下是表单流的代码:
public enum Genders { none, Male, Female, Other};
[Serializable]
public class RegisterPatientForm
{
[Prompt("What is the patient`s name?")]
public string person_name;
[Prompt("What is the patients gender? {||}")]
public Genders gender;
[Prompt("What is the patients phone number?")]
[Pattern(@"(<Undefined control sequence>\d)?\s*\d{3}(-|\s*)\d{4}")]
public string phone_number;
[Prompt("What is the patients Date of birth?")]
public DateTime DOB;
[Prompt("What is the patients CNIC number?")]
public string cnic;
public static IForm<RegisterPatientForm> BuildForm()
{
OnCompletionAsyncDelegate<RegisterPatientForm> processHotelsSearch = async (context, state) =>
{
await context.PostAsync($"Patient {state.person_name} …Run Code Online (Sandbox Code Playgroud) 我正在使用MS bot框架,我无法找到表单流中的枚举选项的自定义消息.我尝试过提示属性,但它不起作用.
我想要的是:bot将为用户显示如下选项:
1)是的,我想成为DayNinja!
2)不,我不想解锁流量来实现我的目标.
3)稍后,我将从基础开始
现在,我得到的是:"是","否","后来"
任何帮助将不胜感激谢谢!

botframework ×7
formflow ×7
c# ×5
azure ×1
azure-language-understanding ×1
dialog ×1
node.js ×1