Tag: botframework botbuilder

Microsoft Bot使用FormFlow从用户接收附件

我正在使用FormFlow设计一个Bot,其中一个输入将要求用户附加文件以继续进行。 我可以在下面看到链接地址类似的问题。 https://github.com/Microsoft/BotBuilder/issues/570 链接中提供的解决方案是使用自定义IRecognizer或如下所示 a)将其放入未暴露给FormFlow的私有字段/属性中。 b)将其作为暴露于forms流的字段的值。 c)使用private属性动态生成允许在它们之间进行选择的字段。 我对Bot框架很天真。 是否有任何示例在使用FormFlow从客户接收附件时实现此目的 。 下面是我的代码片段 enter code here [Serializable] public class DocBot { [Prompt(“What’s your name?”)] public string Name { get; set; } [Prompt(“Hey {&} , Choose the options below? {||}”)] public Service? shaun; [Prompt(“Attach the Document required for further processing?”)] public string Document { get; set; } — […]