This class is responsible for consuming the result from LUIS web service and perform actual task. For example, [LuisIntent(“bot.intent.search”)] attribute means that the SearchDocument function will be called once the bot.intent.search intent was identified by LUIS.
public async Task SearchDocument(IDialogContext context, LuisResult result)
string keywords = TryFindKeywords(result);
await context.PostAsync("Sorry, I can not find any keywords, please try again.");
public async Task Help(IDialogContext context, LuisResult result)
public async Task About(IDialogContext context, LuisResult result)
3. Storage account in Azure
Chatbot is using Azure storage account (table) for storing end user profiles, such as Full name, email address and subscribed rules codes. It is not a mandatory component for the bot, but simply an user profile database.
4. Luis in Cognitive services
Luis model is the brain of the chat bot. It is pretty easy to setup and training it without programming skill. Based on the experience, 100 sample inputs can produce a reasonable AI.
Tips: Remember to re-publish Luis endpoint once a while during the training process, otherwise the client (bot) won’t pick up the newly trained sample.
5. Search engine in SharePoint
Once Luis has identified the search intent and the to-be-search keywords, the information will be passed to the search engine for query. In this case, the search engine is SharePoint.
All rules pdf files are indexed by SharePoint search engine - it provides good support for full text search and meta-data enhancement (via Content Enrichment Web Service during the indexing process).
Using a search engine is the biggest improvement compares to older version, where the search logic was simply matching words in rules title.
Enabling Identity Foundation Framework on windows 10 One of the dependency component of the PnP nuget package is Identity Foundation Framework. You cannot download an installer for windows 10, but simply enable the feature in windows 10. Go to Control Panel -> Uninstall a Program on the menu -> Turn Windows Features On or Off -> Check “Windows Identity Framework 3.5”
Install Microsoft.IdentityModel.Extensions.dll library Another dependency is Microsoft.IdentityModel.Extensions.dll. Download 32-bit here and 64-bit here.
Security is important aspect for any bot service, therefore pay extra attention about how you expose data via your bot service. (Read more at here)
It also the same for the privacy of your end users.
This chatbot prototype is a personal project. It is only based on the public information of the DNV GL rules. It has NO connection with DNV GL AS. All information from the chatbot is presented ‘as-is’. No warranties whatsoever for correctness; completeness or usefulness.