Condition property

Official Content
Condition to evaluate in order to take an action.

Description

The Condition property is available for User input conditions.

The possible values for this property are as follows:

  1. @entity
    In this case, you specify that the input has to match any value (or a synonymous) of the entity.
  2. @entity:(value)
    In this case, you specify that the input has to match a specific value of the entity (or a synonymous). Consider the casing for the values. For example, if the value is "Debt Refinancing", the condition can be: @AdmProcessInformationType:(Debt Refinancing)
    The final user, can enter "debt refinancing" anyway, but you have to refer to it with the correct casing according  to what has been originally defined in the provider.
  3. &contextVariable="value"
    The context variable has to match some value. See HowTo: Referencing context parameters in a conversation

Samples

In the following example, the "AdmProcessInformationType" User input has the match With Entity property set to an entity of the model.

image_2018618204410_1_png

Then, it adds three conditions, and they all depend on some entity value. In this case, it's the "Driver License Renewal" value.

image_2018618203831_1_png

In the provider (in this case it's Watson), you can see:

image_2018618203932_1_png

When this property evaluates to TRUE; the Action is executed.

Note: Any changes on this property value can be applied saving the instance or doing "Generate chatbot". It isn't necessary to do a build of the application.

Availability

This property is available since GeneXus 16 (Tero).

Scope

Objects: Conversational Flows

Was this page helpful?
What Is This?
Your feedback about this content is important. Let us know what you think.