Blocks
Blocks are the rectangles on your canvas that represent a certain place in the conversation.
Last updated
Blocks are the rectangles on your canvas that represent a certain place in the conversation.
Last updated
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 block types.
Default 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 bot canvas.
Any message a bot is sending to a user is what we call a bot message. This includes text messages, buttons, quick replies, etc.
MessageIf 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.
ConditionUse Collect input blocks to gather input from your users.
Collect inputAction blocks are where 3rd-party, coding logic or special operations can be added to your bot.
ActionIntent blocks represent an intent from the user.
IntentsWhen you create a bot from scratch on Chatlayer, a few predefined blocks appear in your General flow:
Not understood: a block show when your bot didn't understand the user.
Introduction: the first message that is send to the user to open the conversation.
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.
Block disabled: appears when you disable your bot in the Settings.
Not sure where to go from there? We've got you covered with our Leadzy tutorial.
Chatlayer offers two different views of your block, where you can configure what the bot will answer to a user.
The Flows view displays your flows on the bot canvas in a tree-like visual.
To access the Flow view:
Open your bot.
Under the Bot builder tab, click on Flows.
In the Bot dialogs 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 here.
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.
The specific flow or subflow where your block is stored.
You may use the Label field as a custom identifier for your block when integrating solutions through the Webhook Channel API .
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.
In this field, you can define a Parent block.
The parent block and the child block should be in the same flow.
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:
Context