botframework

In which file I insert the sample code from the Microsoft documentation of the Azure Bot Service?

China☆狼群 提交于 2020-03-26 02:37:31
问题 I'm starting some practices in which I have been assigned to create a ChatBot in a technical support website. I downloaded the template locally in C # but reading the documentation, to generate greetings, put buttons, .... I do not understand it well, I do not know where to put the examples of code that come from example, come on, I'm done a mess. This is my first real job, I have only developed very small Web applications in Java, so if someone can guide me it would be wonderful. 回答1: I

MS Bot Framework pass the values from server code (C# ) to front end code (JavaScript)

元气小坏坏 提交于 2020-03-25 16:02:13
问题 I've been using MS bot framework - Chat bot in my project and I'm using QnAMaker in the back end for my chat bot, which is running in direct line bot channel. On page load using JavaScript front end code, i'm sending some values say ABC to the bot (c# code - server hosted) via createStore method, after asking the question the bot will start querying it in the qnamaker using ABC as strict filters. After sometime, In one some scenario, i will give input to BOT and change the values as XYZ . up

How to perform Send 'Typing indicator in Botframework v4 chat application using React.js?

点点圈 提交于 2020-03-24 09:42:26
问题 I'm building a chat application using botframework v4 with React.js as front-end and .net core as back-end to generate token. I want to implement "Typing.." indicator to my chat using react. Tried using window.WebChat.renderWebChat({ directLine: window.WebChat.createDirectLine({ token }), sendTypingIndicator: true, }, document.getElementById('webchat')); as mentioned in https://github.com/microsoft/BotFramework-WebChat/tree/master/samples/05.custom-components/b.send-typing-indicator but it

Issues with suggestion list in botframework Webchat React

筅森魡賤 提交于 2020-03-23 12:02:44
问题 I just added autosuggestion/autocomplete function in my bot-framework web chat(v-4) using react.js. But there are some issues i need to fix; 1.) While getting the suggestions i want to make the words which i type into the webchat to be Bold in the resulting suggestion list. I did that but the problem i'm facing now is that its only making the first letter as bold(as you can see in the image) i want to make it bold even if its inside a sentance. 2.) When i select an option from the suggestion

Issues with suggestion list in botframework Webchat React

被刻印的时光 ゝ 提交于 2020-03-23 12:02:09
问题 I just added autosuggestion/autocomplete function in my bot-framework web chat(v-4) using react.js. But there are some issues i need to fix; 1.) While getting the suggestions i want to make the words which i type into the webchat to be Bold in the resulting suggestion list. I did that but the problem i'm facing now is that its only making the first letter as bold(as you can see in the image) i want to make it bold even if its inside a sentance. 2.) When i select an option from the suggestion

How do I return a Typing activity from my v4 Bot

十年热恋 提交于 2020-03-23 11:38:03
问题 I'm trying to add a Typing activity to a long-running action in my bot, but I keep getting a "BadGateway" error. Most of the samples I've found seem to be for bot framework v3, so the types or methods don't appear any more, and I've tried a few options for v4 (using C#), like the following: await turnContext.SendActivityAsync(new Activity() { Type = ActivityTypes.Typing }); or var typingActivity = new Activity() { Type = ActivityTypes.Typing //RelatesTo = turnContext.Activity };

How do I return a Typing activity from my v4 Bot

我只是一个虾纸丫 提交于 2020-03-23 11:34:31
问题 I'm trying to add a Typing activity to a long-running action in my bot, but I keep getting a "BadGateway" error. Most of the samples I've found seem to be for bot framework v3, so the types or methods don't appear any more, and I've tried a few options for v4 (using C#), like the following: await turnContext.SendActivityAsync(new Activity() { Type = ActivityTypes.Typing }); or var typingActivity = new Activity() { Type = ActivityTypes.Typing //RelatesTo = turnContext.Activity };

Starting A Dialog From From A Proactive Message

…衆ロ難τιáo~ 提交于 2020-03-21 01:54:28
问题 I'm new to the Bot Framework so I'm sorry if this is basic, but I'm trying to send a Proactive message to the user start a conversation. I'm using the below sample: https://github.com/microsoft/BotBuilder-Samples/tree/master/samples/csharp_dotnetcore/16.proactive-messages This works perfectly but what I'd like to do is start a dialog from this point instead of just sending back some text to the user. Is this possible? Here is the code from the sample [Route("api/notify")] [ApiController]

Starting A Dialog From From A Proactive Message

点点圈 提交于 2020-03-21 01:54:06
问题 I'm new to the Bot Framework so I'm sorry if this is basic, but I'm trying to send a Proactive message to the user start a conversation. I'm using the below sample: https://github.com/microsoft/BotBuilder-Samples/tree/master/samples/csharp_dotnetcore/16.proactive-messages This works perfectly but what I'd like to do is start a dialog from this point instead of just sending back some text to the user. Is this possible? Here is the code from the sample [Route("api/notify")] [ApiController]

How to add a mention in Teams alongside an adaptive card using Bot Framework

只愿长相守 提交于 2020-03-05 06:04:44
问题 I'm trying to send an activity with an adaptive card attachment and include a mention to the user who created the post. From reading online I found you can't currently include mentions in adaptive cards. Is there a way to mention someone when sending the activity, for example in another attachment?. I have tried setting the activity.Text = mention, this works however it creates two posts, the first with the mention and then another post with the adaptive card as a separate message. I feel