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嗎?
Cortana頻道當前不支持主動消息 – JasonSowers
謝謝。可悲的是我可能知道它:( – sampa