This site is no longer updated.Go to new Conversational Cloud docs

Triggers


In the J-Graph visual editor, the bot business logic is built upon states. Blocks are the elements which describe the user and bot behavior in the context of states.

Triggers are the patterns, intents, and events which can initiate a dialog transition to the current state.

How to add a trigger

By default, triggers are not visible in the state editing menu. In most cases, it is more convenient to replace them with expected paths, which show the direction of context links between states more clearly.

To add a trigger to the state, click  → Add trigger in the top right corner of the state editing menu. Select a trigger type and configure it.

JAICP DSL equivalents

All triggers have direct equivalents among JAICP DSL tags. They are converted to these tags when switching from J‑Graph to the source code editor.

Block JAICP DSL tag
Pattern q
Intent intent
Event event

For all triggers, you can configure the following parameters:

Parameter Description JAICP DSL equivalent
Global trigger If the checkbox is active, the state can be triggered in this way from any other state in the script. Disables the other parameters. The global tag is used:
q!
intent!
event!
Expect trigger from state If a state is selected from the drop-down list, transitions to the current state can be made only from the selected state and other states in the same group. The fromState parameter is filled.
Ignore triggers from other states If the checkbox is active, transitions to the current state can be made strictly from the state selected in Expect trigger from state, but not from other states in its group. The onlyThisState parameter is enabled.

Blocks

Pattern

The pattern editing menu allows entering an arbitrary number of alternatives for the same pattern. In the source code, these alternatives will be delimited with the | separator.

Pattern setup

Intent

In the intent editing menu, there are several things you can do:

  • Create a new intent. Choosing this option will open up a simplified CAILA interface where you can create the intent and fill it with training phrases right from J‑Graph.
  • Select among the intents existing in the project. The button to the right also opens up the embedded intents editing UI.
  • Select one of the Aimylogic built-in intents. They are different from the project intents in that their name doesn’t contain / at the start.

Learn more about built-in intents in the Aimylogic documentation

Intent setup

Event

In the event selection menu, you can add an event for triggering the state:

  • Select one of the system events which can occur in a channel, account, or project.

  • Enter an event name manually.

    Events with arbitrary names can be triggered by external systems or by JAICP itself: for example, when a text campaign is launched.

Event setup