---
schema_version: "1"
id: 0d92a2e14220ec4afa5af00fe1c67c49a1ea1cf4a1947abede7773597544a80f
title: Start Chatting with Customers
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/sales/264-0-0/sales_einstein_bots_start_chatting.md
canonical_url: https://help.salesforce.com/s/articleView?id=sales.sales_einstein_bots_start_chatting.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 3640dbeb9f5c52f3da05b336d5f65c36701ed7b1d06b870ea80739b73179994e
description: Connect the messaging channel to your website and embed your bot on your website.
products:
  - Sales Cloud
  - Cross Cloud
  - Service Cloud Voice
release: "264"
---
# Start Chatting with Customers

Connect the messaging channel to your website and embed your bot on your website.

### 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;">Available in: Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available with Sales in <strong>Performance</strong> and <strong>Unlimited</strong> Editions</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available with Sales Engagement, which is available in <strong>Performance</strong> and <strong>Unlimited</strong> Editions, and for an extra cost in <strong>Professional</strong> and <strong>Enterprise</strong> Editions</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="d45950e84">User Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d45950e84 ">To manage Messaging experiences:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d45950e84 ">Messaging for In-App and Web Agent</td>

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

1. To connect the messaging channel to your website, create and publish an embedded service deployment.
    
    1. Click **New Deployment** and then select the Enhanced Chat conversation type.
    2. For the deployment destination, select **Web**. Then enter a unique name for the deployment.
    3. Enter the top-level domain name of the website, for example, yourcompany.com.
    4. Select the Buyer Assistant Messaging Channel and save your changes. Then create and publish the deployment.
    
    After your deployment is created, you can edit your messaging settings, branding, and pre-chat form fields. Always publish the deployment after making edits.
2. To let the bot see whether your sales team can receive incoming chats, [create an online presence status](https://help.salesforce.com/s/articleView?id=service.service_presence_create_presence_status.htm&type=5&language=en_US) with Messaging in the Selected Channels list. Optionally, create more statuses, such as one that indicates a user is busy.
    1. To give your team access to presence statuses, create a permission set. Click **Service Presence Statuses Access** and edit it. Select the presence statuses that you want to associate with the permission set. Then save your changes and assign the permission set to your team.
    2. Users with a presence status are assigned to the default presence configuration. Optionally, [create custom presence configurations](https://help.salesforce.com/s/articleView?language=en_US&id=sf.service_presence_create_presence_configurations.htm&type=5) to limit how much work each team member can take on.
3. Before adding your buyer assistant to your website, make sure that your sales team has the Messaging for In-App and Web User permission set. To embed your Buyer Assistant bot on your website, copy your bot’s code snippet from the Embedded Service Deployment Settings page. Then go to your website and paste the snippet before the closing body tag on each web page where you want a chat button to appear.
4. To collect and send pre-chat data from your website to Salesforce, pass the pre-chat values programmatically.
    
    Add this code snippet to your website’s <head> element. Replace customerLocale and customerTimeZone with your hidden pre-chat field API names. If you have an Experience Builder website, add the code snippet to the Head Markup.
    
    ```javascript
    <script type='text/javascript'>
        window.addEventListener("onEmbeddedMessagingReady", () => {
            console.log("Received the onEmbeddedMessagingReady event…");
            const customerLocale = navigator.language; console.log("locale:" + customerLocale);
            const customerTimeZone = Intl.DateTimeFormat().resolvedOptions().timeZone;
            console.log("timezone:" + customerTimeZone);
    
            // Send data to Salesforce
            embeddedservice_bootstrap.prechatAPI.setHiddenPrechatFields(
                {
                    "Locale": customerLocale,
                    "Timezone": customerTimeZone
                }
            );
        });
    </script>
    ```
5. After you add your buyer assistant to your website, test it. If you have a large team, consider gathering a small group of users to test out the buyer assistant
    1. To test your Buyer Assistant bot from a team member’s perspective, go to App Launcher and then open the Lightning Sales Console app. From the utility bar, select **Omni-Channel** and then change your status to Online. After you click the chat button in the next step, verify that you receive a chat request in Sales Console.
    2. To test your bot from your customer’s perspective, open another window or tab and navigate to your website. To start the chat, click the chat button. From the menu, select **Connect with Sales** and then enter the requested information.

- **[Gather Customer Information Using Pre-Chat](https://help.salesforce.com/s/articleView?id=sales.sales_einstein_bots_use_prechat.htm&release=264.0.0&type=5)**  
    Add custom fields to your pre-chat form to store your chatting customer’s local and time zone information. Then you can auto-fill these hidden pre-chat fields when the conversation begins.

#### See Also

- [Considerations and Limitations for Enhanced Chat](https://help.salesforce.com/s/articleView?id=service.miaw_considerations_and_limitations.htm&type=5&language=en_US)
- [Presence Status Settings](https://help.salesforce.com/s/articleView?id=service.service_presence_status_settings.htm&type=5&language=en_US)
- [Lightning Sales Console](https://help.salesforce.com/s/articleView?id=service.console_lex_sales_intro.htm&type=5&language=en_US)