Negative examples - what are best practices

I would like some advice about negative examples (seen in triggers and transitions) and how exactly Teneo uses them. Also what are best practices in writing negative examples? And what happens if a trigger doesn’t have any negative examples? So far I haven’t used them, because I wasn’t sure how to write them.

Any help would be appreciated!

We haven’t devoted much time to negative examples at because their use is not one of the core concepts. Basically negative examples have the following function:

  1. Tested by autotest, to be sure they DO NOT trigger the associated condition. Described here:
  2. Used by NLU Generation (auto coding): if you generate a condition based on positive examples, it is assured that the condition is not true for the negative examples. See also:
  3. They are NOT used by class triggers, but can be a reference for you to create a hybrid trigger: one where you assure that the negative examples do not trigger the flow, even if the class is selected. See also:

As for what to use as a negative example: We usually wait until we see which inputs falsely trigger a flow to see what should be added. Don’t spend too much time worrying about all the inputs that should not enter the flow.

In general these would be inputs that look very similar to the positive examples but meaning something different. For example: something that triggers on “I love you” should not trigger on “I don’t love you”. If it does, add the negative example, and regenerate the condition.

Let me know please if you have any further questions