luis

How to use Prompts.text without triggering new intent in Microsoft Bot Framework

喜你入骨 提交于 2020-01-06 07:18:09
问题 I have multiple dialogs that are triggered with triggerAction . I use LUIS to trigger/match utterances to specific dialogs. Each dialog has two steps (functions): if entities are valid query DB and end dialog, else prompt user for one of the missing entities with Prompts.text() and continue to next step set dialog state and repeat dialog from step 1 with next() * My problem is that for some prompted inputs (i.e. entity values) LUIS will trigger new unrelated dialogs. In these cases the dialog

Luis Out of call volume quota

。_饼干妹妹 提交于 2020-01-05 07:33:09
问题 I have a Luis application and I am using the starter key for development. I am getting Out of call volume quota. Quota will be replenished in xxxxxxxx. I know that you have 1000 query per month but I only used 188 ( value on the dashboard). Is there another reason for getting out of Quota? 回答1: Are you working with the starter key? The starter key only allows 1000 calls per month and doesn't work fine. Here you have an extract from Microsoft FAQ: Why did I get an email saying I'm almost out

How to jump from one intent to another in LuisActionDialog passing context

删除回忆录丶 提交于 2020-01-04 05:38:46
问题 I'm developing a bot with Microsoft Bot Framework, LUIS and LUISActionBinding. In my LUIS app I have 3 main intents: BuyX , FindA and FindB . The main goal of the bot is to help users to buy X, but they might want to first search for A or B with some filters first, or just go directly to buy X. I set up the Actions for each intent with the required and optional fields, everything works great and I'm able to receive objects returned by the actions my intent handlers. In the FindA handler I

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

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

Integrating LUIS with FormFlow

瘦欲@ 提交于 2020-01-01 18:55:49
问题 I have created a bot, having a FormFlow in it. Now if you type I want to launch a product, LUIS will tell which dialog it has to go to : internal static IDialog<AssesmentHelper> CreateProduct() { return Chain.From(() => FormDialog.FromForm(AssesmentHelper.BuildForm)) .Do(async (context, profileForm) => { try { var completed = await profileForm; } catch (FormCanceledException<AssesmentHelper> e) { string reply; if (e.InnerException == null) { reply = $"You quit on {e.Last}--maybe you can

JSON serializer error with BotFramework an LUIS

天涯浪子 提交于 2019-12-31 03:53:08
问题 StackOverflow Community! I have a chatbot, and integrated LUIS.ai to make it smarter. One of the dialogues is about to Book an appointment with a Supervisor (Teacher) Everything has been working fine, with literally the same code. A couple of hours ago I am experiencing some strange errors. Exception: Type 'Newtonsoft.Json.Linq.JArray' in Assembly 'Newtonsoft.Json, Version=10.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' is not marked as serializable. How to reproduce the error? If

Is LUIS limited for use?

情到浓时终转凉″ 提交于 2019-12-31 03:00:12
问题 I have been receiving exception in my application saying Exception: Response status code does not indicate success: 403 (Quota Exceeded). Does this means we are only allowed 1000 hits per application per month on the LUIS? Anyother justification are welcomed around this exceptions. 回答1: There are several quotas on LUIS's keys usage: Free key: 5 calls / second 10 000 calls / month Standard key: 50 calls / second See Azure portal's capture below where the 5/second is visible for free plan: And

Bot framework 412 “The data is change” when connect with Luis

馋奶兔 提交于 2019-12-25 05:19:17
问题 I have a simple bot with help of Luis. It's very basic code and I don't know why I get 412 error after I past message to Luis intent. My code look like: MessageController: if (activity.Type == ActivityTypes.Message) { // Get any saved values StateClient sc = activity.GetStateClient(); await sc.BotState.GetUserDataAsync(activity.ChannelId,activity.From.Id); var haveGreeting = userData.GetProperty<bool>("HaveGreeting"); // Create text for a reply message StringBuilder strReplyMessage = new

Microsoft Bot Framework with LUIS not detecting all intents

非 Y 不嫁゛ 提交于 2019-12-25 05:09:35
问题 I'm creating a chatbot using the MS Bot Framework with LUIS in node js. I have created a couple of intents called "Book" and "Pending" and an entity called "Annual Leave" in LUIS. I have added the LUIS URL to my chatbot code and when I test it in my console, I see that certain utterances get a response while some don't. For example when I say "How do I check my remaining annual leave?", I get a response saying "You can find your remaining A/L here". But when I say "How can I check my pending