Blocks and types

How to work with blocks

MaviBot allows you to create a chatbot by designing its structure as a flowchart consisting of blocks and arrows.

A block represents an action or event that the bot needs to process or perform.

There are Connections between blocks, where you can define a condition and/or the exact time for transitioning to the next block.

Conditional blocks serve to trigger the bot under specific conditions. Unconditional blocks operate only when reached via arrows or callbacks (which we will cover later).

All blocks share a unified structure: Each block contains a list of sections that you can enable or disable as needed.

The Message section allows you to specify the text of the message. You can use variables in the text by applying the following format: #{variable_name}.

Each block has a popup menu that allows you to perform specific actions on the block, including:

  • Block copying:

  • Block deleting:

  • Copying the block with linking

  • Moving to another sheet:

Let’s take a closer look at each block type: how to create them and what they are used for. To create the first block, simply double-click the left mouse button on the editor workspace (by default, a Start block will be created), or select the block type from the menu.

Let’s take a closer look at each of them.

Chat block

If the block should not contain any text, enter #{none} in the response field (this is the default).

Dialogue state: a white block without a condition. You can enter this block only via an arrow. It is intended for intermediate responses, branching, and sending multiple messages one after another at specific time intervals.

Start block

Initial condition: a bright green block with the highest priority. The entire bot sequence can also start from this block. The main difference from the Start of dialogue block is that conditions in these blocks are checked first. If the client enters a keyword or phrase from this block during the conversation, they will be immediately redirected to it.

Example of configuring the bot’s reaction to a client greeting:

The client will receive the message "Hello!" in response.

Leads block

Leads block it's a block without a condition, colored red.

The main purpose of this block type is to create an application (lead). When transitioning to this block, all data collected up to that point (variable values) about the user are sent to the CRM system, email, personal WhatsApp or Telegram (or any other contact specified in the project settings) as a ready-made application. After the transfer, the variable values of the deal are deleted from the builder.

Trigger

Trigger block is a dark gray block. Functionally, it is similar to the Start block, with the only difference being that the client does not transition into this block.

The priority of this block, compared to other conditional blocks, is the lowest — meaning it will be triggered last.

Fallback

Fallback block is a gray block. It doesn’t have conditions like the Trigger t block, and it cannot be transitioned into.

Last updated