botframework

MS Bot Framework VideoCard

隐身守侯 提交于 2019-12-12 02:18:19
问题 Can someone please explain how you use the MediaUrl for the VideoCard? I've tried just adding the video url to the CardMedia which loads the media player but I can't play the video. And whatever I try with MediaUrl I just get an error saying MediaUrl is not a funtion. var url = new MediaUrl("Test", "https://www.youtube.com/watch?v=0i4v0Texqco"); var vid = new builder.Message(session) .textFormat(builder.TextFormat.xml) .attachments([ new builder.MediaCard(session) .title("Test title") .media(

Begin Dialog with QnA Maker Bot Framework recognizer (Node JS)

拈花ヽ惹草 提交于 2019-12-12 02:08:14
问题 I was wondering if one can pass a "Welcome Message" on the beginning of a chat with a bot using QnA Maker recognizer without the model recognizing it as message to send to the model. I'm using the latest Node.js API. var intents = new builder_cognitiveservices.QnAMakerDialog({ recognizers: [recognizer], defaultMessage: 'Sorry. I didnt understand', qnaThreshold: 0.3} ); bot.dialog('/', [ function(session){ session.beginDialog('welcome'); }, function(session){ session.beginDialog('dialog'); } ]

What are options to prototype 'feedback' from the user after response in chatbot

匆匆过客 提交于 2019-12-12 01:24:46
问题 I am just thinking could I see what would be the options to prototype 'feedback' from the user after each response in my chatbot using Microsoft Bot Framework using C# . It is just like a "thumbs up/down" buttons after each response. I am not sure whether i can do it in c# using Microsoft Bot Framework but if the bot always accepted UP/DOWN as a potential feedback, I could store it somewhere next to the response. Can someone have any idea? 回答1: One way to present a Up/Down or Like/Dislike

how to restart a connection to the bot using sdk v4 for node js

岁酱吖の 提交于 2019-12-11 23:53:19
问题 I am developing a bot using sdk v4 for node js and i want to end the current conversation and start new convesation when user click on a button. I tried await this.conversationState.clear(turnContext) to clear conversation data but there is no change in conversation Id. please suggest how to trigger conversationUpdate activity to restart the connection to the bot. 回答1: Both the Bot Emulator and the Azure Portal Web Chat's contain a sort of restart button that clears the conversation history

What are the implications of setting application registration to “Accounts in any organizational directory”

寵の児 提交于 2019-12-11 20:01:36
问题 As part of the Virtual Assistant deployment documentation, it asks to set the application registration to allow Accounts in any organizational directory . However, it doesn't describe the implications are of this overlooked setting. For example, say we want this application to only be available to employees of a particular organization. Should we still set the app registration to Accounts in any organizational directory and then build authentication into the bot elsewhere? What if we are

Change the Css of the QnA Bot embedded as webchat

人盡茶涼 提交于 2019-12-11 19:27:24
问题 Hi I have embedded a QnA Bot using Web Chat. I need to change the CSS of the Chat window's header. I am embedding the bot as webchat in a ASP.net MVC application. I am using the iframe method to embed the bot in webchhat window. Using the iframe method how do i change the css. And also the default text from "Chat" to "Click to Ask a Question" I downloaded the botchat.css and botchat.js. I have included the css and js file in _Layout.cshtml. I changed the background color of the element ".wc

How to call Dialog class inside Luis Intent Block

☆樱花仙子☆ 提交于 2019-12-11 19:08:03
问题 I am using NLP Dispatch , through which i have a merged luis and QnA model, I am able to normally call and add my own logic inside top scoring intents block. Now i have a dialog class which i want to be called whenever a top scoring intent is being detected namespace Microsoft.BotBuilderSamples { public class DispatchBot : ActivityHandler { private ILogger<DispatchBot> _logger; private IBotServices _botServices; public DispatchBot(IBotServices botServices, ILogger<DispatchBot> logger) {

Ingtegrating LUIS with c# bot framework - ERROR

喜欢而已 提交于 2019-12-11 19:03:12
问题 I'm trying to integrate Luis.ai to C# bot framework. The code runs but when I send a message to the bot it shows this error: "sorry my bot code is having an issue" When it should reply depending on the entry using the intents, I only have 2 intents "None" and "perfil". This is my log: This is my class Perfil.cs: using Microsoft.Bot.Builder.Dialogs; using Microsoft.Bot.Builder.Luis; using Microsoft.Bot.Builder.Luis.Models; using System; using System.Collections.Generic; using System.Linq;

How to Add a scroll bar to an adaptive card

二次信任 提交于 2019-12-11 18:44:53
问题 I m showing a list of users in a card, can I add a scrollbar to the card so that it fits the screen size? I am currently using Adaptive card 1.0 and sending this card to MS Teams. 回答1: AdaptiveCards do not allow scrolling or paging. If you want to implement paging you could add a "next page" button to your card, when pressed you just update the card with the new list data. MS Teams allows you to update cards/message you already sent so you could send the first page and when a user clicks on

how to pass value from one WaterfallDialog to another WaterfallDialog in ComponentDialog

*爱你&永不变心* 提交于 2019-12-11 18:12:55
问题 bot framework v4 I have two WaterfallDialogs in ComponentDialog. I could store value like below in WaterfallDialogs step.values[currenctCategory] = result; but when i prompt another second WaterfallDialog from the first WaterfallDialog , i could not get the step.values[currenctCategory] in second WaterfallDialog 回答1: You need to use the State to store the intermediate values that you will need in any of the parent or child dialogs. In version 4 you can do that using the BotAccessors something