---
schema_version: "1"
id: 0803388b7d9f1aedd07f665f756f756458226d6c47cd5b12617733e3aa1f6301
title: Agentforce Commerce Client for Messaging
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/cc/264-0-0/b2c_shopper_agent_commerce_client_container.md
canonical_url: https://help.salesforce.com/s/articleView?id=cc.b2c_shopper_agent_commerce_client_container.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 288e662a356c65105d899d4164b635257bbd5a832fe4a83ba730589d4ef14385
description: The Agentforce Commerce Client is the storefront app that shoppers use to chat with the Shopper Agent. Install the Commerce Client for your B2C Commerce storefront.
products:
  - Commerce
  - B2C Commerce
release: "264"
---
# Agentforce Commerce Client for Messaging

The Agentforce Commerce Client is the storefront app that shoppers use to chat with the Shopper Agent. Install the Commerce Client for your B2C Commerce storefront.

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-cc-b2c_merchandiser_administrator-264-0-0-production-enus/ea76f372-6cfa-42a6-8e7c-05c6df7abed8/images/icon_note.png)

Note The Agentforce Commerce Client replaces the Enhanced Chat component for Shopper Agents starting in July 2026.

The Commerce Client renders the chat experience on your storefront and connects to your Shopper Agent through the Enhanced Messaging service. When a shopper chats with the Agent, the Commerce Client starts a messaging session on your agent's messaging channel. Then, the client passes the storefront context, such as the site ID and locale, and streams the agent's responses back to the page.

The Commerce Client chat session closes after two hours of shopper inactivity, per [Service Agent Limits](https://help.salesforce.com/s/articleView?id=ai.service_agent_considerations.htm&language=en_US). You can't change the inactivity limit. If a shopper returns after two hours, the chat window shows the welcome message, with no memory of the earlier chat.

## Record Embedded Service Deployment Settings

Before you install the Commerce Client, see [Create a B2C Shopper Agent Using the Automated Setup](https://help.salesforce.com/s/articleView?id=cc.b2c_shopper_agent_run_auto_setup.htm&release=264.0.0&type=5 "Create a Shopper Agent with the automated tool available in Setup. Enter your configuration details on one page, and setup creates the agent."). Also, record these connection settings for your storefront.

- In your Salesforce org, to locate the required settings, go to Setup ![Setup](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-cc-b2c_merchandiser_administrator-264-0-0-production-enus/ea76f372-6cfa-42a6-8e7c-05c6df7abed8/cc/b2c_merchandiser_administrator/images/setup_icon_no_border.png). Go to **Embedded Service Deployments**, select the name of your deployment, and in the **Code Snippet** tile, click **Install Code Snippet**. Record these code snippet values.
    
    ```
    {
      "channelAddressIdentifier": "4b44007a-a11e-1ff1-22ca-a5bfa333333c",
      "OrganizationId": "00DSB00001232123",
      "DeveloperName": "Commerce_ES",
      "Url": "https://mysite.test1.my.pc-rnd.salesforce-scrt.com"
    }
    ```
    
    - `Url`—Endpoint for the Salesforce real-time messaging platform, SCRT2
    - `OrganizationId`—The Salesforce org ID
    - `DeveloperName`—The Embedded Service deployment developer name
- In B2C Commerce, locate these settings.
    - Organization ID. Go to **Administration** | **Site Development** | **Salesforce Commerce API Settings**.
    - Site ID. Go to **Administration** | **Sites** | **Manage Sites** | **site\_name**. Record the **ID** value.

## Commerce Client Setup for Your Storefront Type

The deployment steps for the Commerce Client depend on your storefront type. Begin with [Agentforce Commerce Client Overview](https://developer.salesforce.com/docs/commerce/b2c-commerce/guide/agentforce-commerce-client-overview.html), and then follow the instructions for your storefront.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col style="width:33.33333333333333%">
          <col style="width:66.66666666666666%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d147771e159">Storefront Type</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d147771e162">Agentforce Commerce Client Setup Instructions</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Storefront Type" class="slds-cell-wrap" style="vertical-align:top;" headers="d147771e159 ">Storefront Reference Architecture (SFRA)</td>

            <td data-label="Agentforce Commerce Client Setup Instructions" class="slds-cell-wrap" style="vertical-align:top;" headers="d147771e162 ">
              <p><a href="https://developer.salesforce.com/docs/commerce/b2c-commerce/guide/install-on-sfra.html" target="_blank">Install the Agentforce Commerce
                  Client on SFRA</a>. </p>
              <p>Before you deploy the Commerce Client,
                turn on hybrid authentication. In Business Manager, select <span class="menucascade"><strong class="uicontrol">Merchant Tools</strong> | <strong class="uicontrol">Site Preferences</strong> | <strong class="uicontrol">Hybrid Auth Settings</strong></span>. Under Site Settings, enable Hybrid Auth, Shopper
                Context, Do-Not-Track Synchronization, and HttpOnly
                True.</p>
              <p style="margin-bottom:0;">Also, make sure that you can access the Salesforce
                Commerce repository on GitHub.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Storefront Type" class="slds-cell-wrap" style="vertical-align:top;" headers="d147771e159 ">PWA Kit</td>

            <td data-label="Agentforce Commerce Client Setup Instructions" class="slds-cell-wrap" style="vertical-align:top;" headers="d147771e162 ">
              <a href="https://developer.salesforce.com/docs/commerce/b2c-commerce/guide/install-on-pwa-kit.html" target="_blank">Install the Agentforce Commerce Client on PWA Kit</a>.
            </td>

          </tr>
          <tr class="">
            <td data-label="Storefront Type" class="slds-cell-wrap" style="vertical-align:top;" headers="d147771e159 ">Storefront Next</td>

            <td data-label="Agentforce Commerce Client Setup Instructions" class="slds-cell-wrap" style="vertical-align:top;" headers="d147771e162 ">
              <a href="https://developer.salesforce.com/docs/commerce/b2c-commerce/guide/install-on-sfnext.html" target="_blank">Install the Agentforce Commerce Client on Storefront Next</a>.
            </td>

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

#### See Also

- [Set Up Service Escalation for the B2C Shopper Agent](https://help.salesforce.com/s/articleView?id=cc.b2c_shopping_agent_service_escalation.htm&language=en_US)