luis

How do I implement multiple LUIS dialogs on a single bot using the Bot Framework?

孤人 提交于 2019-12-19 07:53:07
问题 Since each LUIS model is limited to 20 intents and 10 entities, and also each model must have a well defined scope/domain, I'm wondering what's the best way to implement multiple dialogs in a single bot application, if I want my bot to be able to cover multiple domains, let's say for example get financial information and weather information. I know that ideally I would have two different bots, but in this situation I need to do this with a single bot. I read the Bot Framework documentation on

How to get Activity Info from an IDialogContext

寵の児 提交于 2019-12-18 16:32:19
问题 I'm using a LuisDialog and all I get the the callback returns is an IDialogContext and the LuisResult. Is there a way I can get info from the original Activity, like channel, from name, et al? 回答1: Since the v3.2.0 release you can access the original incoming message from the intent handlers. Check here to understand how your intent handler should looks like. public async Task MyHandler(IDialogContext context, IAwaitable<IMessageActivity> activity, LuisResult result) Alternatively, you can

How to handle Luis intent with parameters with prompt

久未见 提交于 2019-12-18 09:24:34
问题 I have an intent in LUIS with several required parameters. I also set prompt for these parameters so that when they are not detected, LUIS asks for them. However in the BOT, I always get them as null when they are not specified. The bot is not asking for the lacking parameters (even if the Prompts are set in Luis). Why? Is there a way to get the prompts automatically? Or is that still not supported in MS Bot Framework? I'm using C# 回答1: Based on your comment it seems you are using an older

Microsoft Bot Framework: Exception: The data is changed

随声附和 提交于 2019-12-18 09:21:36
问题 I have a bot with the following conversation scenario: Send text to LUIS LUIS intent calls context.Call(...) to launch a Dialog This dialog terminates, save some info in the userData: private static async Task storeBotData(IDialogContext context, BotData userData) { Activity activity = (Activity)context.Activity; StateClient sc = activity.GetStateClient(); await sc.BotState.SetUserDataAsync(activity.ChannelId, activity.From.Id, userData); } And after it call another dialog, again with context

How to forward from RootDialog to LuisDialog in Bot Framework

匆匆过客 提交于 2019-12-17 21:19:28
问题 I'm creating a bot for FAQ . When bot start conversations send a PromptDialog with 2 options: english, french. I want to forward the dialog to EnglishLuis when user chooses English button, and FrenchLuis when choosing French. Here is my code : Rootdialog.cs public class RootDialog : IDialog<object> { private const string EnglishMenu = "English"; private const string FrenchMenu = "French"; private const string QAMenu = "Q&A"; private List<string> mainMenuList = new List<string>() { EnglishMenu

LUIS consider TIME and DURATION as number ENTITY

心已入冬 提交于 2019-12-14 03:24:17
问题 I was expecting entities such DATE, TIME, DURATION & No Of People Joining the Call in below JSON. Now i got entities back such as DATE,TIME and DURATION correctly but for No Of People there is problem for me. I am getting four entities as NUMBER so now i am confused as how to pick exact entity that represent No Of People . Ideally it is No. 6 , but i am not getting on which basis i should decide that 6 is the No Of People { "query": "book audio bridge tomorrow for 6 people for 30 mins starts

JwtToken cannot be sent - Microsoft Azure Bot - LUIS

*爱你&永不变心* 提交于 2019-12-13 20:14:42
问题 I want to start programming Bots for Skype, Slack etc. I have setup a Bot in the Microsoft Azure Portal and enabled continuous deployment with Visual Studio Team Services (VSTS) and Visual Studio (VS). Which I just used to get the code from Azure to my computer but want to use in the future to deploy as well. When I run the stock Bot from Azure locally in VS, with only the LUISAppId and APIKey filled in, it fails when I send a message to it. This is the error code: iisexpress.exe Warning: 0 :

Luis the bad intent

和自甴很熟 提交于 2019-12-13 09:06:24
问题 I defined one intent, "getPayment" with many utterances (lang fr): "What are my last payments" "have i new payment ?" "can i see my last payments" .... But when i test my model, with this utterance : "What are doing today ?" or "what is the weather like today", my intent "getPayment" is returned with a hight score (~0.90). How can i solve my problem ? I would like to the intent "None" to be returned. i will not defined all utterances/case possible in the intent "None" ? Thanks 回答1: You need

LUIS inserts whitespace in utterances when punctuation present causing entity getting incorrectly parsed

三世轮回 提交于 2019-12-13 07:05:27
问题 I am playing around with the Luis stock ticker example here, GitHub MicrosoftBotBuilder Example, it works well and the entity in the utterances is identified but there are stock tickers in the world that have periods in them such as bt.a Luis by default pre-processes utterances where word breaks are inserted around punctuation characters and therefore an utterance of " what is price of bt.a " becomes " what is price of bt. a " and therefore Luis thinks the entity is " bt " instead of " bt.a "

Mapping Luis Entities to Dialog Fields

非 Y 不嫁゛ 提交于 2019-12-13 06:44:31
问题 I'm having trouble getting my Luis Entities to bind to my FormFlow fields so I can skip steps in the FormFlow. A simplified version of my FormFlow dialog is as follows [Serializable] public class DoSearch { public string SearchTerm; public static IForm<DoSearch> BuildForm() { var builder = new FormBuilder<DoSearch>(); return builder .Message("Search Function") .Field(nameof(DoSearch.SearchTerm)) .AddRemainingFields() .Confirm("Are you sure you wish to search for {SearchTerm} ?") .Build(); } }