How to extract custom entity from LUIS in the middle of conversation?

When you create  dialog it matches the utterances in the intent created in the LUIS application.

To extract the entity from the user utterances we have to use LuisRecognizer.recognize()

To find the entities present in the user utterances Entity Recognizer methods are used.

The best way to recognize entity is below:

builder.LuisRecognizer.recognize(session.message.text, '<model-url>',
function(err, intents, entities){
var entityname = builder.EntityRecognizer.findEntity(entities, 'TYPE');
//do something with entity

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s