Detecting if the Entity exists at any level
Currently we have to use internal.nlp.entity[0] OR internal.nlp.entity[1] etc
Or we use an action where we go through each of the entity values
Would be good to have the possibility to detect the presence of an entity even if it is nr 2 or 3 in a sentence.
-
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 -
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.
Comments
2 comments