Create a Brick

Let's create a Brick!

  1. Once in the builder, click on the arrow to open the side panel, search for the Brick icon and click on it.

Press CREATE A NEW BRICK

  1. Give it a name so you can recognize it later on.

  1. To start editing "My new brick", hover over and click on Edit this brick:

  1. Once clicked, you are in! We don't need a start message, but definitely need to start with something.

  1. One of the biggest advantages of Bricks is to make complex flows easy to handle, but for this example we are going to show how variables from questions can be displayed outside the brick. That's why we are going to ask only the name and display it in the bot.

What we have done here is adding a Question and continue the flow to the Output. Output is the "EXIT" where the flow continues after it ends. There can be more than one Outputs if needed.

  1. Once we are happy with the brick, we save it.

  1. Now we go to the main bot (Back to bot), and we will connect the Brick to a message so we can display the name variable that we created in the Brick itself.

  1. Finally we connect our Brick with the Welcome Message of the landbot:

  1. And here is our landbot with the Brick!


How did we do?


Powered by HelpDocs

Powered by HelpDocs