azure-bot-service

How to measure Latency between client to bot and bot to Client (Not response time)

一世执手 提交于 2020-01-16 17:03:24
问题 I have created at bot for slack and deployed to Azure, for this bot I have a client requirement, My client wants to measure latency between slack client to Bot and vice a versa. i.e only time taken by user message to reach to Bot and time taken by response to slack user. I have been exploring Azure application insight from three days , but could not find any helpful service. I can not change my bot code , Is there any way in azure service by that I can monitor latency? 来源: https:/

What is the token returned by the Azure Bot?

别说谁变了你拦得住时间么 提交于 2020-01-16 09:36:11
问题 I followed this tutorial to setup authentication for my Azure Bot. After a successful login, it returns a token for me. I believe that this is an authorization token to access the Microsoft Graph API. If I wanted to use this same token to exchange for an access token to another web application, is that possible? And how would I be able to do it? 回答1: Yes, it's possilbe. You should be able to get a refresh_token after the authorization is finished. Use this refresh_token to exchange another

C# Bot Framework V4 Get UserInput

╄→гoц情女王★ 提交于 2020-01-06 07:08:52
问题 How do we get user type input in Bot Framework V4? in V3 i used the below PromptDialog.Text(context, UserResponse, "Your Name Please?"); Once user enters the name , userResponse will get called. I am not able to find somthing like this in V4 , only waterflowdialog i am finding , Since i am using lots of PromptDialog.Text in my project it is not feasible to create dialogs for all text Any Tips would be much appreciated. 回答1: You don't need to add waterfall dialogs all over the place just to

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' });

Authorization for Microsoft App ID xxx failed with status code Forbidden and reason phrase 'Forbidden'

。_饼干妹妹 提交于 2019-12-31 05:34:11
问题 My bot keeps failing on the following line of code with the error in Skype, WebChat, and FB chat. I've tried entering the MS App ID and password via the app settings and the web.config. This works fine in the emulator without any errors. When I ran remote debugging I found that this fails on Webchat, Skype, and FB messenger at this line of code: await connector.Conversations.ReplyToActivityAsync(reply1); My bot is integrated with SmartThings so the smart accessories are turning on and off as

Can i modify Azure Bot at VS? [closed]

旧城冷巷雨未停 提交于 2019-12-31 05:22:22
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . I created a bot, using the Azure Bot Service and a dialog template. Then, I downloaded the code:here zip file Here's some of the code: [Serializable] public class BasicForm { [Prompt("Hi! What is your {&}?")] public string Name { get; set; } [Prompt("Please select your favorite car type {||}")] public CarOptions

UserProfile state persistent between users in bot v4

让人想犯罪 __ 提交于 2019-12-30 13:40:26
问题 When I have two instances of the bot (can be two emulator windows or two browsers if I deploy the bot to Azure), the first name enter is persistent for all the other instances. Instance One https://imgur.com/sa7AAbn Instance Two https://imgur.com/Ct20HE5 I would expect the bot ask my name again, it does not matter how many instances I have, the bot always identifies me as Brunno. How can I change this behavior? I followed this tutorial 回答1: If you don't provide WebChat with a unique id for

Azure bot from template with credentials doesn't work in emulator

霸气de小男生 提交于 2019-12-25 08:39:09
问题 My bot just refuses to work with my appId & password on my dev emulator so tried to do the simplest version possible. This is what I tried: Create a new blank project from the newly copied "Bot Application" template. Update all the NuGet packages (except System.IdentityModel.Tokens.Jwt v5.1.4 as it isn't compatible with Microsoft.Bot.Builder 3.8.1). Test it in the emulator with no AppId / Password and it works. Update the AppId & Password in the web.config. Run the emulator again and enter

How to track what users ask on chatbot ( Microsoft Azure Bot Service )

无人久伴 提交于 2019-12-25 01:25:08
问题 I am using Microsoft Bot Service and chatbot will be implemented on company website. For the beginning, I want to store every message users ask. How to do that? 回答1: I found out how to do that. You need to log in to your Azure Bot account. After that navigate to the Dashboard and look at botname-ai file. Click that and find Analyze option. Then run this command and thats it: requests | where url endswith "generateAnswer" | project timestamp, id, name, resultCode, duration | parse name with *"

Using MS Teams as Channel: Authentification Dialog (GetTokenDialog class from Microsoft.Bot.Builder.Dialogs) doesn't popup

巧了我就是萌 提交于 2019-12-25 00:16:44
问题 How can I use the new authentification feature in Bot Builder with MS Teams? There seems to be an issue with Teams (see Login user with MS Teams bot or https://github.com/Microsoft/BotBuilder/issues/2104), seems if this is not considered in GetTokenDialog? Is there any chance to get around this? 回答1: Just found the reason why it won't work with Teams. In method Microsoft.Bot.Connector.Activity.CreateOAuthReplyAsync(), Parameter asSignInCard has to be set to True for MSTeams, then, the line