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){
if(entities){
var entityname = builder.EntityRecognizer.findEntity(entities, 'TYPE');
//do something with entity
}
}
Advertisement

Leave a Reply

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

WordPress.com Logo

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

Facebook photo

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

Connecting to %s