---
schema_version: "1"
id: d58840925c00e494d5583db6b7bab55b428f2b1db5d945b8ffe71f1d5a14b293
title: Send a Personalized Customer Greeting with a Formula Template
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/service/264-0-0/messaging_customize_auto_response.md
canonical_url: https://help.salesforce.com/s/articleView?id=service.messaging_customize_auto_response.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 42a2f0067e0d238663b072e16a3e998d2d73680125cb986b9607fcc1db3eb166
description: 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.
products:
  - Service Cloud
  - Digital Engagement
release: "264"
---
# 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

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <tbody>
          <tr class="">
            <td class="slds-cell-wrap" colspan="2" style="vertical-align:top;"><a href="https://help.salesforce.com/s/articleView?id=service.messaging_editions.htm&amp;type=5&amp;language=en_US" target="_blank">View supported editions.</a></td>

          </tr>
          <tr class="">
            <td class="slds-cell-wrap" style="vertical-align:top;">
              <a name="messaging_customize_auto_response__d609e335"><!-- --></a><span style="vertical-align:text-bottom;display:inline-block;"><img style="margin-bottom:0;" id="messaging_customize_auto_response__d609e335" src="https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-service-support_channels-264-0-0-production-enus/f3c4b3d2-ff86-4f7c-9fe2-3d8b23d35109/resources-global/_corporate/images/checkmark.png" alt="Checkmark"></span>
              <strong>This article applies to:</strong>
            </td>

            <td class="slds-cell-wrap" style="vertical-align:top;">Enhanced In-App Chat and Enhanced Web Chat channels</td>

          </tr>
          <tr class="">
            <td class="slds-cell-wrap" style="vertical-align:top;">
              <span style="vertical-align:text-bottom;display:inline-block;"><img style="margin-bottom:0;" src="https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-service-support_channels-264-0-0-production-enus/f3c4b3d2-ff86-4f7c-9fe2-3d8b23d35109/resources-global/_corporate/images/crossmark.png" alt="X icon"></span>
              <strong>This article doesn’t apply to:</strong>
            </td>

            <td class="slds-cell-wrap" style="vertical-align:top;">Enhanced WhatsApp, Enhanced Facebook Messenger, Standard and Enhanced SMS,
              Enhanced Apple Messages for Business, Enhanced LINE, and Bring Your Own
              Channel</td>

          </tr>
        </tbody>
      </table>

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](https://trailhead.salesforce.com/content/learn/modules/messaging-optimization-for-in-app-and-web/collect-information-to-help-end-users).

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](https://help.salesforce.com/s/articleView?language=en_US&id=sf.adding_fields.htm&type=5). 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](https://help.salesforce.com/s/articleView?id=service.miaw_custom_prechat_3.htm&language=en_US) 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](https://help.salesforce.com/s/articleView?language=en_US&id=sf.miaw_map_messaging_2.htm&type=5). 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.