Basic blocks - Message

The "Message" block allows you to send a text message with the addition of variables and various files (e.g., photos, videos) to the user and can serve as the start of any script. It is most often built as a default step. To form a block "Message" in text format, you need to click on the block and enter the text in edit mode.

Message in text format with variables added

Variable - a field in the user card into which information is saved, it can have different formats: Text, Number, Image, Yes/No, JSON. Everyone with whom you have a dialog has their own card with an individual set of variables, which are filled in as the script runs. Some data is loaded from the user's profile, such as Name and Phone Number.

For example, if you ask a user a question: "What is your name?", the name he writes in the answer will be saved to his card.

To use a variable, you must insert the variable name in two curly brackets in the message text. For example, to address a user by name, you can use the variable .

Instead of the variable the user will see his name.

File message
You can attach any image or other file to the text of the message.
1 - Go to "Picture"
2 - Click the "Select File" button to upload an image from your device.

The text of your message will be sent as a caption to the selected picture (located under the picture).

1 - Go to the "File"
2 - Click the "Select File" button to download the document from your device.

The file is sent as a separate message. If text or pictures are specified, they will be sent before the file in a separate message.

1 - Go to the "Videos"
2 - Click the "Select File" button to download the video from your device

Only mp4 and 3gp resolutions are supported.

For WABA: H.264 video format and AAC audio only.

Menu items ("Buttons") to go to the next message.

Menu items is a feature that allows you to configure buttons with choices and jump to the next block in the script.

Menu items are displayed to the user as a numbered option at the end of the message. When the button is clicked, the text of the button is sent to the bot as a message and triggers the continuation of the script.

What menu items (buttons) look like

Adding Menu items
1 - Select the "Menu items" field
2 - Click "Add"
3 - Enter text and button type
4 - Click "Send" to save
Continuation of the flow with a choice of options

To choose to continue a script, add the following blocks to the scripts and connect the blocks with lines.

How to connect blocks to each other and remove links between them, we tell you in our article about the Flow Editor Interface.

Text message

The Message block supports emoticons and text editing modes that are customized using special symbols from the Markdown Cheatsheet library. For example, you can select one or more words in bold, italicize, strikethrough, or highlight text.

Was this article helpful?

Your opinion will be used to improve the content of the article

The Most Multifunctional API Provider

Chat API has been operating since 2015 and is one of the first and largest providers in Eastern Europe.

Here are some curious and important figures:

  • We have tremendous expertise in docker container management at scale with an SLA of 99.5+%;
  • Chat API involves in its work more than 200 servers, with the ability to quickly connect another 100;
  • 3200 cores and 25 terabytes of RAM;
  • 200+ methods and features that keep adding;
  • Highload system, Up Time servers 99.9%;
  • Support 24\7;
Get access to the API