Loading
Feature Degradation | Agentforce Voice Read More
Explore Legacy Service Features
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
          Customize the Embedded Pre-Chat Form

          Customize the Embedded Pre-Chat Form

          Gather contact information and learn about customer needs before chatting. Create a custom pre-chat form and associate Salesforce records like leads, cases, and contacts. You can also customize the field labels used on the form.

          Required Editions

          View supported editions.
          User Permissions Needed
          To set up Embedded Chat: Customize Application AND Modify Metadata
          Important
          Important

          Legacy Chat will be retired on February 14, 2026. To avoid service interruptions to your end users, switch to enhanced Chat (formerly Messaging for In-App and Web). Enhanced Chat offers many of the legacy Chat features that you love plus asynchronous conversations that can be picked back up at any time. Learn about migrating in Help and Trailhead.

          Important
          Important Before you start, make sure that the “Enable Support QuickAction Rest endpoint for Guest Users” permission is turned on. Without the permission, your customers can’t request a chat.
          Pre-chat form

          When you design your pre-chat form, select a use case that automatically associates information from the form to Salesforce records. When a customer enters their name or email address, Salesforce matches the information with a contact or lead record. If no match is found, a new record is created.

          For example, if you select the Service scenario, Salesforce relates the customer’s information with Case and Contact records.

          Use Cases to Associate Pre-Chat Information with Salesforce Records
          If you select: Then Salesforce associates the pre-chat information with these record types:
          Sales Lead records
          Service

          Contact records

          Case records

          Basic Contact records

          You can select the fields that are shown on the pre-chat form, change the order of the fields, and make fields required. To make the form more user-friendly to customers, add up to four fields.

          Important
          Important Create and edit your pre-chat forms from Embedded Service setup, not at global action. Editing global action leads to unexpected results. Each time the pre-chat form is edited, the global action is recreated and prior updates to action details or predefined fields are reverted. Embedded Service setup creates quick actions specifically for pre-chat. Using quick actions for other purposes causes pre-chat setup to fail.

          To set up the pre-chat form:

          1. From Setup, in the Quick Find box, enter Embedded Service, and then select Embedded Service.
          2. Select the Embedded Service deployment that you want to work with, click the arrow next to the deployment name, and then select View.
          3. Click Edit next to Chat Settings.
          4. In the Pre-chat section, move the radio button to Active.
          5. Click Edit.
          6. Select the use case for the pre-chat form.
            1. Select the main reason that customers use chat. The reason that you select affects the type of Salesforce record that’s created from the information that customers enter into the pre-chat form.
            2. Select the record type that’s created from the pre-chat form. The dropdown menu shows record types that are available on the object.
            3. Click Next.
          7. Select the fields shown on the pre-chat form.
            1. To change the order of the fields, use the up arrow and down arrow.
              Note
              Note For the Service scenario, fields are grouped by object. Contact fields always appear above Case fields.
            2. To add a field, click +. You can add only fields that are available on the object.
            3. To remove a field, click X.
            4. To require customers to fill out a field, select Required next to the field.
            5. Click Save.
          8. Optionally, select a custom Lightning Component to replace the standard component. To learn more about custom components for pre-chat, see Lightning Web Components for Embedded Service in the Embedded Service Developer Guide.
          Tip
          Tip Turn off a pre-chat form by viewing your deployment in Setup and moving the pre-chat page slider to Inactive.

          To create custom labels for your form:

          • From Setup, in the Quick Find box, enter Rename Tabs and Labels, and then select Rename Tabs and Labels.
          • Set your primary deployment language from the Select Language dropdown list.
          • To rename a tab, select Edit next to the Contacts, Leads, or Cases based on your pre-chat objective. Select Reset to revert to the original name.
          • Enter the singular and plural forms of the new tab name. Also, if applicable for the language, select Starts with a vowel sound for labels that begin with a vowel to ensure the proper article (such as a or an). Then select Next. When you rename a tab or an object, you can’t use the name of another standard tab, custom object, external object, or custom tab.
          • Enter your labels for the standard field labels. If necessary, enter both a singular and plural form for each label. Select Starts with a vowel sound for labels that begin with a vowel. Then save your work.
          Important
          Important If you’re customizing the First and Last Name fields, complete each label separately. The First Name and Last Name labels (defined by Contacts and Leads in the Rename Tabs and Labels Setup) are used by the pre-chat form.
          Note
          Note You can use the pre-chat APIs to send nonstandard pre-chat details along with what’s available in setup. For more information, see Expand the Pre-Chat Stage in the Embedded Service Developer Guide.
           
          Loading
          Salesforce Help | Article