How to build a script of an Agent

icon picker
Script tree navigation

Custom Slot Lighting

For ease of orientation in the
@Script Tree
⁠
, you can change the color highlighting of the
@Slot
⁠
s. To change the color of a
@Slot
⁠
in the
@Script Tree
⁠
, you must add the name of the color to the
@Slot
⁠
name in the format suggested below:
#{HEX code} ​
image.png
⁠
⁠
image.png
⁠
⁠
#{html-color-name} ​
image.png
⁠
⁠
image.png
⁠
⁠
Special word #color — to set the default color (#fff94f) ​
image.png
⁠
⁠
image.png
⁠
⁠
If you specify several colors in a row, the last color will be selected: ​
image.png
⁠
⁠
image.png
⁠
⁠
Important: the
@Slot
⁠
color code added to the name becomes part of it and is displayed in the
@Script Tree
⁠
.

Collapsing Script branches

For ease of working with the
@Script
⁠
, you can collapse the
@Script Branch
⁠
into one
@Group Slot
⁠
by clicking on the minus sign in the upper right corner of the
@Slot
⁠
. ​
image.png
⁠
⁠
The
@Group Slot
⁠
will be highlighted in blue and the minus sign in the upper right corner of the
@Slot
⁠
will change to a plus sign. ​
image.png
⁠
⁠
In order to expand the
@Script Branch
⁠
, you need to click on the plus sign in the upper right corner of the
@Group Slot
⁠
.
Multiple nesting of
@Slot
⁠
s is possible: if a
@Script Branch
⁠
that contains one or more
@Group Slot
⁠
s is collapsed, when it is expanded, the collapsed
@Script Branch
⁠
es it contains remain collapsed, i.e.
@Group Slot
⁠
s are saved.
If the
@Slot
⁠
was colored in a custom color before collapsing, the
@Group Slot
⁠
will be highlighted in blue after collapsing. ​
image.png
⁠
⁠
The grouping of
@Slot
⁠
s is saved in
@BotBuilder
⁠
, thus the collapsed
@Script Branch
⁠
remains collapsed when opening the
@Agent
⁠
on another computer or from another
@User Account
⁠
, as well as when exporting/importing the
@Agent
⁠
configuration file.
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.