Loading
Salesforce now sends email only from verified domains. 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
          Add Chat Code Settings to an Experience Site

          Add Chat Code Settings to an Experience Site

          Use the Embedded Service component to add a Code Setting Name to an Experience Cloud site. This step allows you to modify with static resources, including inviting customers to chat.

          Required Editions

          View supported editions.
          User Permissions Needed
          To set up static resources: Customize Application AND Author Apex
          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 Code setting modifications for Embedded Chat external pages and websites are not available.

          Adding JavaScript code as a static resource provides the flexibility of changing your customer interactions, including adding invitations to chat, or other settings to a site. Before creating your Embedded Chat code settings, you must create and upload embedded static resources

          To add Embedded Chat code settings to your site, use the Code Settings Name field in the component.

          1. Select Add Code Setting.
          2. Create a JavaScript file with your Embedded Chat settings for sites, including strings, arrays, JSON, and js functions. (See examples of Experience Site Static Resource Files.)
          3. In your Embedded Service component settings, enter the static resource name (not the file name) in the Code Setting Name field on a specific page on your site.
          4. Save and publish your changes.
          Note
          Note If you load static resource files for Experience sites, test your entire flow in the builder to discover any CSP errors. This step ensures that image URLs and assets from other domains specified in the static resource load during run time. Check the console first for CSP errors if something is missing.
           
          Loading
          Salesforce Help | Article