botbuilder

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

PromptDialog.Choice does not show choices

邮差的信 提交于 2019-12-23 18:42:21
问题 I'm looking for how we can show choices to user with IDialog<object> and PromtDialog.Choice method. But the thing is below code sample doesn't show the choices. Very difficult to find code sample. Looking for a help. Thank you. List<string> BotOptions = new List<string>(); BotOptions.Add("Find a Program"); BotOptions.Add("Find an Event"); PromptDialog.Choice(context, ChoiceSelectAsync,BotOptions, "I didn't understand you. I'm cable to help you with", "Didn't get that", 1, PromptStyle.None);

Node.js: How to send a direct message in Slack with MS Bot Framework?

孤街醉人 提交于 2019-12-12 22:46:56
问题 I am trying to create a Slack bot using LUIS where when the bot sees a greeting in a channel it is added to, it sends a direct message to the user that sent the greeting. I have looked at Issue #431 and wrote a bot. Here is my code: var builder = require('botbuilder'); var restify = require('restify'); // Setup Restify Server var server = restify.createServer(); server.listen(process.env.port || process.env.PORT || 3978, function () { console.log("%s listening to %s", server.name, server.url)

Error while using Bot Framework Emulator after publishing a bot V3 on Azure

為{幸葍}努か 提交于 2019-12-12 04:33:13
问题 I created a quite simple bot, using the version 1.1.0 of Bot Builder, and it worked fine, both locally and after publishing on Azure. However, when I changed to the version 3 (and changed the respective code), my bot is working locally, but it is not working (on Bot emulator) after I have published it on azure. I don't know if I am using the Emulator in a wrong way, or if I am publishing it wrongly. I changed the BotId, MicrosoftAppId and MicrosoftAppPassword tags of the webconfig. When I use

Microsoft BotFramework: How to send raw JSON message to channels?

隐身守侯 提交于 2019-12-11 04:54:05
问题 I'm using Node.js and BotBuilder v3.1.1. Previously, we had Session.sendMessage(); that we could use to send raw data to the channel we are connected with. That proved useful for quick testing and using new features that aren't implemented on the library yet. How can I do this on the current version v3, since the sendMessage method was removed? 回答1: I think this is what your after, as I was looking for something similar myself. What's needed is sourceEvent which is replacing channelData . I'm

How to log a chat conversation with Bot Framework C# Bot Builder

不羁岁月 提交于 2019-12-04 03:15:40
问题 I would like to log my bot conversations (to a text file or DB). I want to capture all of the input and output from the bot, including any text generated by FormFlow, Confirms, etc. I don't need the graphical elements like cards, but it would be nice to have the text from them too. It doesn't seem practical to add logging statements after each input/output in my app, particularly since I can't easily tell exactly what text was sent to the user by FormFlow. What's the best way to do this? 回答1:

How to log a chat conversation with Bot Framework C# Bot Builder

淺唱寂寞╮ 提交于 2019-12-01 16:41:29
I would like to log my bot conversations (to a text file or DB). I want to capture all of the input and output from the bot, including any text generated by FormFlow, Confirms, etc. I don't need the graphical elements like cards, but it would be nice to have the text from them too. It doesn't seem practical to add logging statements after each input/output in my app, particularly since I can't easily tell exactly what text was sent to the user by FormFlow. What's the best way to do this? sGambolati You can log all messages (from bot or from user) using Middleware . For C# version you must

Microsoft Bot Receive attachments from user using FormFlow

巧了我就是萌 提交于 2019-11-30 09:23:15
问题 I'm Designing a Bot using FormFlow in which one of the input will be asking user to attach a file to proceed further. I Can see below link addresses the similiar problem. https://github.com/Microsoft/BotBuilder/issues/570 The solution provided in the link is to use custom IRecognizer or as below a) Put it into a private field/property that is not exposed to FormFlow. b) Put it in as the value of field that is exposed to form flow. c) Use the private property to dynamically generate a field

How to get the Facebook email of a user for a bot using bot framework?

左心房为你撑大大i 提交于 2019-11-29 16:11:59
I have a bot that I am building with the help of the Microsoft Bot Framework. I can see that session.message.user.id gives us the user id and session.message.user.name gives us the user name but if I am to connect it with Facebook, how do I get the user's email? Thanks for your help in advance K48 The only way is to specifically ask the user for their email and then for example save it in user data in the bot. Facebook (luckily) doesn't give out users' emails to bots. A normal Facebook app, on the other hand, might get it. List of available fields: https://developers.facebook.com/docs

Microsoft Bot Receive attachments from user using FormFlow

社会主义新天地 提交于 2019-11-29 15:23:53
I'm Designing a Bot using FormFlow in which one of the input will be asking user to attach a file to proceed further. I Can see below link addresses the similiar problem. https://github.com/Microsoft/BotBuilder/issues/570 The solution provided in the link is to use custom IRecognizer or as below a) Put it into a private field/property that is not exposed to FormFlow. b) Put it in as the value of field that is exposed to form flow. c) Use the private property to dynamically generate a field that allows choosing between them. I'm naive to the Bot Framework. Are there any examples to implement