Blocks
Blocks are the rectangles on your canvas that represent a certain place in the conversation.
Last updated
Was this helpful?
Blocks are the rectangles on your canvas that represent a certain place in the conversation.
Last updated
Was this helpful?
Chatlayer offers multiple block types serving different functionalities. On your bot canvas, the blocks appearing are either:
Build by yourself by choosing out of our available .
blocks existing for any bot on Chatlayer.
There are 4 kinds of blocks that you can choose from to build your flows. Each block type comes with its own colour and functionalities.
The blocks menu is available on the left-hand side of your .
Any message a bot is sending to a user is what we call a bot message. This includes text messages, buttons, quick replies, etc.
If you want to add rules to determine where a user is guided to, based on the value of a variable, you can do it with this block type.
Use Collect input blocks to gather input from your users.
Action blocks are where 3rd-party, coding logic or special operations can be added to your bot.
When you create a bot from scratch on Chatlayer, a few predefined blocks appear in your General flow:
Error occurred: a block triggered when an API integration fails to complete a certain request, or when Chatlayer considers your bot to be blocked in a loop.
Chatlayer offers two different views of your block, where you can configure what the bot will answer to a user.
To access the Flow view:
Open your bot.
You can modify your block when you open it, either under the Settings tab or the NLP tab.
To access your block general settings:
Open your block.
At the top of the windown, click on the Settings tab. From there, you can access and modify different pieces of information.
Your block name.
Your block type.
For example: say you want to store the number of times some specific block ( eg. Greeting Message
) has been triggered. You have added a custom label to that block (eg. messages_greeting
). Now if you delete the Greeting Message
and recreate it, its unique identifier on the Chatlayer side will change, but you could still add messages_greeting
as the custom label again.
If you use this custom label in your system to check if the block has been triggered then nothing on your side needs to be changed, just make sure the label of the recreated block is the same as the label of the block you deleted.
This is the ID associated with the block. You can use this to debug your bot using the Emulator.
To access your block NLP settings:
Open your block.
At the top of the windown, click on the NLP tab. From there, you can access and modify different pieces of information.
Here, you can select an output context for your bot if you wish to re-use the same intent at different points in the conversation. Learn more about context and lifespan below:
Intent blocks represent an from the user.
: a block show when your bot didn't understand the user.
: the first message that is send to the user to open the conversation.
Block disabled: appears when you disable your bot in the .
Not sure where to go from there? We've got you covered with our tutorial.
The view displays your flows on the bot canvas in a tree-like visual.
Under the Bot builder tab, click on .
In the view, you can visualize your blocks as a table, which is helpful for searching, filtering and sorting blocks.
You can filter the Bot dialogs view based on many filters. Learn more .
The specific where your block is stored.
You may use the Label field as a custom identifier for your block when integrating solutions through the Channel API .
In this field, you can define a block.