Builder blocks
Bricks
20 min
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 groups of blocks that will considerably reduce the size of your flows and keep it organized 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 organize 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 https //help landbot io/article/snxrskcvjk explore import ready to use 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", customize, 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 to create a new brick before adding blocks to it , you have two different options clicking on the brick icon within the chatbot builder and selecting create a brick dragging and dropping the green dot of any block and selecting brick as the block type 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 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 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 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 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 back to the 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 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 , which 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 previously copied blocks in two ways from the top menu just click on paste and the block will be pasted on the right side of the flow 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 organization, 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 as 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 it to your case you can check out all the information about them in https //help landbot io/article/snxrskcvjk explore import ready to use bricks workarounds 🚀 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 https //help landbot io/article/ci2w8cl9gk brick templates to see how to do this