Loading
Agentforce and Einstein Generative AI
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
          Configure Call Routing and Call Escalation for the Agent

          Configure Call Routing and Call Escalation for the Agent

          Configure an Omni-Channel flow to transfer inbound calls to the voice-enabled agent. Create an escalation Omni-Channel flow to disconnect the agent and, if supported by your telephony or CCaaS system, transfer the call to a rep. Add the activated escalation flow to the agent.

          Required Editions

          Available in: Lightning Experience
          Available in: Enterprise, Unlimited, and Developer Editions with Foundations or Agentforce 1 Editions, and Salesforce Voice add-ons.
          User Permissions Needed
          To open, edit, or create a flow in Flow Builder: Manage Flow
          To grant the Omni-Channel flow access to update the voice call records:

          Contact Center Admin permission set

          OR

          Contact Center Admin (Partner Telephony) permission set

          To view and edit a connection in Agentforce Builder:

          Manage Agentforce Service Agents AND Manage AI Agents

          OR

          Customize Application

          Configure Inbound Call Transfers to the Voice-Enabled Agent

          Create an Omni-Channel flow in Salesforce to transfer incoming calls to the agent. If needed, you can transfer calls to different agents.

          Tip
          Tip For calls that fail to be routed to an AI agent, configure a backup plan, where the telephony system flow redirects them to a queue or service rep.
          1. Create a routing configuration. Routing configuration determines how the calls are routed to the Agentforce Service agent. In the Routing Configuration window, enter these values. Use default values for all other settings.
            • Routing Priority: 1
            • Routing Model: External Routing
            • Capacity Type: Inherited
            • Percentage of Capacity: 100%
            Routing configuration and settings.
          2. Create a queue. This queue is used as the fallback queue for the inbound call transfers. Enter these values in the Queues Setup window. Use default values for all other settings.
            • Routing Configuration: Select the routing configuration that you created in Step 1.
            • Supported Objects: Voice Call
            • Queue Members: None
            Queue setup showing Voice Call selected as the supported object
          3. In Flow Builder, click New Flow and create an Omni-Channel flow.
            The New Automation page shows the Omni-Channel Flow type.
          4. Create an input variable that stores the Voice call record ID. Name the variable recordId, set the data type to Text, select Available for input, and then click Done.
            The telephony system provides the Voice call record ID as input to this Omni-Channel flow. For details, see Create the recordId.
            This page shows the recordId variable settings.
          5. Drag the Route Work action onto the canvas.
            Tip
            Tip You can add multiple Route Work actions to transfer work items to different Agentforce agents.
          6. Give the action a label and API name and, optionally, a description.
          7. Under Set Input Values, in the How Many Work Records to Route field, select Single.
          8. In the Record ID Variable field, select the recordId variable.
          9. In the Service Channel field, select Phone.
          10. In the Route To field, select Agentforce Service Agent.
          11. In the Agentforce Service Agent field, select the name of the voice-enabled agent.
            If you agent doesn't appear in the list, make sure your agent is activated. See Activate or Deactivate Your Agent.
          12. In the Fallback Queue field, choose Select Queue, and then select the queue you created earlier that supports the VoiceCall object.
            Note
            Note If the queue doesn’t support the VoiceCall object, the routing fails. Although the Fallback Queue field is required, it isn’t used to transfer the call.
            This page shows the Route Work settings to route work to the Agentforce Service Agent.
          13. Click Done.
          14. Verify that all actions in the flow are connected.
          15. Save and activate the Omni-Channel flow.
            Here’s a sample flow that transfers the inbound call to an agent.
            The Omni-Channel flow contains the Start, Route Work, and End nodes.
          16. To verify that the inbound flow is added in the Agentforce Builder, from the Agentfore Studio app, open expand the telephony connection for the agent. On the Routing tab, verify that the inbound flow is added.
          17. To verify that the inbound flow is added in the legacy builder, from the Agentforce Agents Setup page, lauch your agent. On the connections tab, open the connection for the agent verify that the inbound flow is added.

          Create the Escalation Omni-Channel Flow

          If an agent needs help assisting the customer, Agentforce triggers an escalation flow. Create the escalation flow to disconnect the agent and transfer the call to a rep. After Salesforce disconnects from the call, call control returns to the telephony system.

          1. In Flow Builder, click New Flow and create an Omni-Channel flow.
          2. Create an input variable that stores the Voice call record ID. Name the variable recordId, set the data type to Text, select Available for input, and then click Done.
            The telephony system provides the Voice call record ID as input to this Omni-Channel flow.
            This page shows the recordId variable settings.
          3. Add at least one action to the flow.
            You can’t save an empty flow.
          4. Click Done.
          5. Verify that all actions in the flow are connected.
          6. Save and activate the Omni-Channel flow.
            This Omni-Channel flow shows the Start, Assignment, and End nodes.

          Agents can use an outbound Omni-Channel flow to transfer the conversation to a queue, rep, or another destination you specify. For details, see Transfer Conversations from an Agent with an Omni-Channel Flow.

          Add the Escalation Flow to the Agent in the Agentforce Builder

          To know which flow to run during an escalation, add the activated escalation flow to the agent.

          1. From the Agents list in the Agentforce Studio app, open the agent you want to add the escalation flow to.
          2. In the Explorer panel, In the Explorer panel, under Agent Definition Settings, expand Connections.
          3. Open the Telephony connection that you created in Add a Telephony Connection.
          4. Click Routing. In the Escalation Flow field in the Escalations section, select the escalation flow that you just created.
            If you can’t select a flow, ensure that the agent is deactivated. Click New Version if you are using a committed version. If your flow doesn’t appear in the list, refresh the page, activate the flow, and then try again.
            Routing page in the Explorer panel with the escalation flow and the message field populated.
          5. In the Escalation Message field, if needed, modify the message that the agent says to the customer when the call is transferred to a rep.
          6. Save the connection and activate the agent.

          Add the Escalation Flow to the Agent in the Legacy Builder

          To know which flow to run during an escalation, add the activated escalation flow to the agent.

          1. From Setup, in the Quick Find box, enter Agentforce Agents, then select Agentforce Agents.
          2. To edit the agent, click the dropdown to the right of the agent name, and select Open in Builder.
          3. In Agentforce Builder, click the Connections tab.
          4. Open the Telephony connection that you created in Add a Telephony Connection.
          5. In the Escalation Flow field in the Escalations section, select the escalation flow that you just created.
            If you can’t select a flow, ensure that the agent is deactivated. If your flow doesn’t appear in the list, refresh the page, activate the flow, and then try again.
            The Telephony connection shows the selected escalation Omni-Channel flow.
          6. In the Escalation Message field, if needed, modify the message that the agent says to the customer when the call is transferred to a rep.
          7. Save the connection.
          8. Click Activate.
           
          Loading
          Salesforce Help | Article