Skip to main content

intent!

The intent! trigger tag declares an intent by which the dialog can enter a state.

tip
This is a global tag: transitions by this tag can be made from anywhere in the script.

Value

A path to the intent is specified after the tag. Within the path, / is a separator between nesting levels:

  • /hi — the path consists of the / character and the intent name.
  • /hi/politely — a nested intent. There is no upper limit to the nesting depth.

How to use

state: Greeting
intent!: /Greeting
a: Hello there! We’ve got a great deal just for you? Interested?

state: Callback
intent!: /Callback
a: Okay, I’ll call you back later!