botframework

BotFramework - Repeat last message using c#

流过昼夜 提交于 2020-01-06 06:08:50
问题 I'm building a bot using Microsoft Bot Framework using C#. I'm controlling my flow using Dialogs, and using quick replies as buttons, they dissapear when a new message is sent. I also created a global command to help the user. When the user types "help" the bot will give some information about what it can do. The problem is that if the user asks for help the quick replies will dissapear and the user might not know how to continue the dialog. I was wondering if there is any way to repeat the

User and Bot messages appear on same side of chat container

☆樱花仙子☆ 提交于 2020-01-06 06:01:08
问题 I built a QnA Maker and integrated it via Direct Line in my Website using BotFramework-WebChat for styling. Messages of the user and the bot are appearing at the same side of the chat container. I can't figure why. This is how it currently looks like: This is the code I'm using: <script> const styleSet = window.WebChat.createStyleSet({ bubbleFromUserBackground: 'rgba(227, 227, 227, .1)', hideUploadButton: true, botAvatarInitials: 'WD', sendTypingIndicator: true, userAvatarInitials: 'you' });

How to message back in an OpenUrl Card Action?

有些话、适合烂在心里 提交于 2020-01-06 05:57:20
问题 I am sending a cardAction with openURL where a user is supposed to click the button, follow instructions from said URL, and then report back the data. I would like a message displayed when the user clicks on the button, which is also when the URL is opened. From what I have tested, I can only either ImBack or OpenUrl. Is there a way to do both in one CardAction? var card = new SigninCard() { Buttons = new List<CardAction>() { new CardAction() { Title = "Open a URL", Type = ActionTypes.OpenUrl

How to message back in an OpenUrl Card Action?

谁说胖子不能爱 提交于 2020-01-06 05:57:12
问题 I am sending a cardAction with openURL where a user is supposed to click the button, follow instructions from said URL, and then report back the data. I would like a message displayed when the user clicks on the button, which is also when the URL is opened. From what I have tested, I can only either ImBack or OpenUrl. Is there a way to do both in one CardAction? var card = new SigninCard() { Buttons = new List<CardAction>() { new CardAction() { Title = "Open a URL", Type = ActionTypes.OpenUrl

Getting DialogSet.add(): Invalid dialog being added when testing

…衆ロ難τιáo~ 提交于 2020-01-06 05:47:11
问题 I'm trying to build some tests for my bot dialogs. I'm using the same test code (and modified test data) with two different bots with the identical dialog names. As such, the test.js file is the same for both bots. However, when I try to run my tests via Mocha on the second bot, I am getting an Error: DialogSet.add(): Invalid dialog being added. message for each test. This does not happen with my first bot. I even tried replacing the dialog file in the second bot with the one from the

QnA maker bot Not responding in MS Teams

别等时光非礼了梦想. 提交于 2020-01-06 05:42:06
问题 We recently added a QnA Maker Bot to MS Teams and got it to Deploy on the Azurewebsites.net/api. Unfortunately in MS Teams when you direct message the bot it is not responding at all. We checked the logs and are not getting any errors either. Any Idea where we need to check next? Thank you, M 回答1: I had exactly this problem, and it was because I was trying to hit the bot directly rather than creating a Teams App first. You will need to install App Studio from the Apps blade on the left if you

Programmatically sending a message to a bot in Microsoft Teams

会有一股神秘感。 提交于 2020-01-06 05:09:10
问题 I have created a proactive bot that basically asks certain questions to a user when a user starts conversation with the bot. The bot is deployed in Microsoft Teams environment. Is there any way that i can send automated message to a bot in a channel? I know messages can be sent using powershell by utilizing webhook url exposed by a particular team or using MS Flow. But I want to mention bot (e.g. @mybothandle) in the message so the bot starts asking questions by itself than requiring the user

botframework confirm dialog, send message as user

余生长醉 提交于 2020-01-06 04:33:23
问题 I have created a confirm dialog where the user can select yes/no private async Task Confirm(IDialogContext context, IAwaitable<bool> result) { var res= await result; await context.PostAsync(res? "Proceed" : "Ok then"); if (res) { ...... } } If the user selects Yes he will receive the message "Proceed" At the same time (again if "res" is true), i want to send a specific message to the bot without appearing in the conversation. Is there a way to send a custom message back to the bot when user

Is there a way to proactively end a prompt, i.e with a timer or event, from the WaterfallStepContext in the Microsoft Bot Framework

无人久伴 提交于 2020-01-06 04:31:14
问题 From what I see, in the nodejs framework, I notice you can't prompt a user within a dialogflow dialog and retrieve the that prompt within the same dialog function... I may be wrong about that. Either way, you can return prompt and retrieve it in the next dialog flow. Is there a way to cut off the awaiting prompt for user input and end or resume an activity of the dialog? I would like to cut the prompt off at a certain point, ideally on a time basis. 回答1: This is possible thru using a

Attribute 'luismodel' is not valid on this declaration type

佐手、 提交于 2020-01-06 02:38:07
问题 I am trying to get a pretty basic bot done using the botbuilder Botframework. the problem is luis.ai integration. I have used the luis.ai with a .js file but when I am trying to reference from my c# project, I am getting the error in the title. using System; using System.Linq; using System.Net; using System.Net.Http; using System.Threading.Tasks; // using System.Web.Http; // using System.Web.Http.Description; // using System.Collections.Generic; // using Microsoft.Bot.Connector; using