【问题标题】:[BotFramework][Cortana] How does a user send Attachments to the Bot within Cortana?[BotFramework][Cortana] 用户如何在 Cortana 中向 Bot 发送附件?
【发布时间】:2018-08-11 12:24:35
【问题描述】:

我创建了一个具有 Cortana 技能的聊天机器人(Microsoft Botframework),我试图提示用户上传附件。

提示要求用户按指定上传文件(代码如下),但我看不到在 Cortana 中上传文件的可能性。有没有办法使这项工作?非常感谢!

    var dialog = new PromptDialog.PromptAttachment("Please upload the sick 
    note you received from your doctor.", "Sorry, I didn't get the document. 
    Try again please.", 2);
    context.Call(dialog,this.uploadAttachmentResumeAfter);

【问题讨论】:

  • 我对 Cortana 技能的体验是它们相当有限。您是否尝试过拖放文件?
  • 我没试过,但我在 github 上看到了 send/receive sn-ps。做他们的工作?您唯一需要注意的是 deviceInfo 和检查屏幕。

标签: c# attachment cortana


【解决方案1】:

Cortana 技能工具包目前不支持通过 Cortana 上传文件。但是,您可以通过 deep linking 解决此问题 - 在您的应用中添加支持 html 表单文件上传的功能,并按照上述文档中的步骤调用它。

希望这会有所帮助。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-03-06
    • 1970-01-01
    • 2017-08-29
    • 2019-02-26
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多