Loading
Salesforce now sends email only from verified domains. Read 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
          Route Voice Calls Directly to a Specific Rep with Omni-Channel Unified Routing

          Route Voice Calls Directly to a Specific Rep with Omni-Channel Unified Routing

          Route voice calls directly to a preferred rep by using Omni-Channel Unified Routing. For example, you can route sales calls from customers to their account executives.

          Required Editions

          This article applies to:

          • Service Cloud Voice with Amazon Connect
          • Service Cloud Voice with Partner Telephony from Amazon Connect
          View supported editions.
          User Permissions Needed
          To view the Amazon Contact Centers page: Customize Application AND Manage Call Centers
          To create and manage a contact center: Contact Center Admin

          Route Calls Directly to a Rep with an Assigned Number

          Route voice calls directly to and from a rep with Omni-Channel Unified Routing. This setup covers more basic routing and use cases where reps need their own number for direct inbound and outbound calls.

          Before you begin:

          • Configure Unified Routing for a contact center.
            • For direct-to-rep routing, your contact center must have a holding queue in Salesforce that’s mapped to a working queue in Amazon Connect.
            • You don’t need to claim a phone number for your contact center. You will claim numbers for each rep during a later step.
          • Prepare to route to reps.
            • Set up rep statuses and capacity.
            • Create service resources for reps.
            • Add reps to the contact center.
            • Map Salesforce users to telephony provider users.
          Follow steps to Set up a phone number for each rep for inbound and outbound calls, but make these adjustments in Amazon Connect.
          1. Edit an existing flow or use the Sample SCV Omni-Channel Subflow - Omni Routing for Direct To Agent. This sample flow is specially designed to meet Omni-Channel Unified Routing requirements.
          2. If editing an existing flow, note the requirements in the Configure Direct-to-Rep Routing with an Omni-Channel Flow in Amazon Connect section on this page.

          Route Calls Directly to a Rep with an Omni-Channel Flow and Omni-Channel Unified Routing

          Route voice calls directly to a rep with an Omni-Channel flow and Unified Routing with Omni-Channel. This setup is best for use cases that require more advanced routing logic and a single phone number for incoming calls.

          Before you begin:

          • Configure Unified Routing for a contact center.
            • For direct-to-rep routing, your contact center must have a holding queue in Salesforce that’s mapped to a working queue in Amazon Connect.
          • Prepare to route to reps.
            • Set up rep statuses and capacity.
            • Create service resources for reps.
            • Add reps to the contact center.
            • Map Salesforce users to telephony provider users.

          Configure Direct-to-Rep Routing with an Omni-Channel Flow in Salesforce

          Start configuring voice calls direct-to-rep routing with Omni-Channel Unified Routing in Salesforce. These instructions explain how to route a voice call to a rep or queue with an Omni-Channel flow, a more advanced setup.

          1. From Setup, enter and select Omni-Channel Settings. Enable the Enable Skills-Based and Direct-to-Agent Routing option.
          2. Follow the steps to create an Omni-Channel Flow.
          3. Drag the Route Work action onto the canvas.
          4. Give the action a label and an API Name and, optionally, a description.
          5. Under Set Input Values | Record ID, create and select a recordId variable.
          6. Under Route To, select Agent.
          7. Under Agent, select an option.
            1. Select Agent: Specify the rep to route the work item to.
            2. Use Variable: Use a variable to find the appropriate rep. For example, you can determine the preferred rep associated with the customer’s Contact record.
          8. To assign work to the preferred rep only when they become available, click Required Agent and specify the Routing Configuration to use for routing parameters.
            Route Work action with Required Agent selected under Agent section
          9. Alternatively, to route work to a queue when the preferred rep is unavailable, deselect the Required Agent checkbox. Then, specify the backup queue to route the work item to.
            Route Work action with Required Agent deselected in Agent section

          Configure Direct-to-Rep Routing with an Omni-Channel Flow in Amazon Connect

          Finish configuring voice calls direct-to-rep routing with Omni-Channel Unified Routing in Amazon Connect.

          1. To go to the Amazon Connect Admin Dashboard associated with your contact center, go to the Contact Center Details section in Salesforce and click Telephony Provider Settings.
          2. In Amazon Connect, select Routing, then Flows.
            Note
            Note
            • These instructions reference sample Amazon Connect flows for admins setting up Omni-Channel Unified Routing in a brand new contact center. For a contact center with preexisting flows, interpret the steps and referenced flows according to your current setup. For example, edit your inbound flow to meet the requirements below.
            • If you’re using our sample flows end-to-end, edit the Sample SCV Inbound Flow to transfer to the Sample SCV Omni-Channel Subflow - Omni Routing for Direct To Agent subflow.
          3. Edit the Sample SCV Omni-Channel Subflow - Omni Routing for Direct To Agent subflow according to your business needs.
            While Salesforce provides sample Amazon Connect flows as a reference, each organization usually adds unique business logic to their flow implementations. If you are updating an Amazon Connect flow to enable Omni-Channel Unified Routing directly to reps, reference the example flow (Sample SCV Omni-Channel Subflow - Omni Routing With Case Creation) and keep these considerations and requirements in mind.
            Sample SCV Omni-Channel Subflow - Omni Routing With Case Creation with callouts on a Set routing criteria block, Invoke AWS Lambda function block, and Set working queue block
            1. Include a Set routing criteria block (1) before the Invoke AWS Lambda function block that invokes the executeOmniFlow method.
              Set routing criteria block with Set manually selected, Requirements lists a Requirement type of Predefined attribute and a Routing (True) >= 1 requirement and Expiration set to Never expire.
            2. In the Invoke AWS Lambda function block that calls executeOmniFlow (2), edit the Function input parameter with the Destination Key of flowDevName. For Value, select Set manually, and set the value to the API name of the Omni-Channel flow that goes directly to a rep.
            3. If you’re using the holding queue approach that we recommend, the Set working queue block (3) should be set By Queue manually to the working (holding) queue.
              Set working queue block with By queue selected, Set manually selected, and the holding queue selected
          4. Save your work and publish the flow.
           
          Loading
          Salesforce Help | Article