Build delightful conversational flows by connecting all of your favourite blocks.
Build a static bot - part 1 ( message, media, question and button blocks)
Koushik Ram
Updated on Dec 22, 2023
In this video, we will learn how to create a new recipe and add message, media, question and button blocks in it.
Click on the Bot Recipe button on the left-hand side and then click on Create New Recipe. Give a name to your recipe and click on Create Recipe.
Add a message block by naming it and updating the content of the block. A message block is used to display a message to the user and does not require any input from the user.
Add a media block by uploading multimedia content such as an image, video or a PDF. Click on Upload Media and upload the media to be displayed to the user. Like message block, even media block does not take any input and does not wait for any input from the user.
To connect two blocks, just click on the bubble of the first block and join it with the entry bubble of the next block. Always make sure you publish your recipe for the changes to get reflected.
Add a question block by naming it and updating the content of the block. A question block is used to ask questions to the user and moves forward in the flow only if the user responds to the questions. User's response can also be stored in variables.
Add quick replies to a question block by clicking on the add button and typing the text to be displayed in the quick reply. You can also store a value to a variable when the user selects a specific quick reply. Please note that quick replies are not supported on WhatsApp.
Create new variables by clicking on the settings button on the left-hand side, going to chat settings and clicking on variables. Give a name to the variable you are creating and ensure that the variable type is text even if you expect a numerical response or a date response from the user.
Add triggers to quick replies by typing a specific message that the user can type instead of clicking on the quick reply. This is useful on WhatsApp since quick replies won't be displayed on WhatsApp.
Add a button block by naming it and asking the user a question. Creating buttons is the same as creating quick replies on question blocks. You can store values or update values of a variable when the user clicks on a button with the variable option. Button blocks are supported on WhatsApp as well.
For question blocks with quick replies and button blocks, we cannot directly connect that block to the next block. We have to connect each option or the button individually to where it will go next in the flow.
That's it for the video. Hope you understood how to create a recipe, add message, media, question and button blocks. We also saw how to create variables and store values in variables.