Trigger Messages property

Official Content
Specify the triggers messages for this flow. You can type multiple messages using the ‘;’ delimiter.

Description

Trigger Messages of the Flow help train the AI engine to recognize the intents in user input.

Samples

I. The "Greetings" Flow of a conversational instance can be defined as follows.

The Trigger messages are the following:

image_2018429171918_1_png

When the intent is detected, the Flow is executed as it has been modeled.
In this example, a Conversational Object is executed: "GreetingsProcedure". It returns a &Greeting depending on the time:

parm(out:&Greeting);
&datetime = now()
if &datetime.Hour() >= 12
    &Greeting =!"Good afternoon!"
else
    &Greeting = !"Good morning"
endif

In order to display the greeting to the final user, the Messages property uses the &Greeting contextual parameter.

image_2018429172459_1_png

II. The Trigger messages can include the reference to an entity, which is represented as @EntityName.

That means that the trigger message may match with any value of the entity.

image_201852412338_1_png

Availability

This property is available since GeneXus 16 (Tero).

Scope

Objects: Conversational Flows

See Also

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