Trigger Messages property

Official Content
This documentation is valid for:
Specifies the trigger 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 the user's query.

Trigger messages can include a reference to an entity (this is supported only in Watson, in DialogFlow is a deprecated feature), 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 (this is supported only in Watson, in DialogFlow is a deprecated feature)

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"

@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

Note that this way of expressing the Trigger Messages is also very helpful to give semantics to the training phrase, for example: "When does @airline flight @numeric arrive?".

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.