Skip to content

Message Block

The “Message” Block is the main dialogue element in Grailgun that allows you to send messages to users and control the conversation flow. A Message represents one step in the dialogue with the user, where the bot sends a message and waits for a response or moves to the next step.

  • Sending text messages to the user
  • Forming dialogue structure
  • Linking with other Blocks to create communication scenarios
  • Using buttons for navigation through bot dialogue with users and creating link buttons
  1. Open the bot builder
  2. Click the “Add Message” button on the blocks panel
  3. The Block will be added to the workspace
  1. Double-click on the “Message” Block in the builder
  2. An editing form will open with a text input field for the message
  3. Enter the text that the bot will send to the user
  4. Click “Save” to apply changes

When editing a “Message” Block, the following validation rules apply:

  • Message text cannot be empty. When attempting to save or close the form with an empty field, the system will show a warning.
  • The field with an error is highlighted with a red border and error text “Message text cannot be empty”.
  • The error automatically resets when text is entered.

When attempting to close the editing form with an empty text field:

  1. A dialog box with a warning will appear
  2. You will be offered two options:
    • Cancel editing — close the form without saving changes
    • Return to editing — keep the form open to continue working

To apply changes to the form, you must click the “Save” button. When clicking outside the form or on the “Close” button, changes will not be saved!

The “Message” Block can be linked with other Blocks to create a dialogue scenario:

  1. Hover the cursor over the connection point (port) of the Block
  2. Press and hold the left mouse button and drag the connection to another Block’s port
  3. Release the mouse button to create the connection
Hello! I'm the Grailgun bot. How can I help you today?
Here's information about our product:
- Feature 1
- Feature 2
- Feature 3
Want to learn more?
  • Try to make messages brief and informative
  • Use emojis to add emotional color to messages
  • Break long messages into several for better readability
  • Always verify that the message text is not empty before saving

Theoretically, there are no length restrictions, but for better user experience it’s recommended to make messages brief and split long texts into multiple messages when possible.