Skip to main content

Detecting if the Entity exists at any level

Comments

2 comments

  • Brecht Cools

    Thanks for reaching out Ivan,

    Could you expand on the use-case?

    Because as you explain, you are able to extract the NLP result.

    0
  • Ivan Westerhof

    Hi Brecht,

    Sure, we do it here for example: https://app.chatlayer.ai/bots/kwwbfve0/DRAFT/botdialogs/flows/bcf4a9fa-9903-40ab-bd76-238ae76326f8/dialogstate/6aa1ac71-1ab8-4841-9d66-43ce5a6a97fc

    We use a forEach loop to go through each of the internal.nlp.entities values, because we want to see not only if the entity is there in the "first place" (entities[0]), but in ANY place, (entities[0] OR entities [1] etc). Using the forEach is the best way we've found until now but I think this could be a useful feature as we use entities more and more to improve NLP experience 

    Hope that's a bit more clear! If not, we can always do a quick call to go through it! 

     

     

     

    0

Please sign in to leave a comment.

Powered by Zendesk