Skip to main content

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.

TagDescription
initDefines a block code which is executed only once, when the script is loading. Typically, this code initializes global variables and functions.
patternsDeclares named patterns used in the script.
requireThis tag is used for importing files into the script.
stateDeclares a state in which the dialog context can be. States can be nested into each other to an arbitrary depth.
themeDeclares a theme. States can only exist within themes.