Arrows connect to the blocks and apply logic to the flow. To create an arrow, we only have to move the cursor over a block: we will see three circles for each type. We click, drag and drop in any free space, which will create a new block at the end of the arrow.
Types of arrows
We find three different types of arrows in Helloumi, which we explain below:
- Green arrows. Also called Success, they indicate that, if everything goes according to plan, it advances directly to the next block. For example, if you place two message blocks connected by green arrows, they will run one after the other.
- Red arrows. Also called Failed, are the ones that follow the flow when "something goes wrong". The most common cases occur when the chatbot is not able to recognize the password sent by the user, or the format of a personal data such as email.
- White arrows. Also called Keyword, are the ones that allow us to derive certain blocks based on the sent keywords/options chosen by the user.
Combination of arrows
One of the basic rules of the arrows is that a green arrow and a white arrow can not come out of the same block because a logic conflict would be generated: a white arrow is followed when the specified keyword is recognized, which is a "Success in itself" and would conflict with the arrow Success.
On the other hand, we can combine white arrows and a red one for that case in which the user types an option/keyword not contemplated by the flow, which produces a Failed.
The most common combination is a green arrow and a red arrow: when the client says what we expect we follow the green arrow to the next block; If not, send it to an error block through a red arrow, being able to follow a different path or return it to the original block to try again.