One of the two available types of message cards, the text block, can display a textual message to your user. This feature is particularly useful for conveying information to users that doesn't require their input. For instance, you can add a welcoming message to greet users when they initiate a conversation with the chatbot.
Why use text block?
Text blocks help ensure that users receive clear, concise, and relevant information at appropriate points when interaction with the chatbot. You can use a text block to provide updates about their requests, share important announcements, give step-by-step instructions for a process, or acknowledge the receipt of the information and confirm that the process is moving forward.
The text block cannot exceed the 1000-character limit. For Facebook and Telegram channels, only text can be shown. Text formatting, inserting links and adding attachments are not allowed.
Steps to create a text block
1. To add the Text block to the flow, click the add block icon (+)
2. Choose Text under the Message Cards section.
3. Add the message you want to show the user in the Message field.
4. Add a unique name for the block in the Block name field.
5. Click on the Preview block option to see how the block would be displayed to the user.
6. If you are satisfied with the output, click Save.
7. Click Save.
8. Publish the flow.
If you enter the name of an existing block for another block, the below error will be displayed. If you want to keep this block as the end of your conversational flow, toggle 'on' the End block option. If you try to close the block listing without saving the text block, all the unsaved changes will be lost permanently.
Steps to edit a text block
You can edit a text block whenever required, even after the flow is published or in the drafts section, by following these steps:
1. Open the flow and click on Edit.
2. Click the Text Block, which you may have named differently.
3. Choose Edit Block from the displayed options.
4. Make the required changes to the block and click Save.
5. Click Save.
6. Publish the flow.
- If you edit a block while an end user is engaged in a live session with the bot, the previous version of the flow will be rendered until they restart the conversation.
- After making changes, you will need to publish the flow for those changes to be reflected in an end user's session.
- If a change is made to an input variable, it will be updated automatically across all flows where the variable is used.
Steps to copy a text block
The copy block option can be used when you need to reuse a block that you previously created; you can copy that block and add it to your flow as it is or edit it according to the requirement.
1. Click on the Text Block you wish to copy.
2. Choose the Copy Block option; the block will be pasted on the clipboard.
3. When you require to paste that block, click the Add block icon (+).
The pasted block would appear on the block listing section and be stated as From Clipboard. 4. Edit the block if required or simply click Paste.
- The copied text block can be pasted multiple times. If you no longer need to paste it, you can clear the clipboard by clicking the close icon corresponding to the clipboard option.
- When copying an existing text block, all of its content, including any variables, will be copied as is. You can edit it as needed before adding it to the flow. Since the names of each block must be unique, the word '_copy' will be added to the copied blocks automatically; this can be changed if required.
- If you have copied a block and it is in the clipboard, deleting the copied block later will also remove it from the clipboard.
Steps to delete a text block
1. Open the flow and click on Edit.
2. Click the Text Block, which you may have named differently.
3. Select Delete Block from the displayed options.
4. Confirm deleting the selected block by clicking Yes, Delete it.
You can use the undo option to restore a deleted block as your following action, but not otherwise.
5. Click Save.
6. Publish the flow.
- If you delete a text block while an end user is engaged in a live session with the bot, the previous version of the flow will be rendered until they restart the conversation.
- After making changes, you will need to publish the flow for those changes to be reflected in an end user's session.
If the deleted block has dependencies, such as those given below, errors will be displayed.
Path below the block:
If the block was used to jump to a different flow:
Use case
A customer purchased a phone case from the online store Zylker Electronics. Immediately after the payment was processed, they received an acknowledgment from the bot confirming that the payment was successful and the shipment was being prepared.
Example of a text block in a flow
Acknowledgment message
The Zylker team has to convey to the user that their payment has been successful, and their shipment is being processed.
Bot prompt: Great news! Your payment has been successfully processed, and your shipment is now being prepared. Thank you for shopping with Zylker Electronics!
Input given in the builder:
GC widget's output:
Best practices
- Ensure that the message you want to display is straightforward and easy to understand. Avoid using jargons or overly complex language.
- Personalize the message by including the user's name or specific details about their interaction. This creates a more engaging and appropriate experience.
- Maintain a friendly and professional tone. This helps in building rapport with the user and makes the interaction more pleasant. Use emojis wherever you find appropriate.
- Use proper formatting to enhance readability. Break down long messages into shorter paragraphs or bullet points.
Supported channels
The text block is supported in the following channels:
- WhatsApp
- Telegram
- Facebook Messenger
- LINE
- Instagram
- Business Messaging
A total of 500 blocks can be added in a flow. If you reach that count, you can use the jump block to create a new flow or delete unnecessary flows.