Reaction tags
Reaction tags define the reactions executed upon entering a state.
Tag | Description |
---|---|
a |
Sends a text reply. |
audio |
Sends an audio file. |
buttons |
Sends buttons used for making transitions to other states. |
go |
Executes a deferred transition to another state. Target state reactions are not executed, but the next request is processed in the context of this state. |
go! |
Executes an immediate transition to another state. |
if elseif else |
These tags enable script branching: executing different reactions based depending on the defined conditions. |
image |
Sends an image. |
inlineButtons |
Sends inline buttons. Clicking an inline button can either send some data or make the user follow a link. Inline buttons are displayed inside the dialog as chatbot responses rather than underneath it. |
random |
Executes one randomly chosen reaction. |
script |
Executes JavaScript code. |
video |
Sends a video file. |
newSession |
Deprecated Creates a new session. |