botframework

Using multiple StrictFilters in QnA Maker

浪子不回头ぞ 提交于 2020-05-15 08:46:46
问题 I'm looking to use the StrictFilter function of Microsoft QnA Maker, to pass in multiple strict filters, but to treat them as filterA OR filterB. It appears that the strict filters are treated as filterA AND filterB. Is there any way to change them to "OR"? https://docs.microsoft.com/sl-si/azure/cognitive-services/qnamaker/how-to/metadata-generateanswer-usage It looks like ultimately it's querying Azure search, generating an "filterA AND filterB" - would querying Azure Search directly rather

How to add emoji to response from Bot Framework from WebChat?

吃可爱长大的小学妹 提交于 2020-05-15 08:35:09
问题 I am trying to add emojis to web chat response from the bot. I have tried markdown but that doesn't seem to work. What would be the best way to include emojis in the response for a WebChat? 回答1: I haven't received a response to my comment yet, but to help others I hope to share what I've discovered so far. To get emoji to work, you can use Unicode emoji for web chat. If you are creating the bot in C#, it is important to note that Unicode is denoted through an escape sequence. I edited my bot

How to add emoji to response from Bot Framework from WebChat?

て烟熏妆下的殇ゞ 提交于 2020-05-15 08:35:06
问题 I am trying to add emojis to web chat response from the bot. I have tried markdown but that doesn't seem to work. What would be the best way to include emojis in the response for a WebChat? 回答1: I haven't received a response to my comment yet, but to help others I hope to share what I've discovered so far. To get emoji to work, you can use Unicode emoji for web chat. If you are creating the bot in C#, it is important to note that Unicode is denoted through an escape sequence. I edited my bot

No such host is known —> System.Net.Http.HttpRequestException:

孤者浪人 提交于 2020-05-15 07:51:43
问题 I am developing bot solution, in which I am making REST call to get some details from other server. In local host my code is working fine, but after publishing the code in Azure I am getting the below error: System.Net.WebException: No such host is known No such host is known —> System.Net.Http.HttpRequestException: No such host is known —> System.Net.Sockets.SocketException: No such host is known I am using HttpWebRequest option. May I know what could be the reason? 回答1: I'm not sure the

How to return simple html response with MessagingExtensionActionResponse for a Teams Bot

爷,独闯天下 提交于 2020-05-14 03:50:06
问题 protected override Task<MessagingExtensionActionResponse> OnTeamsMessagingExtensionSubmitActionAsync( ITurnContext<IInvokeActivity> turnContext, MessagingExtensionAction action, CancellationToken cancellationToken) { return Task.FromResult(new MessagingExtensionActionResponse { ComposeExtension = new MessagingExtensionResult { Type = "message", Text ="<div><pre>Hello</pre></div>" } }); } I dont want a hero card that takes up space, just simple plain HTML response like the example above, but i

How to return simple html response with MessagingExtensionActionResponse for a Teams Bot

左心房为你撑大大i 提交于 2020-05-14 03:49:00
问题 protected override Task<MessagingExtensionActionResponse> OnTeamsMessagingExtensionSubmitActionAsync( ITurnContext<IInvokeActivity> turnContext, MessagingExtensionAction action, CancellationToken cancellationToken) { return Task.FromResult(new MessagingExtensionActionResponse { ComposeExtension = new MessagingExtensionResult { Type = "message", Text ="<div><pre>Hello</pre></div>" } }); } I dont want a hero card that takes up space, just simple plain HTML response like the example above, but i

how to set a dialog as the welcome message in bot framework v4

假如想象 提交于 2020-05-13 14:28:06
问题 Welcome messages are cool , but you don't necessarily need them . In my case i have multiple dialog's , with a MainDialog which is suppose to trigger other dialog's . The issue i am having is ( using bot emulator) that the user has to type something before the main dialog is triggered . cant we trigger a dialog when members are added ? Thanks for reading through :).Here is my entire class : this bot code , derived from the richcardsbot sample here : using System.Collections.Generic; using

Sending Proactive Messages from Azure functions to botservice - node

泄露秘密 提交于 2020-05-12 09:11:20
问题 I am using botframework v4, but coming over from v3, I have not found any documentation that is similar to the code I use below but for v4, regarding sending proactive messages from Azure Function App Below is the code I previously used but am having trouble adapting: var builder = require('botbuilder'); // setup bot credentials var connector = new builder.ChatConnector({ appId: process.env.MICROSOFT_APP_ID, appPassword: process.env.MICROSOFT_APP_PASSWORD }); module.exports = function

Automatically Bot display rating card after few seconds to take user feedback

丶灬走出姿态 提交于 2020-05-08 17:31:25
问题 I have a bot made using framework v4 in c#. I want that my bot take user feedback once the bot goes idle, or in the case user doesn't responded to bot.I have made my card but not getting any logic to implement above mention feature in my bot. I am also attaching the code of card i made. Also the image of my card. Can any look into it and help me out with this implementation. enter image description here { "type": "AdaptiveCard", "body": [ { "type": "TextBlock", "size": "Medium", "weight":

How to work properly with advanced Adaptive Cards?

一笑奈何 提交于 2020-04-29 03:39:06
问题 Multiple question 1. Building Adaptive Cards dynamically I'm creating an Order confirm card where there's an entry for every product and quantity. There's also a button to delete the entry and another button to modify its quantity. The amount of products displayed will vary based on the amount of Product objects I've stored in a list. The card is a JSON template without any products that I want to be able to modify through my code (add the product columns, the buttons, their respective