---
schema_version: "1"
id: a424c0ce9a28b41383b2f0228c5983f7ba785164d890ac2d2616688ebcca4f58
title: Add Chat Code Settings to an Experience Site
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/service/264-0-0/embedded_chat_communities_code_settings.md
canonical_url: https://help.salesforce.com/s/articleView?id=service.embedded_chat_communities_code_settings.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 735640584d81070c5b47dc19185a2df6c140deb3139709a5e27a7a93b91deadd
description: 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.
products:
  - Service Cloud
release: "264"
---
# 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

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

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d35933e58">User Permissions
              Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d35933e58 ">To set up static resources:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d35933e58 ">Customize Application AND Author Apex</td>

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

![Important](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-service-support_legacy-264-0-0-production-enus/081af4ec-6c06-4d4b-9443-cb3516bbc46d/images/icon_important.png)

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](https://help.salesforce.com/s/articleView?id=service.miaw_replacing_chat_considerations.htm&language=en_US) plus asynchronous conversations that can be picked back up at any time. Learn about migrating in [Help](https://help.salesforce.com/s/articleView?id=service.miaw_replacing_chat_considerations.htm&type=5&language=en_US) and [Trailhead](https://trailhead.salesforce.com/content/learn/modules/migrating-from-legacy-chat-to-enhanced-chat).

![Important](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-service-support_legacy-264-0-0-production-enus/081af4ec-6c06-4d4b-9443-cb3516bbc46d/images/icon_important.png)

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](https://help.salesforce.com/articleView?id=embedded_static_resources.htm&language=en_US)

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](https://help.salesforce.com/articleView?id=embedded_chat_community_static_examples.htm&language=en_US).)
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](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-service-support_legacy-264-0-0-production-enus/081af4ec-6c06-4d4b-9443-cb3516bbc46d/images/icon_note.png)

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.