Loading
Salesforce now sends email only from verified domains. Read More
Help Agent Performance DegradationRead More
Agentforce Contact Center
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Create and Send Time Selectors in Messaging Sessions

          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

          View supported editions.
          Checkmark This article applies to: Enhanced In-App Chat, Enhanced Web Chat v1, Enhanced WhatsApp, Enhanced Facebook Messenger, and Enhanced Apple Messages for Business, and Bring Your Own Channel
          X icon This article doesn’t apply to: Enhanced Web Chat v2, Standard Facebook Messenger, Standard and Enhanced SMS, and Enhanced LINE
          User Permissions Needed
          To create messaging components:

          Customize Application AND View Setup and Configuration

          OR

          System Administrator

          To send and receive messages in Messaging: Messaging Agent
          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
          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
              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. 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
            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
            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
            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.
           
          Loading
          Salesforce Help | Article