botframework

signin/verifyState is not invoked after notifySuccess

与世无争的帅哥 提交于 2020-03-04 15:33:31
问题 notifySuccess doesn't fire signin/veriyState event. My TeamsMessagingExtensionQuery handler returns something like this: ... return { composeExtension: { type: "auth", suggestedActions: { actions: [ { type: "openUrl", value: "https://something.com/login/", title: "Sign in to this app" } ] } } } as MessagingExtensionResponse; ... This response shows the searchCmd extension with a sign-in message correctly. On clicking the sign-in, the prompt shows the login page correctly as well, according to

How to Hide / Show the Sendbox whenever the bot replies with the suggested action

て烟熏妆下的殇ゞ 提交于 2020-03-04 05:05:58
问题 I'm using Azure Chat bot (v4 MS bot framework) and applied in Direct line channel, and also I'm sending suggestedActions on certain places, on such time i want to disable/hide the sendbox - the input text box Following is my full code at the front end. (async function bot() { const activityMiddleware = () => next => card => { const { activity: { suggestedActions } } = card; const toggleSendBoxEvent = new Event('ToggleSendBoxEvent') if (suggestedActions) { toggleSendBoxEvent.data = "none";

Luis training service seems to be completely down/failing and the error message resulting for that fact is completely unhelpful

空扰寡人 提交于 2020-03-03 07:30:47
问题 After a bout of repeated training and deleting patterns and intense scrutiny of what might be happening to our LUIS models, it seems as though Luis is completely down. Here is what is repeatedly happening when trying to train a LUIS model. The reason why I was questioning the error being something on our part is because of this previous stackoverflow QA on the subject. Also, this article. These previous reported instances of training failures do not address this issue but they seem closely

ChatBot retrieve data from SharePoint On Premise Issue

谁说我不能喝 提交于 2020-03-03 06:56:31
问题 I've developed a chatbot that communicates with SharePoint on Premise, When I run the chatbot in Emulator its work. But When I run at Web that hosted outside of SharePoint, it does not work. Herewith my screenshot of Error On Azure, From the result of Error is starting from XMLReader and SyndicationFeed Success in Local Emulator Herewith my Souce Code. private async Task ProcessRSSAsync(ITurnContext<IMessageActivity> turnContext, LuisResult luisResult, string intent, CancellationToken

ChatBot retrieve data from SharePoint On Premise Issue

为君一笑 提交于 2020-03-03 06:55:52
问题 I've developed a chatbot that communicates with SharePoint on Premise, When I run the chatbot in Emulator its work. But When I run at Web that hosted outside of SharePoint, it does not work. Herewith my screenshot of Error On Azure, From the result of Error is starting from XMLReader and SyndicationFeed Success in Local Emulator Herewith my Souce Code. private async Task ProcessRSSAsync(ITurnContext<IMessageActivity> turnContext, LuisResult luisResult, string intent, CancellationToken

How to Add filter on the REST API Query to view the answers from QnAmaker?

时光怂恿深爱的人放手 提交于 2020-03-03 06:26:12
问题 I'm using the following code in my chat bot (using v4 azure MS bot framework), to query the question and answers (Client side code - using plain JavaScript and J Query), function generateAnswer() { var question = { question: "will you marry me" } $.ajax({ type: "POST", url: "https://YourEndPointURL/qnamaker/knowledgebases/eb895acb-e034-4f7c-asda7c-1955458ecec6/generateAnswer&$filter=source eq 'Editorial'", data: JSON.stringify(question), beforeSend: function (xhr) { xhr.setRequestHeader(

How to Add filter on the REST API Query to view the answers from QnAmaker?

我与影子孤独终老i 提交于 2020-03-03 06:25:04
问题 I'm using the following code in my chat bot (using v4 azure MS bot framework), to query the question and answers (Client side code - using plain JavaScript and J Query), function generateAnswer() { var question = { question: "will you marry me" } $.ajax({ type: "POST", url: "https://YourEndPointURL/qnamaker/knowledgebases/eb895acb-e034-4f7c-asda7c-1955458ecec6/generateAnswer&$filter=source eq 'Editorial'", data: JSON.stringify(question), beforeSend: function (xhr) { xhr.setRequestHeader(

MS bot tested locally with postman

|▌冷眼眸甩不掉的悲伤 提交于 2020-03-02 07:41:48
问题 I was playing with Microsoft Bot Framework locally which works fine if I use MSFT bot emulator for testing (both in C# .Net Core and Node.js) but I cannot figure out how to test it using Postman api calls. Do I really need to register bot first at MSFT even when it is run locally to be able to get authentication ? 回答1: Normally, there is a Connector Service between the client and a bot. It is possible to bypass the connector services, and post directly to the bot but there are a few things to

How should a botframework webchat conversation be maintained for over an hour?

白昼怎懂夜的黑 提交于 2020-02-26 03:59:28
问题 I have looked through the documentation for botframework-webchat and have not been able to find any documentation on how conversations over 1 hour should be handled properly. This situation is most likely to occur if a web page is left idle in the background for an extended period of time. The directline connection is maintained as long as the webchat remains active on a web page. The problem occurs after a page refresh. The initial short term solution is to store the relevant conversation

How to handle user leaving conversation

自作多情 提交于 2020-02-26 03:59:08
问题 We have welcome examples using OnMembersAddedAsync method but no examples showing how to handle user leaving conversation. I tried to override OnMembersRemovedAsync but it does not seem to be invoked (at least when I use bot framework emulator). I need to do some cleanup at the event of user leaving/left conversation. An example or any tips would be appreciated. Update: I'm using C# and Bot framework v4 回答1: This is going to be channel specific as it is dependent on the channel providing a