Table of Contents

Bricks Ultimate Guide

Rafaela Basso Updated by Rafaela Basso

Group blocks into Bricks to create a whole different experience in your bot!

What are Bricks?

In the beginning, we only had blocks to create our bot flows ๐Ÿ‘‡

But now we can create a groups of blocks that will considerably reduce the size of your flows and keep it organised... a Brick ๐ŸคŸ

So, the best part about Bricks is how flexible they are...

  • ๐Ÿ“‚ Bricks are like Folders: You can add a number of blocks (o Bricks within Bricks) to organise your bot flow.
  • ๐Ÿ”Œ Bricks are like Plugins: Plugins, that you add to your bot for new functionalities without the need of building it from scratch, these are our Bricks Workarounds.
  • ๐Ÿƒโ€โ™‚๏ธ Bricks are like Shortcuts: Don't repeat again the same blocks, just save them inside a Brick, and add it to your bot whenever you need it!

Note: In the future Bricks will be like "Open Source code". That means, you will be able to "download", customise, reuse and republish the Bricks to help other Landbot users with their bots and ideas.

But for now you can do it only within the bots of your account.

How to create a Brick from scratch

  1. To create a new Brick before adding blocks to it, you have two different options:
    1. Clicking on the Brick icon within the chatbot builder and selecting Create a brick:

    1. Dragging and dropping the green dot of any block and selecting Brick as the block type:
      โ€‹
  2. Now, you'll see the just created Brick in the canvas. If you hover it, you will see a button to Edit this brick. Click there to start editing:

Bricks basic set up

Once you enter the Brick editor, you will see that it has two main elements:

  1. First Message: Click on the signed space to create the first message ("Click to create the first message of this Brick"). The Brick has to start from that point, so you must click on the indicated space to add a new block.
NOTE: Do not connect blocks before the first message!

The Brick must start in the first message, but you can connect any block after that.

  1. Output: You must add an "exit" so that the path leaving the flow inside the Brick can be connected to the main flow. Each exit point of the Brick is called an Output.
    Once you've added the blocks needed, connect the last block to the Output.
  1. Add more Outputs: You can add extra Outputs if you have more than one flow inside the same Brick, by clicking on Add another output.
    This is how it will look like inside the Brick:

  1. Give a name to each Output: You can change the name of the Output, to make it easier to identify it from the Main flow:

WARNING: The Brick must start in the "Start here" Message and end in the "Output". If you do not set this up correctly, the Brick will not work.

  1. Back to bot: Once you're done, click on Back to bot on the top-right corner to move back to the original flow:

As you can see, it has the three Outputs created. Remember to connect every Output to a block in the main flow to make sure the bot flow continues.

How to create a Brick from a Group of blocks

It is also possible to create a Brick out of a group of blocks we already have in the bot flow, by selecting these blocks adding them to a Brick.

You just have to select them and click on the button Create Brick, that appears on the bar on the top of your bot when you select blocks.

NOTE: It is not possible to "UNDO" a Brick.

But you can copy the blocks from inside the Brick and Paste them in the main bot flow to do this.

Select, Unselect or Delete a Group of blocks

How to Select a group of blocks

You can select more than one block, just by selecting it in the top left corner.

How to unselect a group of blocks

In case we are done with the selection, we just need to click on NONE.

Delete a group of Blocks

In case we need to delete a group of Blocks, just select as many as you want to and click Delete on the top bar.

Copy and Paste a group of blocks

Copy a group of Blocks

This is handy when you want to create another flow or repeat many blocks at once.

Paste a group of Blocks

You can paste a previous copied blocks in two ways

  1. From the Top menu: just click in Paste and the block will be pasted on the right side of the flow.

  1. Right button in Mouse/Trackpad: Instead of using the top bar, you can just click with the right button of your mouse/trackpad to see the option to copy and paste.

Create a Brick from selected blocks

If you are not sure how to select a group of blocks, please see the steps above ๐Ÿ‘†

This is the quickest way to create a brick, without the need to start from scratch.

However you have to be aware of 2 things:

  • The connections (arrows) coming to the blocks will disappear, and this action cannot be undone, so you will need to reconnect the Brick.
  • Once the Brick is created you need to create a start message from scratch. Create the first block by clicking on the First message of the Brick, and connect this first message to the rest of the flow from the Brick.

Bricks Settings

If you want to add more information to your Bricks to help with your organisation, you can do that in the Bricks Settings.

To do so, when inside the Brick you just have to click on Brick Settings, where you can add a:

  • Name - Under "Edit the brick name" you'll be able to assign a name to your brick to make it easier to find it later.
  • Description - Below "Add a short text to describe your brick" you can add a little description that will help you - and others - find out what this brick is about.
  • Category - Like it says, here you can assign categories to the brick.

Don't forget to click on Save Changes to save the new settings.

Bricks Workarounds

We have created some Workarounds and included them in Bricks, so that you can just import the Brick Workaround into your bot and adapt to your case.

You can check out all the information about them in this article ๐Ÿš€

Brick Templates

It is also possible to create a Template out of a Brick you have created, and import this Brick Template into your bot or other bots from your account.

Please check out this article to see how to do this.

How did we do?

Brick Templates

Contact