Text trigger

You should use text triggers when you want to start a dialog directly from a user's message. When the virtual assistant recognizes the intent behind the user's message, it activates the corresponding trigger and starts the respective dialog. A text trigger is always connected to an intent, which signifies the activation of the trigger.

How to use a text trigger

A Text trigger is connected with the intent #store_hours. When a user sends a message like "When are you open?", the brain identifies the intent as #store_hours and starts the corresponding dialog.

DialogChat

Multilevel dialog

You can also use a text trigger as a child node in a dialog. This means that the brain activates the trigger only when it is already inside the dialog of a parent node. The following example shows a case in which the intent #affirmative is used as a parent and a child node.

You can see that when #affirmative is the parent node, if the user types 'yes' the message 'I'm listening!' comes up. However, when they ask about appointments and the brain asks for confirmation, given that #affirmative is a child node of the #appointments one, the response of booking appointments comes up.

Last updated on