XIMNET - The Leading Tech Agency In Malaysia
What does Microsoft LUIS do and how it affects your AI Chatbot quality?
An illustration of one of the major rice producing areas of Malaysia, Sekinchan
To improve our chatbot quality, we do not stop at a basic QNA Chatbot or a menu-driven chatbot. We need a technology to predict users’ overall intent and extract detailed information at the same time. This is when Microsoft Language Understanding (LUIS) comes into picture when building an AI Chatbot.
Microsoft LUIS is a cloud-based conversational AI service from Microsoft Azure which uses custom machine-learning intelligence. Basically, Microsoft LUIS allows your bots or applications to understand what a person wants in their own words. Yes, not only bots can use this cognitive service but other application as well since it has endpoints API. Some basic non-bot’s usage examples are extracting key information from a customer’s complaint email.

So, how did we use Microsoft LUIS to improve our AI Chatbot built with Microsoft Azure Bot Framework? Reads on to find out more.
Microsoft LUIS’s Intent
What is an intent? Intent is defined as something we plan or mean to do. Basically, it is the intention or purpose or a user when talking to the chatbot. The user might want to make an appointment, to find nearest petrol station or just want to greet the virtual assistant.

Microsoft LUIS makes it easy to detect the intent of a user. We just need to provide some user utterances and group them into intents. Utterances are inputs to the AI chatbot that need to be interpreted. To maintain a good chatbot, collect utterances that you think users will enter in the beginning and continue to monitor and train the chatbot. Over the time, the chatbot will understand the users more.
Microsoft LUIS’s Prebuilt Entities
Entities are another information that we can extract from user’s input via Microsoft LUIS. First type of entities is the prebuilt entities which is very easy to use. We just need to enable it via the portal. Then, we can detect the prebuilt entities.

For example, LUIS is used to extract person’s name, email, and phone number accurately from user’s input. This is important so that our virtual assistant can greet back the user using his name and confirmation of his phone number. If there is no entities detection, we can only greet the user with “Thanks, My name is Alex, our salesperson will contact you soon at my number is 012345678’, for example. This is because we have to assume the user’s reply is the name, email, and phone number.

The prebuilt datetime entities of LUIS is also very useful. If a user said next Monday, LUIS would return the exact date of next Monday. This makes the conversation more natural during an appointment making and much more.

You may ask, what if the entities you need are not available in the prebuilt entities? LUIS allows us to create our own entities. Most basic entity types would be list entity and regex entity. In list entities you can also provide synonyms. For example, an entity for small size can includes “sm, sml, tiny, smallest” as its synonyms.

Another example of entities would be BMW the brand entities which you can provide synonyms as “Bayerische Motoren Werke AG”, “BM”, “Bayerische Motoren Werke GmbH” and “Bavarian Engine Works Company”. As for regex entity, you can use it for fixed format such as identity card number.

There are many more ways you can enhance your chatbot with LUIS. Do check out Microsoft’s documentation at this link or check out some of our chatbots that are using Microsoft LUIS and Azure Bot Framework:


XIMNET is a digital solutions provider with two decades of track records specialising in web application development, AI Chatbot and system integration. XIMNET is launching a brand new way of building AI Chatbot with XYAN. Get in touch with us to find out more.
about the article
This article is first published on XIMNET Medium. More resources available here.

XIMNET is one of the leading tech agency for AI Chatbot in Malaysia.

other good reads
Copyright 2024 © XIMNET MALAYSIA SDN BHD (516045-V).  All rights reserved   |  Privacy Policy  |  Get in Touch  |  Powered by XTOPIA.IO
Ooops!
Generic Popup2