botframework

Cannot get conversationState property value inside a setTimeOut

家住魔仙堡 提交于 2019-12-12 20:12:11
问题 I am using botBuilder SDK 4.3 for Node js. I created a conversationState property inside the constructor of a dialog. In some of the dialog steps I set a value to that property. In an other step, I tried to get the value of that property inside a setTimeOut like So. // Imports ... class Reservation extends ComponentDialog { constructor(id, conversationState, userState, dialogProps) { super(id); this.id = id; this.conversationState = conversationState; this.userState = userState; this

Does Microsoft chatbot(Node.js) support multiple language in the single LUIS.AI application?

帅比萌擦擦* 提交于 2019-12-12 19:02:27
问题 I have a chatbot which is built in Microsoft bot framework with Node.js and I integrated this bot with a NLP framework called LUIS.AI intelligence to handle the user conversation based upnon their intents and entity. Here I need this bot to support multiple languages in the single LUIS application but it does not allow us to do so. Is there any hacky method to support multiple languages in a single LUIS application or in code level.? 回答1: Code Level: You can create multiple LUIS applications

Integrating BOT with ASP.Net Application [closed]

扶醉桌前 提交于 2019-12-12 18:14:34
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . I have built a BOT using Microsoft BOT Framework which works fine, I have tested from BOT Emulator, now I want to integrate it with ASP.Net Application. I tried to figure out how to do it from Web Application but I couldnt find out any tutorials to understand how to pass parameters. Can you give me some

Retry prompt customization

て烟熏妆下的殇ゞ 提交于 2019-12-12 15:26:45
问题 I am using MS bot builder node.js SDK. Before one of the recent updates, when the prompt is retried, it was sending the same message text to the user as the retry prompt. However, now it is sending the default text message in the system, which is "I didn't understand.Please try again". However, I want retry prompts always be the same as the original message and if possible want to apply this globally, meaning I don't want to customize retry prompt for every prompt I am sending to the user. I

`Feedback` text not shown in bot conversation

a 夏天 提交于 2019-12-12 14:26:12
问题 My formflow dialog contains a field with custom validation applied... var form = builder .Field(new FieldReflector<CarValuationDialog>(nameof(UserName)) .SetActive(state => string.IsNullOrEmpty(state.UserName))) .Field(new FieldReflector<CarValuationDialog>(nameof(ValuationOption)) .SetPrompt(new PromptAttribute($"Hello {{UserName}}.<br /><br />Are you looking to get an price estimate for a car you’re selling, or for a car you’re looking to buy? {{||}}"))) .Field(new FieldReflector

PromptDialog Choice with List object Bot Framework

爱⌒轻易说出口 提交于 2019-12-12 13:18:18
问题 I'm creating a PromptDialog Choice which populates my list of object Options stored in Database. However, it only displayed the type of the Object not the name of the Options. Can anyone suggest me the best way to load Option from database and binding it with the PromptDialog? Here's what I've tried: private void ShowOptions(IDialogContext context) { List<Option> ListOptions = Option.CreateListOption(); PromptDialog.Choice(context, this.OnOptionSelected, ListOptions, "Are you looking for a

Can't figure out how to generate & view logs for nodeJs bot on Bot Service

情到浓时终转凉″ 提交于 2019-12-12 12:27:55
问题 I deployed my nodeJs bot to Bot Service recently, and i can't seems to figure out how to generate and view it's logs. when i try to enable logging, i constantly getting an unknown error Looking at the log files on the server, there is no file who logs the node application Tried to log to Application insights, without success. help? 回答1: Assuming your bot is hosted through Azure via an App Service, you should be able to see logging from your NodeJS application by performing the following steps

Botframework V4: Question about Input forms cards

丶灬走出姿态 提交于 2019-12-12 12:16:59
问题 Hello i have this input forms card. It is rendering properly but how can i get its results? And how can i make it so that the bot wait for the user to submit before proceding to the next step? Putting stepContext.NextAsync will automatically trigger the next step. But removing it will cause an error because it needs to return something. public InitialQuestions(string dialogId, IEnumerable<WaterfallStep> steps = null) : base(dialogId, steps) { AddStep(async (stepContext, cancellationToken) =>

Migrating the code from Bot Framework V3 to V4

我的未来我决定 提交于 2019-12-12 09:18:45
问题 I have more question while migrating the dialog from V3 to V4. below is our code. In v3, we were using Microsoft.Bot.Builder.Dialogs.Conversation.SendAsync(conversationContext.CurrentActivity, new RootDialog()); public class RootDialog : IDialog { public RootDialog() { ..... } public async Task StartAsync(IDialogContext context) { context.Wait(this.MessageReceivedAsync); } public virtual async Task MessageReceivedAsync(IDialogContext context, IAwaitable<IMessageActivity> result) { } In the

Getting Skype Identity In Bot Framework?

十年热恋 提交于 2019-12-12 09:02:08
问题 I have successfully written a simple bot application have it communicating within Skype. I've tried to personalise a welcome message to a user when they say 'Hello'. However I can't seem to get their Skype display name or email from the 'From' ChannelAccount field. The name and address have strange values. For example for one user they return something in the format '8:skypename' and for another user they return '4:564:differentskypename'. The values are consistent for a specific user, but