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 |
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.
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.
- Select Add Code Setting.
- 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.)
- 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.
- Save and publish your changes.