luis

botframework web chat V4 build and generate custom CSS and JS File

放肆的年华 提交于 2020-08-09 14:54:01
问题 I've cloned the repository from https://github.com/microsoft/BotFramework-WebChat and was able to build the project after some changes with the below npm command npm run build However, this build has not generated the botchat.css and botchat.js files that the earlier versions of web chat used to generate. The reason for my custom build is that I need to be able to display HTML formatting on the web chat. Any steps on how to get the .css and .js files would be really helpful. 回答1: Web Chat no

botframework web chat V4 build and generate custom CSS and JS File

混江龙づ霸主 提交于 2020-08-09 14:53:49
问题 I've cloned the repository from https://github.com/microsoft/BotFramework-WebChat and was able to build the project after some changes with the below npm command npm run build However, this build has not generated the botchat.css and botchat.js files that the earlier versions of web chat used to generate. The reason for my custom build is that I need to be able to display HTML formatting on the web chat. Any steps on how to get the .css and .js files would be really helpful. 回答1: Web Chat no

Bot Framework Maintaining User State

戏子无情 提交于 2020-08-09 09:46:28
问题 Previously i was using Microsoft state service to maintain user state in my bot. Now that Microsoft has stopped supporting state service, i have written a static object to store user data as shown below. Just wanted to know is this a right approach to maintain user state because at once around 8000 user might be using the application. I am just worried if it will cause some concurrent. Please suggest if there is a better way to maintain user state in bot framework private static object

How can I access an entities score information and or existence from the luis.ai RecognizerAsync method which returns the RecognizerResult

青春壹個敷衍的年華 提交于 2020-07-22 10:04:50
问题 The sample bot built through azure has a basis from this documentation https://docs.microsoft.com/en-us/azure/bot-service/bot-builder-howto-v4-luis?view=azure-bot-service-4.0&tabs=csharp I am trying to refactor parts of the functionality of the dialog and I need access to parts of the json that I assume should come back from the luis call. However, when I try to access from $instance I get an error that I cannot access child elements of the response. Here is an exmaple of the json: + Entities

BotBuilder Python - Handling multiple dialog and intent

白昼怎懂夜的黑 提交于 2020-07-10 07:37:10
问题 I have the following code to handle multiple intents, Code async def on_message_activity(self, turn_context: TurnContext): recognizer_result = await self.luis.recognize(self.recognizer, turn_context) intent = self.luis.get_top_intent(recognizer_result) await self.process_intent(turn_context, recognizer_result, intent) async def process_intent(self, turn_context: TurnContext, recognizer_result, intent): if intent == 'Greeting_Wishes': await greeting_wishes(turn_context, user_info) elif intent

New intent in LUIS for multi turn dialogs

孤街醉人 提交于 2020-07-08 00:39:20
问题 I am going to create a multi-turn dialog. I didn't get how it should be connected with LUIS models. I checked out documentation, but there are samples with only one turn dialogs. Also, I use Virtual Assistant template. I want to do something like this. User: I want to book a flight Bot: What is the destination? User: London Bot: When? User: 21st of September. Bot: The ticket was bought. The questions are what happens on the second step? Should I check out dispatcher? Should I add all possible

How to fetch data from SQL Server by using LUIS and Azure Bot Service

喜夏-厌秋 提交于 2020-06-29 03:41:40
问题 I'm new to BOT and my use case is : I'm trying to create a Bot using Azure bot framework. Which will get some relevant information for user from SQL Server DB hosted in Azure, based on some analysis. Also, I need to integrate this Bot with Azure App service. Right now I'm trying this, used Microsoft Azure bot framework to create a Bot. When I'm hitting the url https://testbot1.azurewebsites.net/api/messages its showing message "Upgrade to WebSocket is required." in the browser. I know some

How to fetch data from SQL Server by using LUIS and Azure Bot Service

醉酒当歌 提交于 2020-06-29 03:41:17
问题 I'm new to BOT and my use case is : I'm trying to create a Bot using Azure bot framework. Which will get some relevant information for user from SQL Server DB hosted in Azure, based on some analysis. Also, I need to integrate this Bot with Azure App service. Right now I'm trying this, used Microsoft Azure bot framework to create a Bot. When I'm hitting the url https://testbot1.azurewebsites.net/api/messages its showing message "Upgrade to WebSocket is required." in the browser. I know some

How to construct a QnA Maker Instance Class in C# - CoreBot?

断了今生、忘了曾经 提交于 2020-06-27 16:19:36
问题 I got a System.AggregateException after running my Core Bot C# sample. In the Startup.cs I added the class as followes: services.AddSingleton<ChitChatRecognizer>(); The Recognizer Class looks like: using System.Net.Http; using System.Threading; using System.Threading.Tasks; using Microsoft.Bot.Builder; using Microsoft.Bot.Builder.AI.QnA; using Microsoft.Bot.Schema; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Logging; namespace CoreBot { public class ChitChatRecognizer

LUIS: Adding patterns to intents is not taking any effect

独自空忆成欢 提交于 2020-05-28 06:35:07
问题 I followed what is described in the tutorial I first added an Pattern.any entity Next, I added a pattern for the required intent I had already created an intent like shown and now I click on train When I test, the intent is not hit Any idea what's missing? 回答1: The patterns are extremely literal. If the part of the phrase does not match exactly, the intent won't get recognized. (Note: you can add these phrases to the intent directly, instead of in the pattern, in which case it will recognize