EmbeddedServiceBranding defines the visual branding for each legacy Embedded Service chat deployment, including colors, font, and component dimensions. It works only with legacy chat products. Messaging for In-app and Web uses BrandingSet instead.
The branding component and the deployment configuration are separate metadata components. The required embeddedServiceConfig element identifies the EmbeddedServiceConfig to which the branding applies; it is not the branding component's identity or label.
Key Elements
| Element | What the Element Controls |
|---|---|
fullName |
The metadata component identity, inherited from the base Metadata type. |
embeddedServiceConfig |
Required reference to the EmbeddedServiceConfig that receives this branding. |
masterLabel |
Required name of the Embedded Service configuration node. This label is distinct from both fullName and the configuration reference. |
contrastInvertedColor |
An accent color expressed as a hexadecimal string. API changes to this value are not reflected in the embedded component. |
navBarColor |
The embedded component's header color, expressed as a hexadecimal string. |
navBarTextColor |
The color of the header's text and icons, expressed as a hexadecimal string. |
secondaryNavBarColor |
The header color while chat attempts to reconnect after losing its internet connection. The value is a hexadecimal string. |
font |
The font used for text in the embedded component. |
height, width
|
Integer values defining the embedded component's height and width. |
Behavior and Constraints
Color values are hexadecimal strings. The header background and its text and icons have separate controls: navBarColor changes the header color, while navBarTextColor changes the text and icon color.
secondaryNavBarColor is state-dependent. It applies while chat tries to reconnect after an internet connection loss, rather than serving as ordinary header styling. A visual check during a normal connected chat does not exercise that setting.
Changing contrastInvertedColor through the API does not change its rendering in the embedded component. A changed metadata value therefore does not establish that the displayed accent color changed.
Keep the three naming roles separate: fullName identifies the branding metadata component, masterLabel names the configuration node, and embeddedServiceConfig points to the deployment configuration.
Deployment and Retrieval
Components are stored in files named developer_name.EmbeddedServiceBranding in the EmbeddedServiceBranding folder.
The * wildcard is not supported for this type in package.xml. Specify individual component names when including EmbeddedServiceBranding in a manifest.
For a branding migration, the configuration links identify which deployment the change belongs to. The branding component references its configuration through embeddedServiceConfig, and EmbeddedServiceConfig can reference the branding component through branding.
For Messaging for In-app and Web, retrieving EmbeddedServiceBranding is not the appropriate way to obtain deployment branding. The relevant components are EmbeddedServiceConfig and the BrandingSet referenced by its branding element. An empty retrieval in that product context is not evidence that retrieval of legacy EmbeddedServiceBranding components is generally unsupported.
Relationships
The direct references connect the branding component with its deployment configuration. The meaning of the configuration's branding reference depends on the product: legacy chat can reference EmbeddedServiceBranding, while Messaging for In-app and Web uses BrandingSet.
References
-
EmbeddedServiceConfig:embeddedServiceConfig.
Referenced By
-
EmbeddedServiceConfig:branding.
Reported Issues
-
An empty branding retrieval can indicate the wrong metadata type for the product. In a September 2024 report about retrieving branding for Messaging for In-app and Web, the resolution identified
EmbeddedServiceConfigand its referencedBrandingSetas the components to retrieve and deploy. The example usedBrandingSet.brandingSetPropertyentries withpropertyNamevalues ofheaderColorandheaderTextColor. This was a product-scope distinction, not a finding that legacy branding retrieval was unsupported. See the retrieval and migration discussion. -
Direct queries from Apex using Salesforce Object Query Language (SOQL) were reported unavailable for this type. A 2021 community inventory listed
EmbeddedServiceBrandingamong Tooling API objects that were not exposed in the ApexSchemanamespace and could not be queried from Apex. That report concerns Apex query access, not Metadata API retrieval. See the Apex query availability discussion.
Common Questions
Can I retrieve all EmbeddedServiceBranding components with a wildcard?
No. EmbeddedServiceBranding does not support * in package.xml. List individual component names in the manifest.
Why does EmbeddedServiceBranding retrieval return no results for Messaging for In-app and Web?
That product uses BrandingSet, not EmbeddedServiceBranding. Retrieve the EmbeddedServiceConfig and the BrandingSet identified by its branding element.
Why did my contrastInvertedColor API update not change the chat component?
API changes to contrastInvertedColor are not reflected in the embedded component. The stored metadata can change without changing the displayed accent color.
Which element connects branding to an Embedded Service deployment?
The required embeddedServiceConfig element references the deployment's EmbeddedServiceConfig. In the other direction, that configuration can reference the legacy branding component through branding. masterLabel is a label, not a replacement for either reference.