Hiding Message History (Set Conversation Start Node)
The setConversationStart
node is used to hide message history from the user within the conversation, hiding all messages from before the node is executed.
The node is configured with an optional name for display in the flow editor, and the text of a message to be sent immediately after previous messages are hidden. Setting a message here is important for users of assistive technologies like screen readers, ensuring they have knowledge that messages were removed.
When the node triggers, all messages before this point in time are hidden from the user and the node’s configured message is sent as text. If the user refreshes the page with the messenger, the first message they will see is the message the node sent.
Example
This section demonstrates how the messenger appears when using the node. In this example, once the user submits their message, the node that follows is the setConversationStart
node.
The user submits their message, it appears in the conversation briefly, and the history is cleared.