Message Block
“Message” Block
Section titled ““Message” Block”What is a “Message” Block
Section titled “What is a “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.
Main Functions
Section titled “Main Functions”- 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
Creation and Editing
Section titled “Creation and Editing”How to Create a “Message” Block
Section titled “How to Create a “Message” Block”- Open the bot builder
- Click the “Add Message” button on the blocks panel
- The Block will be added to the workspace
Editing a “Message” Block
Section titled “Editing a “Message” Block”- Double-click on the “Message” Block in the builder
- An editing form will open with a text input field for the message
- Enter the text that the bot will send to the user
- Click “Save” to apply changes
Important Features
Section titled “Important Features”Text Validation
Section titled “Text Validation”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.
Closing the Editing Form
Section titled “Closing the Editing Form”When attempting to close the editing form with an empty text field:
- A dialog box with a warning will appear
- 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!
Linking with Other Blocks
Section titled “Linking with Other Blocks”The “Message” Block can be linked with other Blocks to create a dialogue scenario:
- Hover the cursor over the connection point (port) of the Block
- Press and hold the left mouse button and drag the connection to another Block’s port
- Release the mouse button to create the connection
Usage Examples
Section titled “Usage Examples”Simple Greeting
Section titled “Simple Greeting”Hello! I'm the Grailgun bot. How can I help you today?Informational Message
Section titled “Informational Message”Here's information about our product:- Feature 1- Feature 2- Feature 3
Want to learn more?Tips and Recommendations
Section titled “Tips and Recommendations”- 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
Frequently Asked Questions
Section titled “Frequently Asked Questions”Is there a limit on message text length?
Section titled “Is there a limit on message text length?”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.