Blocks
What is a block?
A block is an element of the bot structure where you can add components visible to the user—messages, images, GIFs—as well as actions, navigation elements, or define user variables. Block elements are displayed to the user one by one, in the order established within the block.
Adding a block
You can add a block within a selected group of blocks by clicking the “+” sign at the end of the group. The new block will appear where you clicked, and you can rename it and add elements within the block.
Another way to add a new block is by using the “Go to block” function located at the bottom of the element list of the currently selected block. To create a new block this way, instead of selecting an existing block from the list, type the name of the block you want to create in the field. An option “+ Create block” will appear. Selecting this option will create a new block at the end of the group. This newly added block will be automatically linked to the block from which it was added.
If you create a block using the “+” button, remember to set up a redirect from another block. Otherwise it won’t be used anywhere in the scenario.
Managing blocks
Naming the block
The block name should be simple and understandable for all platform users. You can add emojis for quicker identification of what each block is responsible for.
Here are some examples of using emojis to describe blocks:
🟢 – block displayed only on WhatsApp
🟣 – block displayed only on Instagram
🔵 – block displayed only on Facebook
📞 – block functioning only in the voice bot
⚙️ – block with configuration settings, actions, variables, etc.
📧 – block responsible for sending an email
👤 – block with a redirect to a moderator
❌ – block not connected to any other block in the structure
Moving the block
To move a block, simply click and drag it to another location. The order of blocks visible in the structure is not directly correlated with the order in which they are displayed to the end user. However, an appropriate layout of blocks can make it easier for platform users to navigate the bot’s structure. After making changes, remember to save them to production.
Duplicating the block
To duplicate a block, click on the three dots located in the top right corner of the screen, at the same level as the block name. Then click on the documents icon in the “Block Details” panel. The duplicated block will appear at the end of the group. Duplication includes the block’s content along with its redirects to other blocks.
To ensure the duplicated block is used in the scenario, remember to add the appropriate redirect.
Deleting the block
To delete a block, click on the three dots located in the top right corner of the screen, at the same level as the block name. Then click on the trash can icon in the “Block Details” panel. You can only delete a block that no other block redirects to. If the block is used in the bot’s configuration, the delete icon will be disabled, and a list of blocks that may redirect to the block you want to delete will appear below.
In the block details, you will only find blocks that redirect to the selected block. If the selected block redirects to subsequent blocks, this information will not be included in the details. Remember to check the block elements before deciding to delete it.