# 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 image button to the message.

image

You can enable image 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, image 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?

# Prerequisites

# Messages eligible for the Copy button feature

The RWC can copy only messages that have the string data type in the bot's message and/or the submitted user reply message. So it is possible only to add image to the following:

  • Send Message (RWC) built with the following component:
    • Text
  • Request Response (RWC) 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
    • If for any component Allowed manual user response was enabled and submitted

# Instruction

  1. Open the Step where you want to add the image button. It can be either Request Response (RWC) or Send Message (RWC).
  2. Scroll down to Advanced settings and expand it.
  3. Turn on the Show copy button for the message toggle.
  4. Save & Activate the Flow.

# Result

If the message is built with Send Message (RWC), the bot's message gets image 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 image buttons on the client.

If the message does not contain Text or another user input component that records the user reply as a string (check prerequisites), 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 a widget, the Copy button won't appear for this message.

If the message consists of 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 image. 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 image.

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 does the Copy button work on the client?

Once the user clicks image, it copies the eligible message across applications in OS using a clipboard.

The image button remains active and visible for eligible the 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
Last Updated: 11/20/2023, 4:43:13 PM