Add Images to Messaging Components with Constants, Parameters, and Formulas
Many types of messaging components can include images, such as enhanced links, forms,
and questions with options. Images in messaging components give your customers helpful visual
cues, reinforce company branding, and add some color—literally and figuratively—to everyday
service interactions. Learn how to control which images are shown in a messaging component that
a service rep or bot sends to a customer.
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
This article doesn’t apply to:
Standard Facebook Messenger, and Standard and Enhanced SMS channels
Static Versus Dynamic Images
If you want a messaging component to always show the same (static) image or images, use
constants to define the images. Using constants is the simplest way to include images in a
messaging component.
To show different (dynamic) images in a messaging component based on messaging session
characteristics or other custom criteria, provide the images via parameters or sObject formulas.
Adding dynamic images is more advanced than adding static images, but it’s an effective way to
personalize messages sent to customers. For example, in a list of the customer’s three most
recently purchased products, show an image of each product next to the product name. Or in an
enhanced link messaging component, show a URL and image that vary depending on the season or the
end user’s location.
Get Started
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.
Add Dynamic Images to Messaging Components If you want a messaging component to show different images depending on the situation, define the images in the Messaging Component Builder by using parameters or sObject formulas. Adding dynamic images to messaging components is more advanced than adding static images, but it’s an effective way to personalize messages sent to customers.
Did this article solve your issue?
Let us know so we can improve!
Loading
Salesforce Help | Article
Cookie Consent Manager
General Information
Required Cookies
Functional Cookies
Advertising Cookies
General Information
We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required Cookies
Always Active
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional Cookies
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising Cookies
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.