Loading
Salesforce now sends email only from verified domains. Read More
Help Agent Performance DegradationRead 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
          Send a Personalized Customer Greeting with a Formula Template

          Send a Personalized Customer Greeting with a Formula Template

          Send a personalized greeting to an end-user automatically when a service rep accepts their messaging session. Create a Start Conversation auto-response messaging component that contains a formula template.

          Required Editions

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

          Before building this recipe, consider these caveats:

          • It’s possible to reference fields from the Messaging Session object or the Messaging User object (since it's linked to Messaging Session) in an auto-response formula template for Start Conversation, End Conversation, and Inactive Conversation. It’s not possible to reference fields from the Messaging Session or Messaging User objects in Conversation Acknowledgement because you'd also have to use a flow to populate the data, and the flow wouldn't run in time for Conversation Acknowledgement.
          • Salesforce custom object fields are different from pre-chat custom fields. We’ll reference both types of fields in this recipe. Learn more about the relationship and differences between these two types of fields.

          In this example, we’ll create an auto-response Start Conversation greeting that references the service rep's name and the customer’s name.

          Create and Map your Fields

          1. Ensure that you have the desired Salesforce object field set up in your org. If you intend to reference a custom Salesforce field, create it now. In this example, we pull the end-user’s name from the Messaging User field on the Messaging Session object. We also pull the service rep's name from the Last Modified By field on the Messaging Session object.
          2. Create a pre-chat form field where the end-user inputs data that travels back to the Salesforce field you identified or created in step 1. In this example, we’ll create a custom pre-chat field called Messaging User Name. We don’t need to create a Last Modified By custom pre-chat field because your org automatically populates the Salesforce field called Last Modified By.
          3. Map your custom pre-chat field to your Salesforce custom field using a flow. In this example, we map the Messaging User Name pre-chat field to the Messaging User field on the Messaging Session object in Salesforce.

          Create Your Auto-Response Component and Formula Template

          1. From Setup, enter Messaging Components in the Quick Find box, and then select Messaging Components.
          2. Click New Component, and then click Next.
          3. Select Auto-Response, and then click Next.
          4. Enter the auto-response. For example: Custom Greeting.
          5. Enter a name and description for your component, and click Done. The Messaging Component Builder opens.
          6. Under Component Formats, select Text.
          7. In the Type field, select Template.
          8. In the Formula Template field, enter your greeting with parameters that reference the desired Salesforce custom fields. In this example, our formula template looks like:
            1. Hi there {!$Parameters.MessagingSession.MessagingEndUser.Name}, my name is {!$Parameters.MessagingSession.LastModifiedBy.FirstName}, nice to meet you.
          9. Save your changes.

          Add the Auto-Response Component to Your Channel

          1. From Setup, enter Messaging Settings in the Quick Find box, and then select Messaging Settings.
          2. Find your channel in the list, and click Edit in its action menu.
          3. Choose whether to add your component to the Start Conversation, End Conversation, or Inactive Conversation fields. In this example, we’ll select our component in the Start Conversation field.
          4. Test the component in an Enhanced Chat session.
           
          Loading
          Salesforce Help | Article