Table of contents


Official Content

Specifies the trigger messages for this flow. You can type multiple messages using the ‘;’ delimiter.

Scope

Objects: Conversational Flows

Description

Trigger Messages of the Flow help train the AI engine to recognize the intents in the user's query.

Trigger messages can include a reference to an entity, which is represented as &EntityName.
It can also include a reference to a system entity, such as 

  • &datetime
  • &date
  • &Numeric 

This has two purposes:

  • Better recognize the intent,
  • Automatically infer from the user's query some User input values, and avoid prompting for them.

See the examples below.

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 of day:

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 end user, the Messages property uses the &Greeting contextual parameter.

image_2018429172459_1_png

II. Using entity references in the Trigger Messages.

Suppose that you have the following Flow, where the intent is to ask for free tickets for an activity or to visit a place in the city.

image_20181121164438_1_png

One Trigger Message is the following: "I need &numeric tickets for a guided visit to &ActivityName:{Solis Theater}"

&numeric refers to the "PromotionalTicketsQty" User Input which is of numeric data type:

image_2018112116470_1_png

&ActivityName refers to the "ActivityName" User Input, which has Match With Entity property = TRUE, and Entity property = ActivityName.

image_20181121164838_1_png

So when the user says: "I want 3 tickets for a guided visit to Solis Theater," the "PromotionalTicketsQty" value is automatically inferred as well as the "ActivityName," without the need to prompt him for this information.

See Also

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