Loading
Salesforce now sends email only from verified domains. Read More
Agentforce Contact Center
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Add Static Images to Messaging Components

          Add Static Images to Messaging Components

          If you want a messaging component to always show the same image or images, define the images in the Messaging Component Builder using constants. Standard constants are auto-created, while you create custom constants manually. 

          Required Editions

          View supported editions.
          Checkmark This article applies to: Enhanced In-App Chat, Enhanced Web Chat v1, Enhanced Web Chat v2, Enhanced WhatsApp, Enhanced Facebook Messenger, Enhanced Apple Messages for Business, Enhanced LINE, and Bring Your Own Channel
          X icon This article doesn’t apply to: Standard Facebook Messenger, and Standard and Enhanced SMS channels
          User Permissions Needed
          To create messaging components:

          Customize Application AND View Setup and Configuration

          OR

          System Administrator

          To send and receive messages in Messaging: Messaging Agent

          First, let’s review the differences between standard and custom image constants. While this article focuses on image constants, the same principles apply for text and URL constants. All constants are found on the same tab in the Messaging Component Builder.

          Type How It’s Created Examples Editable? Deletable?
          Standard image constants When you upload an image during the New Component setup flow, a standard constant is created for it.
          • When you create an enhanced link and upload an image to show with the link, the image is saved as a standard constant.
          • When you create a payment messaging component and upload an image to show with it, the image is saved as a standard constant.
          Yes, from the Constants tab in the Messaging Component Builder. No, but you can replace an original uploaded image by editing its standard constant. You can also choose not to use the constant.
          Custom image constants Add custom constants after finishing the New Component setup flow. Use the ImageAsset type.
          • After creating a question with options, add a custom image constant to show with the question.
          • After creating a form messaging component, add a custom image constant to show with the form link.
          Yes, from the Constants tab in the Messaging Component Builder. Yes, from the Constants tab in the Messaging Component Builder.

          Now, review the process for adding static images to a messaging component.

          Five steps of adding static images: Create messaging component, add one or more component formats, add or edit image constants on constants tab, set format properties to reference constants, and agent sends component.
          1. Create the messaging component in Setup.
            1. From Setup, enter Messaging Components in the Quick Find box, and then select Messaging Components.
            2. Click New Component.
            3. Complete the flow to create your component. When the component is created, the Messaging Component Builder opens.
          2. Add one or more supported formats to the component.
            1. From the Details tab in the Messaging Component Builder, click Add Format and select a format.
            2. For each format that you add, click its name in the navigation menu and check the properties pane to determine how many images it can include. For example, look for properties named Initial Image or Confirmation Image.
          3. Manage your constants on the Constants tab.
            1. If you uploaded an image while creating the component, it’s shown as a standard constant in the Constant section. To change a constant’s name or update its image file, click Edit.
            2. To include other images, add them in the Custom Constant section. Use the ImageAsset type.
              Messaging Component Builder with Custom Contant section highlighted
          4. Update each format’s image properties to use image constants.
            1. Click a format name in the navigation menu, such as List Selector.
            2. For each image property, select the Constant type and select an image constant. If you don’t want to include an image, leave the type as None.
              Messaging component with List Selector format shown, and the Initial Image Configuration property highlighted
          5. To send the component during a messaging session, service reps can select it from a list in the messaging component action and click Send. If you configured an image property to use an image constant, the customer sees the image in the messaging component.
          Note
          Note In some list formats such as List Selector and Card Carousel, you can show an image with each list option. To add images to your list options, edit each item in the Options section of the Constants tab when viewing your messaging component. Then, reference that constant in the format’s image property for its list options.
           
          Loading
          Salesforce Help | Article