---
schema_version: "1"
id: 8b1162984035ca41366cd05acab6d60842b387f120a8d2f3862b372a7626a9f2
title: Create and Send Time Selectors in Messaging Sessions
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/service/264-0-0/messaging_components_time_selector.md
canonical_url: https://help.salesforce.com/s/articleView?id=service.messaging_components_time_selector.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 5f9c09a2415ac6cab676ac22fa700e793941a15d5c4e645e0102b37387f82c15
description: Prompt customers to select from a list of time slots during messaging sessions. For example, ask customers to select a time for a service visit or delivery. Create a time selector messaging component, and then link it to a flow and an Apex class. Service reps run the flow to send the time selector to a customer, and the Apex class provides the list of time slots.
products:
  - Service Cloud
  - Digital Engagement
release: "264"
---
# Create and Send Time Selectors in Messaging Sessions

Prompt customers to select from a list of time slots during messaging sessions. For example, ask customers to select a time for a service visit or delivery. Create a time selector messaging component, and then link it to a flow and an Apex class. Service reps run the flow to send the time selector to a customer, and the Apex class provides the list of time slots.

### 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="messaging_components_time_selector__d1228e2806"><!-- --></a><span style="vertical-align:text-bottom;display:inline-block;"><img style="margin-bottom:0;" id="messaging_components_time_selector__d1228e2806" 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, Enhanced Web Chat v1, Enhanced WhatsApp, Enhanced Facebook
              Messenger, and Enhanced Apple Messages for Business, and Bring Your Own
              Channel</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 Web Chat v2, Standard and Enhanced SMS, and Enhanced LINE</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="d160101e98">User Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d160101e98 ">To create messaging components:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d160101e98 ">
              <p>Customize Application AND View Setup and Configuration</p>
              <p>OR</p>
              <p style="margin-bottom:0;">System Administrator
              </p>
            </td>

          </tr>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d160101e98 ">To send and receive messages in Messaging:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d160101e98 ">Messaging Agent</td>

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

1. From Setup, in the Quick Find box, enter Messaging Components, and then select **Messaging Components**.
2. Click **New Component**, and then click **Next**.
3. Click **Time Selector**.
4. Enter a prompt and a plain text option, and then click **Next**. If you plan to use your component in enhanced WhatsApp channels, keep your prompt under 20 characters.
    
    ![Plain text window for time selector component](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-service-support_channels-264-0-0-production-enus/f3c4b3d2-ff86-4f7c-9fe2-3d8b23d35109/support_channels/images/messaging/messaging_time_selector_plain_text.png)
5. Enter a name and description for your time selector component.
    
    These values aren’t visible to customers, but service reps see the name in the Service Console.
6. Click **Done**.
    
    The Messaging Component Builder opens.
7. On the Component Details page, further customize your component.
    1. In the Component Formats section, control the way your component appears in each type of Messaging channel. Click **Add Format**, select a format, and then click **Done**.
        
        ![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-service-support_channels-264-0-0-production-enus/f3c4b3d2-ff86-4f7c-9fe2-3d8b23d35109/images/icon_note.png)
        
        Note Each messaging component is available in one or more formats, such as Buttons, and some formats work only in certain channels. For a list of formats that each channel supports, see [Messaging Component Types and Formats](https://help.salesforce.com/s/articleView?id=service.messaging_component_formats.htm&release=264.0.0&type=5 "With messaging components, you can send structured content such as questions with options in enhanced Messaging channels and Enhanced Chat. Learn the purpose, format, and setup process of each component type."). It’s a good idea to add at least one supported format for each channel where the component will be sent. If no formats are added, the component uses the default text format.
    2. In the left-hand sidebar, click a format type to customize its properties.
    3. In the Component Properties pane, configure each format’s properties. To keep it simple, use the auto-created constant for the question. Then, click **Save**.
        
        ![Properties pane of the component builder](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-service-support_channels-264-0-0-production-enus/f3c4b3d2-ff86-4f7c-9fe2-3d8b23d35109/support_channels/images/messaging/messaging_time_selector_properties.png)
    4. Arrange the formats you selected in priority order. If a component can’t be shown in the highest-priority format, the next format is used.
8. When you’re done editing your component, click **Save**.
9. Your component is saved in a draft state. When you're ready to make it available to your support team, click **Activate** at the top of the page.
    
    If you ever need to take the component offline—for example, to give you time to reconfigure it—open it in the Messaging Component Builder and click **Deactivate**. When you're ready, activate it again.

After you create your component, it’s time to link it to a flow that service reps can use to send it to a customer. The flow must also reference an Apex class that provides the list of available time slots. Then, add the flow to the Service Console and test it.

- **[Set Up a Flow to Send Time Selectors in Messaging Sessions](https://help.salesforce.com/s/articleView?id=service.messaging_components_flow_time_selector.htm&release=264.0.0&type=5)**  
    Let service reps send time selector components in supported enhanced Messaging channels and Enhanced Chat. Create a screen flow, associate it with a messaging component and an Apex class, and add it to the Service Console.
- **[Example: Apex Class for Time Selector Messaging Components](https://help.salesforce.com/s/articleView?id=service.messaging_components_apex_class.htm&release=264.0.0&type=5)**  
    Time selector messaging components send customers a prompt and a list of available time slots for them to choose from. To generate the list of time slots each time the component is sent, create an Apex class. The Apex class determines the time slot start time, duration, and time zone.