botframework

Adaptive cards - serving images in bytes

百般思念 提交于 2020-01-03 04:49:29
问题 I'm trying to put an image in Adaptive Card in Bot framework like this way: card.Body.Add(new AdaptiveImage() { Type = "Image", Url = new Uri(pictureUrl), Size = AdaptiveImageSize.Large }); It's working. The problem is with Url. I get images from the external web service in Base64 format. But sometimes I get too large image so I get The uri string is too long exception. Is there any way how to handle that problem? For example, enable putting the image in Adaptive card in bytes. 回答1: thanks

Does Skype for Business channel support Japanese characters?

不打扰是莪最后的温柔 提交于 2020-01-03 04:48:10
问题 Does Bot Framework for Skype for Business support Japanese characters? As shown in the attached screen shot, we are receiving all "?????"s for Japanese characters. 回答1: Skype for Business can display Japanese Characters, like in my demo below: [Serializable] public class Dialog44558422 : IDialog<object> { public async Task StartAsync(IDialogContext context) { context.Wait(MessageReceivedAsync); } private async Task MessageReceivedAsync(IDialogContext context, IAwaitable<object> result) { var

Automatically send a message into the WebChat window in Bot Framework

安稳与你 提交于 2020-01-03 03:15:14
问题 I am using Microsoft Bot Framework and I created two bots. I am trying to build a simple HTML page that will show two webchat windows side by side, each for one of the two bots. The idea is to have an input box in the page, and when someone types into it, the text gets sent into both webchats at the same time. However, since webchats are basically iframes, there is not much I can do unless I make the webchat iframe expose some methods to the parent frame. This is the expected browser

Prompt for Text Without Routing

不想你离开。 提交于 2020-01-03 02:26:16
问题 What I'd like to incorporate into my bot is a way to prompt the user for essentially free-form, natural language text and then save it. I thought this would be simple enough using: builder.Prompts.text(session, prompt); But it appears the UniversalBot is attempting to interpret and route based on the text supplied by the user. I do have LUIS wired into the bot as the recognizer and it's clear that's what is coming into play here because it's resolving to one of my defined intents. Or at least

Data not predictably received in skype using bots

会有一股神秘感。 提交于 2020-01-03 02:23:07
问题 I am working on Bots Project using Microsoft BotFramework , in that I am using to display some video files. Here I am facing the issue is when I am running my project in local Bot Frame work Emulator its getting the data properly at every time and I am configuring my Bot to Skype Channel its working first time properly and when I am using the second time it’s not getting the data some times and sometimes it’s getting data like only one video file that is nothing but first video file. Is there

Auto complete in Bot Framework

杀马特。学长 韩版系。学妹 提交于 2020-01-03 02:23:06
问题 Is there any way to do autocomplete (from a database or JSON) in the Bot framework emulator? Currently I am using the Bot Framework emulator and I want to know if there is any possible way of using @symbol to populate (autocomplete) data. Finally I want to know if I can do this in Skype. 来源: https://stackoverflow.com/questions/47926061/auto-complete-in-bot-framework

downloading file (pdf/image) from using Microsoft bot framework

扶醉桌前 提交于 2020-01-02 17:19:26
问题 I wanted to download document/image ( Document/image is on internet and I am giving path of it). But it ins not working.. How ever if I just comment the attachment part, I am able to get "Hi" from BOT. Lets have the controller like this [BotAuthentication] public class MessagesController : ApiController { /// <summary> /// POST: api/Messages /// Receive a message from a user and reply to it /// </summary> public async Task<HttpResponseMessage> Post([FromBody]Activity activity) {

Adding verification step in formFlow - Check if topping is in stock

空扰寡人 提交于 2020-01-02 09:26:27
问题 I am working on using the form flow example found Here The example uses formFlow to help the user pick out the toppings they want on their sandwich. I'm trying to add a verification step that checks if each of the toppings they add is in stock and if it isn't send an apology message and prompt the user to enter a different topping instead. A code example is seen below: public static IForm<SandwichOrder> BuildForm() { return new FormBuilder<SandwichOrder>() .Message("Welcome to the sandwich

DirectLineJS receiving copies of Bot replies

ε祈祈猫儿з 提交于 2020-01-02 07:54:32
问题 I'm using DirectLineJS to comminucate from a custom webchat through a website. I'm using the format posted from Microsoft's github https://github.com/Microsoft/BotFramework-DirectLineJS how I have it implemented is var directLine; directLine= new DirectLine.DirectLine({ secret: "My_DirectLine_Secret", }); function sendReceiveActivity(msg) { document.getElementById("inputtext").value = ""; conversation.innerHTML = conversation.innerHTML + "ME - " + msg + "<br/><br/>"; directLine.postActivity({

How to get user's location while chatting with bots?

走远了吗. 提交于 2020-01-02 03:14:31
问题 I am developing a Bot Framework application that integrates with Slack using Microsoft Bot technology. In the bot project, I was trying to get the user location when the user sends a message. What I am trying to achieve is that, when a user types the message "Show me nearby hospitals", I want to get the users Geo coordinates and pass them to an API that will return a list of hospitals near that location. So any idea on how to get the user's current location in the Microsoft Bot project? I