2017-09-25 33 views
0

我不想让我的Cortana技能在特定的时间间隔后询问用户。Cortana Skill - 通过触发器启动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吗?

enter image description here

+0

Cortana频道当前不支持主动消息 – JasonSowers

+0

谢谢。可悲的是我可能知道它:( – sampa

回答

0

贾森提到的,柯塔娜通道目前不支持积极的消息。这是一个高度要求的功能,也是我们积压的一部分 - 虽然我没有任何具体的时间表来分享。