botframework

Find Username of skype from Microsoft Bot Framework Channel

江枫思渺然 提交于 2019-12-18 01:05:32
问题 I have implemented bot application for Skype using Microsoft Bot Framework (version 3.0.0.59). I implemented how to retrieve the Skype Name & Id but I'm not being able to retrieve the username of the Skype account. How can I get username of my Skype account? 回答1: It's not possible. Since the v3 version of the API the user is now represented by a unique user ID per bot . This is to provide an extra layer of privacy to the users (pretty much like Facebook). In the From property of the

Find Username of skype from Microsoft Bot Framework Channel

血红的双手。 提交于 2019-12-18 01:05:19
问题 I have implemented bot application for Skype using Microsoft Bot Framework (version 3.0.0.59). I implemented how to retrieve the Skype Name & Id but I'm not being able to retrieve the username of the Skype account. How can I get username of my Skype account? 回答1: It's not possible. Since the v3 version of the API the user is now represented by a unique user ID per bot . This is to provide an extra layer of privacy to the users (pretty much like Facebook). In the From property of the

Can I add custom logic to a Bot Framework PromptDialog for handling invalid answers?

坚强是说给别人听的谎言 提交于 2019-12-17 21:36:20
问题 In my Bot Framework project, I'm using a PromptDialog to show a predefined set of valid options, with the below code: var pickListOptions = new List<Option>(); pickListOptions.AddRange( _currentQuestion.validValues.Select(x => Option.CreateOption(x))); PromptDialog.Choice(context, choiceSelected, pickListOptions, _currentQuestion.label, "Sorry, I didn't get that", 3, PromptStyle.Keyboard); When a free-form answer is typed in which is not in the list of valid values is entered, the "Sorry, I

How to forward from RootDialog to LuisDialog in Bot Framework

匆匆过客 提交于 2019-12-17 21:19:28
问题 I'm creating a bot for FAQ . When bot start conversations send a PromptDialog with 2 options: english, french. I want to forward the dialog to EnglishLuis when user chooses English button, and FrenchLuis when choosing French. Here is my code : Rootdialog.cs public class RootDialog : IDialog<object> { private const string EnglishMenu = "English"; private const string FrenchMenu = "French"; private const string QAMenu = "Q&A"; private List<string> mainMenuList = new List<string>() { EnglishMenu

Published C# Bot runs into internal server error after some time

落爺英雄遲暮 提交于 2019-12-17 20:59:41
问题 Good day everyone, I'm creating a chatbot for my company and I started with the samples on github and the framework docs. We decided to host it on Azure and added LUIS and Table Storage to it. The Bot runs fine locally in Botframework Emulator, but on Azure (WebChat, Telegram) it will only run for approximatly an hour to an hour and fifteen minutes, if no one tries to communicate with the bot. After this period of time, the bot will just run into an internal server error. When you ask the bot

how to connect to Microsoft bot framework from android cilent

≡放荡痞女 提交于 2019-12-17 20:19:32
问题 I created a simple android app which sends a message though JSON format using restfull jersey WS which URL should i enter in my app that connects the bot? and how does that bot receive message and send back the response? As of now I am using bot emulator by Microsoft Thanks in advance. 回答1: You can connect your android client with DirectLine Rest API, before that enble web chat in your bot dashboard. Please refer documentation about direct line approach for Bot framework. What you have to do

wake up the functionality on hi on clicking on others in product issue(A dialog) its goes to main dailog and show 4 choice

陌路散爱 提交于 2019-12-14 04:19:50
问题 I want to go to main dialog from product issue after clicking on adaptive card of others, like when say hi after clicking on other it will go main dialog and start the bot again. When click on other adaptive card its shows a static link and wake up msg . but i am not able wake up it on hi This is my main dialog: namespace Microsoft.BotBuilderSamples { public class MainDialog : ComponentDialog { protected readonly ILogger _logger; protected readonly string[] _cards = { Path.Combine(".",

Bot Framework- Why Choice hold CardAction, and what is the role of each?

折月煮酒 提交于 2019-12-14 04:02:34
问题 I use Bot Framework v4 , and I try to use ChoicePrompt for the menu. I'm trying to create a Choice object, and I see that it contains a CardAction object. Because CardAction has more options, such as a value that is an object type rather than a string type, I want to use it. But even if I assign a value to the CardAction value field, I get an error because Choice must get a value in its value , which is the value obtained at the end . So why does the Choice contain a CardAction object? What

500 response from sms.botframework.com/api/sms through Twilio

我的未来我决定 提交于 2019-12-14 04:01:43
问题 I've got a bot up and running, most of the time it is working ok, but Twilio throws some 500 and 502 errors on every inbound SMS. An attempt to retrieve content from https://sms.botframework.com/api/sms returned the HTTP status code 500. or An attempt to retrieve content from https://sms.botframework.com/api/sms returned the HTTP status code 502. The 502 requests continue fine and responses are sent, but the 500s do not - the user doesn't get a response. How can i get logging from the sms

How to close and restart bot conversation from UI

余生长醉 提交于 2019-12-14 03:33:47
问题 I have created bot UI with this example https://github.com/microsoft/BotFramework-WebChat/tree/master/samples/12.customization-minimizable-web-chat, but what I would like to do is create button with close chat window and restart conversation. Does anyone know how to implement this feature with bot framework v4? 回答1: There are a couple of steps you need to do to restart the conversation. First, you need to save your DirectLine and Store objects for the conversation in the parent component's