---
schema_version: "1"
id: acbb91cf0ff791a534e3c6595aa05e31489f68c0dbcbc8f1093245352a65d0a0
title: Set Business Hours in Enhanced Chat
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/service/264-0-0/miaw_business_hours.md
canonical_url: https://help.salesforce.com/s/articleView?id=service.miaw_business_hours.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: ba410add3575927a6ac836314c31ea14295de20f9e8f7642900e83717240bf91
description: Don’t leave your customers waiting. Prevent customers from starting new messaging sessions outside of your business hours. After setting business hours, the Enhanced Web Chat button disappears when you’re not working, and Enhanced In-App Chat customers see a banner letting them know that your business hours are over. Use the API to prevent incoming Enhanced In-App Chat conversations outside of business hours.
products:
  - Service Cloud
  - Digital Engagement
release: "264"
---
# Set Business Hours in Enhanced Chat

Don’t leave your customers waiting. Prevent customers from starting new messaging sessions outside of your business hours. After setting business hours, the Enhanced Web Chat button disappears when you’re not working, and Enhanced In-App Chat customers see a banner letting them know that your business hours are over. Use the API to prevent incoming Enhanced In-App Chat conversations outside of business hours.

### Required Editions

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

          </tr>
          <tr class="">
            <td class="slds-cell-wrap" style="vertical-align:top;">
              <a name="miaw_business_hours__d1220e335"><!-- --></a><span style="vertical-align:text-bottom;display:inline-block;"><img style="margin-bottom:0;" id="miaw_business_hours__d1220e335" src="https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-service-support_channels-264-0-0-production-enus/f3c4b3d2-ff86-4f7c-9fe2-3d8b23d35109/resources-global/_corporate/images/checkmark.png" alt="Checkmark"></span>
              <strong>This article applies to:</strong>
            </td>

            <td class="slds-cell-wrap" style="vertical-align:top;">Enhanced In-App Chat and Enhanced Web Chat channels</td>

          </tr>
          <tr class="">
            <td class="slds-cell-wrap" style="vertical-align:top;">
              <span style="vertical-align:text-bottom;display:inline-block;"><img style="margin-bottom:0;" src="https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-service-support_channels-264-0-0-production-enus/f3c4b3d2-ff86-4f7c-9fe2-3d8b23d35109/resources-global/_corporate/images/crossmark.png" alt="X icon"></span>
              <strong>This article doesn’t apply to:</strong>
            </td>

            <td class="slds-cell-wrap" style="vertical-align:top;">Enhanced WhatsApp, Enhanced Facebook Messenger, Standard and Enhanced SMS,
              Enhanced Apple Messages for Business, Enhanced LINE, and Bring Your Own
              Channel</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="d159791e98">User Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d159791e98 ">To create business hours:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d159791e98 ">Manage Business Hours Holidays</td>

          </tr>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d159791e98 ">To add business hours to your deployment:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d159791e98 ">Customize Application AND Modify Metadata Through Metadata API Functions </td>

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

1. [Create a business hours record](https://help.salesforce.com/s/articleView?id=service.customize_supporthours.htm&type=5&language=en_US).
2. From Setup, enter Embedded Service Deployments, and click **Embedded Service Deployments**.
3. Click the dropdown arrow to the right of your deployment, and select **View**.
4. Click **Edit Settings**.
5. In the Business Hours field, select your business hours record.
6. Save your changes.
7. On the Settings page for your deployment, click **Publish**.

After adding business hours to your Enhanced Web Chat deployment, the chat button appears only during your business hours. Outside of business hours, Enhanced In-App Chat displays a banner that lets the customer know when it’s outside of business hours.

![Business hours banner on Enhanced In-App Chat deployment](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-service-support_channels-264-0-0-production-enus/f3c4b3d2-ff86-4f7c-9fe2-3d8b23d35109/support_channels/images/miaw/miaw_in_app_outside_business_hours.png)

To prevent incoming conversations outside of business hours, override business hours rules, or hide or show your chat button at different times, see [Show and Hide the Chat Button in Enhanced Web Chat](https://developer.salesforce.com/docs/service/messaging-web/guide/show-hide-chat.html).

- **[Create a Case When a Messaging Session Starts Outside of Your Business Hours](https://help.salesforce.com/s/articleView?id=service.miaw_create_case_outside_business_hours.htm&release=264.0.0&type=5)**  
    Let end users submit a case when trying to message outside of business hours. Use an Apex class and a bot to run a business hours check, then create the case from a flow.

#### See Also

- [_Developer Guide:_ Show or Hide the Chat Button on Page Load](https://developer.salesforce.com/docs/service/messaging-web/references/m4w-reference/settingsAPI.html)