Hello everyone!

I'm new here.

I couldn't find a corresponding answer in the documentation. So need your help and tips.

I have a need to make composite slots. And no idea how to do it.

For example, if the simple slot "color" contains all the colors from the list as a keyphrases. Then the composite slot "not_color" - will contain all variations of the  phrases: not "color", where color is slot.

slot «color»:

keyphrases:

red

green

blue

 

slot «not_color»

keyphrases:

not «color»

(and this matches key phrases «not red», «not green» and «not blue» in this case)

 

Waiting for the solution! Thanks!

Didn't find what you were looking for?

New post
Was this post helpful?
1 out of 1 found this helpful

Comments

5 comments

  • Hi Maya,
    Cognigy slots actually include a flag by default that identifies if an entity (slot value) is indicated in the phrase in a negative fashion.

    That is, if the utterance contains "not blue" then you can expect like:
    input.slots.color[0].keyphrase === "blue"
    and
    input.slots.color[0].neg === true

    Here is an example in a clothing context:

    Will that work for you?

    1
  • That works only with simple "slot" - not "slot" cases unfortunately. In Dialogflow I have trained complex composite entities.  Is there any opportunity to send request there and get defined values in Cognigy?

    0
  • Hey Maya,

    In order to continue quickly, you can simply connect your Cognigy.AI Virtual Agent to Dialogflow and then use this for the NLU.

    Please find more information here: https://docs.cognigy.com/docs/nlu-connectors

     

    Best

    Alex

    1
  • Thanks Alex, will explore this...

    and quick question not with this topic. Can we update several profile schema fields in one box or we should use one box for each change?

    0
  • Hi Maya,

    You can update many profile fiends in one Code node, which will have a code similar to:

    profile.firstname = 'Max'
    profile.lastname = 'Mustermann'
    profile.accepted_gdpr = true
    profile.email = 'max@mustermann.de'

    Will this work for you?
    Anton

    0

Please sign in to leave a comment.