Flow Builder — Message
The "Message" step helps you to create the plain text message that your assistant sends to the user. If you want to ask the user a question or use buttons, you need to choose the Collect information step instead.
How to create Message
Select the Message step in the menu.
Click "Select message" and choose "Create message" from the list.
In the modal, enter the message name and the text.
The "Use Contextual Response Rephraser" option is disabled by default. This feature enables the assistant to rephrase its responses by prompting an LLM, based on the conversation's context. It helps make the assistant's responses feel more organic and conversational.
Read More
When creating a new message, the "Use Contextual Response Rephraser" option defaults to the global rephrase_all
value set in the endpoints.yml file.
If you keep this default setting, the per-response rephrasing setting will not be explicitly set for the message.
If you change this option to a different value than the default, the per-response rephrasing setting will be set to your chosen value.
The UI will always display the computed state of rephrasing, taking into account both the per-response setting (if set) and the global rephrase_all
value.
![image](/docs/studio/img/rephrasing.png)
If you prefer full control over responses, you can uncheck the rephraser and manually add message variations.
You can edit or delete previously created messages by clicking on the drop-down menu and choosing the "Manage messages" option.
Referencing slot values in a message
This feature enables you to utilize previously collected user information, such as their name or age. It also allows you to confirm user-provided input by incorporating a slot value directly into your message.
Identify the slot: First, determine which specific slot you want to reference. Understand the flows where this slot is used and the factors that can influence its values. If a slot is utilized across multiple flows, you will see the following alert:
Insert the slot: To include the slot in your message, enclose the slot name within curly brackets {} at the desired position. For example, if you have a slot named "user_name" and you want to greet the user by their name, your message might look like this:
Hello, {user_name}! How can I assist you today?Test and improve: After completing the training, go to the Try Your Assistant page to evaluate how the assistant handles the message. In the assistant’s response, the slot value should dynamically replace the placeholder with the actual value stored. For example, if the user's name is "John" the message should read: "Hello, John! How can I assist you today?