I want to create a bot using luis, fill it with entities and intents and use C# to handle the responses.
I have created an app on eu.luis.ai, but I couldn't find out, how i can edit the code of this app.
I have created a web app bot with luis template on the azure portal and can edit the code but i couldn't find out how i can create intents, entities and so on.
Do i have to connect them somehow?
Or how do i create a bot, so that i can fill it with content and edit the code?
LUIS and Bot Framework Bots are separate, meaning you don't need to use LUIS with your bot and vice versa. As such, you as the developer need to manually connect the two of them together. For the entities and intents aspect, you will need to create them in the LUIS portal. Then correspondingly, you can modify your bots code to handle the new intents and entities from your LUIS app.
You didn't specify, but I am going out on a limb and assuming that your Web App Bot is in a European datacenter. To minimize latency between LUIS and your bot, make sure to set your domain. Example below:
[LuisModel("XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX", "XXXXXXXXXXXXXXXXX", domain: "westeurope.api.cognitive.microsoft.com", staging: true)]
[Serializable]
public class YourLUISDialog : LuisDialog
{
LUIS C# Tutorial Docs
List of all valid LUIS Endpoints
The code excerpt is from this issue
Related
I am working on a requirement where we need to create a chat BOT application using Azure BOT service that takes input from the user and based on the response from the user, redirect the user to the chat bot of the particular department.
I would like some suggestions or recommendations on how this can be achieved.
The way to do this is through Bot Framework Skills. You can check for more information on https://learn.microsoft.com/en-us/azure/bot-service/skills-conceptual?view=azure-bot-service-4.0
We have a bot service running in MS Azure and a corresponding Teams app. This bot service is used by multiple customers. Requirement is to allow customers to change the bot name/icon that is shown in the Teams chat (please refer image below).
We can change the name and icon by changing it in the Teams App. However, this will require creating a separate Teams app for each customer. Is it possible to control this via the bot service code running in Azure? We want to do it programmatically based on logged-in user's domain. Is there anyway to do it?
Edit: Found a related post
Thanks
Vivek
This is not possible within a single bot - it's set at the level of the the bot registration, in Azure, and so can't be changed tenant by tenant in Teams, for example. You'd need to create a bot for every customer (tenant), or go with a generic name and image. You can of course customize the welcome message, responses from the bot, etc.
I have a Azure Bot Service and it is integrated with LUIS application where i have some intents.
What I want according to my need i can forward same examples to different intents in LUIS.
But there is limitation that same example can't be there for multiple intents.
So i created another application in the LUIS and created the same example but different intent name.
Here my problem is i have to connect Single Bot service with two different LUIS application.
Can i do it in Azure Bot Services in Node.js??
Yes, it is absolutely possible to make use of multiple LUIS applications in one bot. The dispatch tool helps to determine which LUIS model best matches the user input. The dispatch tool does this by creating a single LUIS app to route user input to the correct model. Also, ensure that you do not have overlapping intents and make use of prediction data from LUIS to determine if your intents are overlapping.
The dispatch model is used in cases when:
Your bot consists of multiple modules and you need assistance in routing user's utterances to these modules and evaluate the bot integration.
Evaluate the quality of intents classification of a single LUIS model.
Create a text classification model from text files.
Refer to this sample, which is an NLP with Dispatch bot dealing with multiple LUIS models and also this documentation that provides more information about using multiple LUIS and QnAMaker models.
Hope this helps!!
I have an Azure Bot Web App created from QnA Maker.
I'm using it in Teams and using the test in QnA and web Chat from Azure.
I was trying to get the answers that the user made to the bot. But in the Insight resource I'm only able to see Custom Events for each conversation that a user began. It's like the insight is not registering traces at all.
How can I set the bot or either the insight to register traces?
thank you in advance.
How can I make sure that the bot I am training in LUIS.ai is connected to the bot service I am using in my Azure Portal. Although I have multiple intents. It shows only intent None which makes me think they are not connected. Can I still connect it or do I need to start over? Thanks for the help
There are a couple things that could be wrong here:
Have you trained/published your model?
Do you have the following attribute on your dialog class? [LuisModel("YOUR LUIS APP ID", "YOUR BOOTSTRAP/API KEY")] (assuming you are using C#)