botframework

How to change the size and other properties of the chat window

ぃ、小莉子 提交于 2020-01-21 18:58:28
问题 I have created a simple bot application using the botframework. I am embedding the chat window in an iframe. How can I control the chat window size and other properties like color, font etc. 回答1: You can size the iframe but your options of modifying what's in it are limited - CSS override body style for content in iframe?. Here's how I typically integrate the provided Bot Framework's iframe with size control: <div id="bot"> <iframe src="https://webchat.botframework.com/embed/..." style=

How to change the size and other properties of the chat window

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-21 18:58:02
问题 I have created a simple bot application using the botframework. I am embedding the chat window in an iframe. How can I control the chat window size and other properties like color, font etc. 回答1: You can size the iframe but your options of modifying what's in it are limited - CSS override body style for content in iframe?. Here's how I typically integrate the provided Bot Framework's iframe with size control: <div id="bot"> <iframe src="https://webchat.botframework.com/embed/..." style=

C# : Creating a Single Bot Service to Support Multiple Bot Applications

此生再无相见时 提交于 2020-01-21 03:48:47
问题 This code was on this website https://www.microsoft.com/reallifecode/2017/01/10/creating-a-single-bot-service-to-support-multiple-bot-applications/#comment-148 I am new to bot framework and have written a bot in C# and want to deploy the same bot for n number of users as shown on the webpage. But the given code is in Node.js . Is there any way to write the same code in C# asp.net var express = require('express'); var builder = require('botbuilder'); var port = process.env.PORT || 3978; var

In Microsoft Bot Framework session.conversationData.array of regexes changes to array of Object type after executing once

混江龙づ霸主 提交于 2020-01-17 06:53:39
问题 I am working with the below piece of code in Microsoft Bot Framework to access the list of regexes for global commands. This code is a part of botbuilder module: if (typeof session.conversationData.globalCommands === "undefined") { // An array which contains the list of all global commands session.conversationData.globalCommands = []; // Accessing the list of global commands globalActions = session.library.actions.actions; lenGlobalActions = Object.keys(globalActions).length; // Assigning

ReplyToActivityAsync throwing exception with Slack connector on Bot Framework v3.0

て烟熏妆下的殇ゞ 提交于 2020-01-17 05:39:06
问题 I have created a bot v3.0 project and connected it to both Slack and Skype. The Skype connector works great, but I am having trouble with the Slack connector. Here is my Post handler from the default project. public async Task<HttpResponseMessage> Post([FromBody]Activity activity) { if (activity.Type == ActivityTypes.Message) { ConnectorClient connector = new ConnectorClient(new Uri(activity.ServiceUrl)); // calculate something for us to return int length = (activity.Text ?? string.Empty)

How do I add multiple ComponentDialogs?

你。 提交于 2020-01-16 19:04:27
问题 I made a new ComponentDialog by creating a class for it that extends ComponentDialog like so: public class GetPersonInfoDialog : ComponentDialog { protected readonly ILogger Logger; public GetPersonInfoDialog(IConfiguration configuration, ILogger<GetPersonInfoDialog> logger) : base("get-person-info", configuration["ConnectionName"]) { } // code ommitted } } Then I added it in Startup.cs: public void ConfigureServices(IServiceCollection services) { // ... services.AddSingleton<GreetingDialog>(

Auto-completion : How to replace the input field of the Webchat with your own react-select element

爱⌒轻易说出口 提交于 2020-01-16 18:18:16
问题 I have a React app and I want to replace the input bar of the Webchat with my own select element (I'm using react-select). Here is the select element under the webchat: return ( <div className="WebChat" > <ReactWebChat //WebChat className={ `${ className || '' } web-chat` } directLine={ this.createDirectLine(token) } store={ store } styleSet={ styleSet } /> <Select //my select element autoFocus="true" className="basic-single" classNamePrefix="select" defaultValue={'default'} isClearable=

Simple example to store array data in card

半腔热情 提交于 2020-01-16 17:08:47
问题 I would like to understand how to read/write data with Adaptive cards. I can read the data from a submit action, and reply as text, but not sure how present the input data in the card. First place, I would like to add the shootValue to an array that I can carry trough the lifecycle of the card. Can somebody please let me know how to do this? The goal of this question is to understand how to keep existing responses from the card. Like in Battleship, I shoot "A1", type it in an input box,

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:/