Loading
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
          Set Up a Flow to Send Questions with Options in Messaging Sessions

          Set Up a Flow to Send Questions with Options in Messaging Sessions

          To let service reps send a question with dynamic options in supported enhanced Messaging channels or Enhanced Chat, create a flow and associate it with your question component. Then, add the flow to the Service Console.

          Required Editions

          View supported editions.
          Checkmark This article applies to: Enhanced In-App Chat, Enhanced Web Chat v1, Enhanced Web Chat v2, Enhanced WhatsApp, Enhanced Facebook Messenger, Enhanced Apple Messages for Business, Enhanced LINE, and Bring Your Own Channel
          X icon This article doesn’t apply to: Standard Facebook Messenger, and Standard and Enhanced SMS channels
          User Permissions Needed
          To open, edit, or create a flow in Flow Builder: Manage Flow
          To create or edit a console app:

          Customize Application

          AND View Setup and Configuration

          Note
          Note If you plan to create multiple messaging components that are linked to flows, here are two ways to help service reps quickly find the flow they need in the Service Console:
          • Group the Flow components in an Accordion component. To help service reps understand the purpose of the accordion component, enter a custom section label—for example, Messaging Components (Dynamic).
          • Group all messaging component flows as sub-flows within one larger flow. When a service rep runs the flow, they select the relevant sub-flow to insert the messaging component they need.
          1. In Flow Builder, create a screen flow.
          2. Create a Variable resource of data type Text, called recordId, and make it available for input. This resource stores the ID of the messaging session.
          3. Add your own custom flow logic.
            1. To add a Record Collection Variable and show a collection of records, select Allow multiple values (collection). The flow must populate the variable with the same object type that the messaging component needs. For example, if your messaging component shows a list of cases, your flow should produce a variable that is a collection of Case records.
            2. Add a Get Records element and define conditions to get the records of interest. For example, if your messaging component shows a list of cases, create an element that gets cases with a high priority and a status of New.
          4. Add a Screen flow component. Within that screen, add an Enhanced Message component.
            1. For Messaging Session ID, enter the recordId Variable that you created in step 2.
            2. Select the messaging component that you want to use.
            3. For Record Variable, enter the Record Collection Variable described in step 3.
          5. Save and activate the flow.
          6. Add the flow to the Service Console so service reps can send the component during messaging sessions. See Add Messaging to the Service Console.
          7. Send the question with options in enhanced Messaging channels or Enhanced Chat.
            1. During an active messaging session, in the Service Console, find the Flow component that’s linked to the question with options.
            2. Run the flow to insert the component into the message field.
            3. Click Send.
            In this enhanced Facebook Messenger channel, the service rep sees:
            Flow in the Conversation component

            The customer sees:

            Customer view of messaging component with dynamic options
          Example
          Example

          This flow sends a question with options component that prompts the customer to select the case that they’re inquiring about. The component is linked to the flow on the screen labeled Case Screen.

          Sample flow
           
          Loading
          Salesforce Help | Article