Declarative tags
Declarative tags describe the overall script structure: they define the states building up the bot business logic, determine the imported files, and execute code and pattern initialization.
Tag | Description |
---|---|
init |
Defines a block code which is executed only once, when the script is loading. Typically, this code initializes global variables and functions. |
patterns |
Declares named patterns used in the script. |
require |
This tag is used for importing files into the script. |
state |
Declares a state in which the dialog context can be. States can be nested into each other to an arbitrary depth. |
theme |
Declares a theme. States can only exist within themes. |