Table of contents


Official Content

Condition to evaluate in order to do a redirection.

Scope

Objects: Conversational Flows Instance

Description

This property is availble for the Chatbot User Input Redirections nodes. The condition must evaluate to TRUE in order to the redirection to be executed. The flow to be redirected is determined by the Redirect to Flow property.

The condition should be an expression based on a context variable. 
You have to use the same casing as the variable defined as User Input in the instance.

Note: 

Only for Watson, you could also use code to be directly evaluated by the Provider, for example:

  • @entity

In this case, you specify that the input has to match any value (or a synonymous) of the entity.

  • @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: @AdmProcessType:(Debt Refinancing)
The final user, can enter "debt refinancing". But at the property level, you have to refer to it with the correct casing according  to what has been originally defined in the provider. This syntax is valid only for Watson.

Nevertheless, the recommendation is to use GeneXus code, so the chatbot model is portable to any provider.

Samples

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

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

image_2019712124542_1_png

If none of the conditions matched, the user would receive the response message.

Notes:

1. It's important to respect the case sensitivity of the value defined in the Provider. In this case it's "Driver License Renewal" with these uppercase letters.

2. The user can enter the same value of the Entity, or any synonymous of it ("Driver Licence Renewal"). However, the Chatbot User Input variable will take the Value of the entity instead ("Driver License Renewal").

When this property evaluates to TRUE; the flow indicated in the Redirect to Flow property is executed.

Availability

This property is available since GeneXus 16 upgrade 5.

Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant