Skip to main content

Blocks

tip
A block is a basic unit from which the bot logic is based. Each block is an action the bot should perform when it interacts with the client.

For example, a block can display text or an image on the screen, pause the bot until the client responds, or send SMS messages to clients.

What does a bot do with blocks?

You add blocks to the screen, and the bot performs them in the order from the top to the bottom within that single screen.

For example, you can see a screen with 2 Text and 1 Intents blocks in the screenshot below:

Blocks

The bot will act in the following way:

  1. The bot starts with the “Hello!” message from the first Text block.
  2. The bot displays the message from the second Text block: “Do you want to play a game?”.
  3. The bot performs the Intents block, i.e. it waits for the client to agree or disagree and then performs the next action depending on what the client enters.

How can I connect the blocks?

Blocks are connected to screens by arrows. If a block has an output connected to another screen, the bot will switch to that screen and proceed to perform the blocks it contains.

Let’s look at the following example:

Connect blocks

The bot will perform actions in the following order:

  1. The bot writes “Hi!”.
  2. The bot asks “Would you like to play a game?”.
  3. The bot waits for the client to answer.
  4. If the client’s answer is “yes”, this response will fall into the Agreement intent.
  5. The bot switches to the screen assigned to the Agreement intent, i.e. it will say “Great! What is your name?”. It will wait for the client to reply as the second screen also contains the Intents block.

What blocks are available in Tovie DialogStudio?

Bot response

The Bot response section includes the most common messages the bot sends to the clients:

User says

The User says section includes all possible message types that the client can send to the bot.

  • Agreement
  • Disagreement
  • Switch to agent
  • Phone
  • Date&Time
tip
To create your own class of common client responses, click Create your own intent.

In the More blocks section, you can find the list of common client responses and Extended capabilities.

Extended capabilities

The Extended capabilities section includes blocks that allow you to save the data received from the client into a variable.

Actions

The Actions section includes blocks with various actions the bot might perform.