The Copy button in the message
About the feature
Sometimes users need to copy a message from the chat to save some necessary info. For example, once the user has scheduled an appointment in the chat, they might want to copy its date, time, and purpose to save it outside of the chat. To make copying a message easier for the user, you can add button to the message.
You can enable button per message built with Send Message (RWC) or Request Response (RWC). In Request Response (RWC), the Copy buttons appear for both the bot's message and the submitted user's reply.
If your chat has a Wide messages Style, button is:
- always visible for the message
If your chat has a Bubbles messages Style, it is only visible:
- on hover in desktop and embedded chat views
- on tap in mobile and Apps chat views
How to add the Copy button to the message
Prerequisite: Eligible messages
The RWC can copy only messages that have the string
data type
- in the bot's message
- in the submitted user reply message
That is why it is possible to add only to:
- Send Message (RWC) built with the Text component
- Request Response (RWC) message built with one of the following input components:
- Text
- Appointment
- Checkboxes
- Dropdown option
- Option from list
- Quick reply button
- Radio button option
- Range or single point
- Date
- Time
- For any component where Allowed manual user response was submitted instead
Instruction
- Open the Step where you want to add the
button. It can be either Request Response (RWC) or Send Message (RWC).
- Scroll down to Advanced settings and expand it.
- Turn on the Show copy button for the message toggle.
- Save & Activate the Flow.
Result
If the message is built with Send Message (RWC), the bot's message gets button on the client.
If the message is built with Request Response (RWC), both the bot's message and the submitted user reply message get buttons on the client.
If the message in not eligible, the Copy button won't appear for the message regardless of the active Show copy button for the message toggle. For example, if the message built with the Send Message (RWC) Step consists of an image and/or a Widget, the Copy button won't appear for this message.
If the message consists ofthe Text and some component that has a data type other than string
, the Copy button will appear for this message, but the user will copy only the Text content when clicking . For example, if the message built with the Send Message (RWC) Step consists of the Text and the image, the user copies only Text when clicking
.
Note, if you formatted the message with HTML tags in the Step, the copied message will contain them.
If the Use function to define user answer toggle is on in Request Response (RWC), the defined function will be compiled and copied in a user reply message as a text or an empty message, in case the defined function has return ' '
.
How the Copy button works on the client
Once the user clicks , it copies the eligible message across applications in OS using a clipboard.
The button remains active and visible for eligible message:
- once the chat user has edited it
- during the whole conversation, also if the conversation was restarted or interrupted and then continued
- once the conversation has ended
- in the conversation history