botframework

Error handling in Bot Framework dialogs

纵然是瞬间 提交于 2019-12-13 02:32:20
问题 How can I catch all exceptions in dialogs? Is there something like ASP.NET Exception Filter? I want to send different messages to user depending on exception type. Thank you 回答1: You are right about the fact that you can use ExceptionFilter . You just have to do the following: Create your ExceptionFilter class, for example to force the tracking of the exception in Application Insights (or in your case handle specific exception types): using Microsoft.ApplicationInsights; using System.Net.Http

Can you use multiple intents in one triggerAction? [LUIS]

北城余情 提交于 2019-12-13 02:32:06
问题 I have a QnA bot that should work for a couple of intents and I want to trigger it for None intent, Greeting because I have some unique responses, and IT help because that's the main purpose of the QnA bot. Do I have to copy paste my entire dialog and just change the intent name or can I list multiple intents for the matches method? bot.dialog('QnABotRequest', function (session, args) { //Code }).triggerAction({ matches: 'Greeting' | 'None' | 'IT Help' //Maybe something like this ? }); https:

Connecting a MS bot framework user to someone on Skype

六眼飞鱼酱① 提交于 2019-12-13 01:40:34
问题 I've made a chat bot using Microsoft Bot Framework which answers a user's questions. When the bot is unable to answer the user's questions, I want to be able to redirect the user question to a customer rep on Skype. The person on Skype will see the messages posted by the user, and his answers will be sent to the user. I need some advice on how to achieve this connection (from user<->chatbot<->SkypecustomerRep) Edit: I'm toying with the idea of using the commands in http://docs.botframework

Is there any management API for Bot Framework

断了今生、忘了曾经 提交于 2019-12-13 00:23:11
问题 I am looking to build a multi Chanel bot service in my application using Microsoft Bot Framework, I cant find out the documentation for managing creating bot app, adding and updating channels in bot. is it possible to do those activities programmatically? 回答1: No, it's not possible. There is no API for that yet. 回答2: I found the solution. There is an API Microsoft Azure Management Bot Service Library Install-Package Microsoft.Azure.Management.BotService -Version 0.9.1-preview public string

How to toubleshoot configuration of MS Bot Framework and Skype For Business

老子叫甜甜 提交于 2019-12-13 00:10:26
问题 We are having a bot based on MS Bot Framework. It communicates as desired via DirectLine, Email, Facebook Messenger, Skype and WebChat. We tried also to configure Skype for Business (hereinafter SfB) but without success. 1) We have enabled 2) Tenant Administrator of our SfB has followed instructions: "Learn how" using brand new user id. Our SfB comes with Office 365 subscription. The result in powershell looked similar to: RunspaceId : aaaaaaaa-aaaa-1234-1234-1a1111aaaaaa FriendlyName : Our

After call context.Forward, how to get the item in child dialog

蹲街弑〆低调 提交于 2019-12-12 23:38:46
问题 I have one main Luis dialog, i need to Forward CheckListDialog and pass the 'luisresult.entity' to CheckListDialog, code like below: context.Forward(new CheckListDialog(), this.DialogResumeAfter,result.Entities,CancellationToken.None); Question: In "CheckListDialog", how can i get the "result.Entities" ? PS: There is another solution to get the Luisresult.Entities, context.Call(new CheckListDialog(result.Entities), this.DialogResumeAfter); This solution is working, but I would like to know

Character codes (locale) for text in Skype for Business Bot

ぐ巨炮叔叔 提交于 2019-12-12 23:19:42
问题 I'm developing a Bot for a Brazilian customer. I've been translating all text to this language, and it seems it's done. I deployed the bot to be used as a web chat, using direct line, and it's running fine. Last days I was working to have it running on SFB, and today I finally complete it. However, I found some issues with "special" characters (from the brazilian alphabet), and I'm unable to fix it. I mean, by instance, instead of showing "Não está cadastrado seu e-mail." it's showing "N?o

how to intercept messages in botbuilder sdk v4 using middleware?

徘徊边缘 提交于 2019-12-12 23:05:48
问题 I have a Bot running on botbuilder V3 where I am using a middleware explained here to intercept the messages. bot.use({ botbuilder: function (session, next) { myMiddleware.logIncomingMessage(session, next); }, send: function (event, next) { myMiddleware.logOutgoingMessage(event, next); } }) We are planning to migrate on sdk v4 so looking for similar capabilities in sdk v4. Are there any ? I didn't find example on this page. 回答1: The BotAdapter base class exposes the use method to register

Node.js: How to send a direct message in Slack with MS Bot Framework?

孤街醉人 提交于 2019-12-12 22:46:56
问题 I am trying to create a Slack bot using LUIS where when the bot sees a greeting in a channel it is added to, it sends a direct message to the user that sent the greeting. I have looked at Issue #431 and wrote a bot. Here is my code: var builder = require('botbuilder'); var restify = require('restify'); // Setup Restify Server var server = restify.createServer(); server.listen(process.env.port || process.env.PORT || 3978, function () { console.log("%s listening to %s", server.name, server.url)

Bot Dialog not waiting

点点圈 提交于 2019-12-12 20:23:19
问题 Bot Info SDK Platform: .NET SDK Version: 3.15.3 Active Channels: N/A Deployment Environment: local development with Emulator Issue Description When testing with the emulator, the program does not wait for user input on the context.Wait nor when forwarding the dialog to another dialog. Code Example My MessagesController fires a greet when a new user is connected: if(activity.Type == ActivityTypes.ConversationUpdate) { if (activity.MembersAdded.Count == 1) { await Conversation.SendAsync