Loading
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 Dynamic Content to Messaging Components

          Add Dynamic Content to Messaging Components

          When you create messaging components for service reps to use in enhanced Messaging channels or Enhanced Chat, you can use formulas to add dynamic, session-specific content to the component.

          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

          Formulas fall into two categories: formula templates and sObject formulas. You can use both to customize different parts of a messaging component.

          • Formula templates consist of a text body with possible merge fields. When a message that includes a formula template is sent, the merge fields are replaced with contextual information such as an order number or customer name. Use formula templates to customize the Text version of a messaging component.
          • sObject formulas are object-specific formulas that create field values based on contextual data. Use sObject formulas to customize any supported format of a messaging component except for Text.

          Formula templates and sObject formulas can contain both plain text and contextual data from a data source. Two types of data sources are supported: constants and parameters.

          Data Source Definition How to Reference
          Constant Metadata that is defined as part of the messaging component. Constants support multiple data types, including text, URL, and image.

          $Constants.<constant_name>

          In this syntax, replace <constant_name> with the name of a constant. For example: $Constants.Title

          Parameter Metadata that is defined as part of the messaging component, with the data that it contains provided dynamically when a message is rendered. Parameters support the same data types as constants and references to records such as cases or products.

          $Parameters.<parameter_name>

          In this syntax, replace <parameter_name> with the name of a parameter. For example: $Parameters.MyCaseParam

           
          Loading
          Salesforce Help | Article