botframework

How to user SkillContext to pass data from VirtualAssistant to a Skill

会有一股神秘感。 提交于 2020-01-05 13:06:56
问题 I need to share an information from my Virtual Assistant with a Skill. I try to use SkillContext, I don't get errors but in the Skill the SkillContext is empty. This is the code I use in the VirtualAssistant MainDialog::RouteAsync to set the payload Dictionary<string, JObject> dictionary = new Dictionary<string, JObject>(); dictionary.Add("userEmail", JObject.Parse("{ email: 'emiliano.carlesi@itattitude.com'}")); await _skillContextAccessor.SetAsync(dc.Context, new SkillContext(dictionary));

How to create Charts using c# Bot Framework?

北战南征 提交于 2020-01-05 09:03:40
问题 I am trying to create some charts(line graph etc.,) in a bot. I have the data available from an online source (finance.Yahoo.com) I am not sure what library I should be using for this purpose 1. What chart library? 2. What type of Card (Hero Card, Adaptive Card ...) should I use? 3. My current solution which is connecting to external site (Yahoo) is a web api and I am using C# bot framework? Could anyone share an example on how can I achieve this? I have tried to use UI.Visualization.Chart

Conversations.SendToConversationAsync crashes on Unit testing

流过昼夜 提交于 2020-01-05 08:39:20
问题 I have the following method in the controller to send a message from the controller itself (Say a welcome message when a user adds the bot) private static async Task<string> OnSendOneToOneMessage(Activity activity, IList<Attachment> attachments = null) { var reply = activity.CreateReply(); if (attachments != null) { reply.Attachments = attachments; } if (_connectorClient == null) { _connectorClient = new ConnectorClient(new Uri(activity.ServiceUrl)); } var resourceResponse = await

Account Linking Failed

坚强是说给别人听的谎言 提交于 2020-01-05 07:30:34
问题 When user hits account linking button, it opens a new window. Is that ok ? Than, in that window i'm rendering html page with account/password fields. When user provide that credentials, i'm checking in database and return user e-mail if user exists. That's ok. I'm creating redirect url this way : var redirect_uri = getUrlParameter('redirect_uri'); console.log(redirect_uri); var account_linking_token = getUrlParameter('account_linking_token'); console.log(account_linking_token); My

Send message to bot on click of menu item bot framework

有些话、适合烂在心里 提交于 2020-01-05 05:36:06
问题 I am having a challenge to send message to bot on click of static menu item in Microsoft boframework webchat. I have modified the top nav and have static menu items and on click of any menu item that text should be sent to bot as message. I read over the Microsoft documentation and I see that we need to post to direct line so send message to bot. please refer https://docs.microsoft.com/en-us/azure/bot-service/rest-api/bot-framework-rest-direct-line-3-0-send-activity?view=azure-bot-service-4.0

How to reset credentials in console version of the Bot Framework Channel Emulator v3?

拜拜、爱过 提交于 2020-01-05 05:36:06
问题 There is an issue in v3.0.0 of the botbuilder / bot framework where authentication does not work with the local emulator (see https://github.com/Microsoft/BotBuilder/issues/625). The official workaround is to clear the appId and appPassword from the bot itself and from the emulator, thus bypassing authentication altogether. This is easy in the Windows GUI version of the emulator, but in the console version this does not work. /settings allows you to change appId and appPassword, however

how to connect ms-botframework to azure database

半腔热情 提交于 2020-01-05 05:30:40
问题 How to connect .Net application BotFramework to database and store data in MS SQL azure? I want use stored procedure in db and save sent and recieved messages. Code Sample This code is work if I used connection string to localdb or local server Webconfig <connectionStrings> <add name="[ConnStr]" connectionString="Data Source=[SiteURL].database.windows.net;Initial Catalog=[Name];Persist Security Info=True;User ID=[User];Password=[Password]" providerName="System.Data.SqlClient" /> <

How to send attachment in bot framework in web embedded bot using c#

放肆的年华 提交于 2020-01-05 04:18:07
问题 I want to send a csv file attachment to to user in bot. I am using the Microsoft bot framework C# bot builder SDK, using the web chat channel. I've the following to send a csv file to the user: var csvPath = "D://ProjecteFile/Results.csv"; //Attachment attachment = new Attachment(); //attachment.ContentType = "text/csv"; //attachment.ContentUrl = csvPath; //attachment.Name = "click this link to get server report"; //return attachment; I also tried using a hero card var heroCard = new HeroCard

Is there a way how to connect botframework via Oauth?

对着背影说爱祢 提交于 2020-01-05 04:17:13
问题 It is possible to authorize some MS apps using OAuth and login form. If the user logins and allows the permissions the app wants then as a developer you can read (and write) some data via API. Is it possible with https://botframework.com? I don't want my clients to have to write down the client_id and client_secret in my administration. I just want them to give me permission via logging in and let me download this data. I've read MS docs about OAuth and have seen that the possible scopes

Proactive Bot create PromptDialog.Choice

梦想与她 提交于 2020-01-04 07:44:50
问题 I have a controller that receives post requests from another app. From that I was able to initiate a conversation with a user that added the bot by doing: ChannelAccount userAccount = new ChannelAccount(); ChannelAccount botAccount = new ChannelAccount(); IMessageActivity message = Activity.CreateMessageActivity(); userAccount = new ChannelAccount(id: "a", name: "b"); botAccount = new ChannelAccount(id: "28:...", name: "bot1"); var connector = new ConnectorClient("uriexample"); var