【问题标题】:Cortana Skill - Start Cortana by triggerCortana 技能 - 通过触发器启动 Cortana
【发布时间】:2018-03-06 09:22:18
【问题描述】:

我不希望我的 cortana 技能在特定时间间隔后询问用户。

如果我使用机器人模拟器测试此代码,它可以工作(机器人响应在间隔结束后响应我)。

但如果我部署机器人,cortana 不会在间隔后启动:

  • 我和小娜交谈
  • 我关上窗户
  • 我等待间隔
  • 什么都没有发生(cortana 间隔结束后不会自动显示)。

错在哪里? (我使用了这里的 simpleSendMessage 但添加了一行:https://github.com/Microsoft/BotBuilder-Samples/tree/master/CSharp/core-proactiveMessages

在 ConversationStarter 中,.Speak 行是新的:

        message.From = botAccount;
        message.Recipient = userAccount;
        message.Conversation = new ConversationAccount(id: conversationId);
        message.Text = "Hello, this is a notification";
        message.Speak = "Hello, this is a notification";
        message.Locale = "en-Us";
        await connector.Conversations.SendToConversationAsync((Activity)message);

编辑:似乎以任何方式都是可能的。但是怎么做?还是此功能仅适用于原生 cortana?

【问题讨论】:

  • Cortana 频道目前不支持主动消息
  • 谢谢。可悲的是我可能已经知道了:(

标签: azure bots botframework cortana cortana-skills-kit


【解决方案1】:

正如 Jason 所说,Cortana 频道目前不支持主动消息。这是一个非常需要的功能,也是我们待办事项的一部分——尽管我没有任何具体的时间表可以分享。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-29
    • 2017-10-15
    相关资源
    最近更新 更多