Skip to main content
World Tour Tokyo: Registration Open! Join us for TDX, DataFam, and the SFUG CUP—all in one place.

Manage Inbound Call Routing

Learning Objectives:

After completing this unit, you’ll be able to:

  • Create an omni-channel flow to route calls.
  • Connect the flow to the voice channel.

Route Inbound Calls with Omni-Channel Flows

Now that you set up your Agentforce voice agent, it’s time to connect it to flows so you can route calls effectively. Omni-Channel flows serve as the routing brain for Salesforce Voice. When an inbound call arrives, the platform uses the associated Omni-Channel inbound flow to determine which agent should handle it and then transfers the call accordingly. Now that your agent is created and customized, the next step is to configure an Omni-Channel flow that routes inbound calls directly to it.

  1. Click The gear icon. and select Setup.
  2. In the Quick Find Box, search for and select Flows.
  3. Click New Flow.
  4. In the New Automation popup window in Flow Builder, select Omni-Channel Flow.

New Automation screen in Flow Builder showing various flow categories, with Omni-Channel Flow highlighted under the Frequently Used section.

  1. You need an input variable to store the voice call record ID. Click The Toggle Toolbox icon, then select New Resource.
  2. In the New Resource popup window, enter this information.
    • Resource Type: Select Variable
    • API Name: recordId
    • Data Type: Select Text
    • Available for input: Selected

New Resource creation process in Flow Builder showing the button to add a resource and the resulting dialog box for a recordId text variable.

  1. Click Done.

With the variable created to store the voice call record ID, you’re now ready to build the flow that routes incoming calls to your Agentforce voice agent. This flow connects the telephony event to the AI agent, ensures the right context is passed through, and orchestrates how the call moves through your system.

  1. Click The plus icon. and select the Route Work component. This component hands the current work item, such as an inbound call, to Omni-Channel so it can be queued and pushed in real time to the agent you created earlier.

Omni-Channel Flow canvas showing an Add Element dialog with various routing options, including Route Work and Voice Calls Routed to Agents and Queues.

  1. In the Route Work side panel, enter this information:
    • Label: Inbound Voice Routing Flow
    • API Name: Inbound_Voice_Routing_Flow
    • How Many Work Records to Route? Select Single
    • Record ID Variable: Select recordID (This is the variable you created in the previous section.)
    • Service Channel: Select Phone
    • Route to: Select Agentforce Service Agent
    • Agentforce Service Agent: Inbound Voice Service Agent (This is the agent you created previously.)
    • Fallback Queue: Select Queue
    • Fallback Queue ID: Select Default Queue Salesforce (or another queue you want to use as a safety net when your primary routing target can’t accept the work).

Route Work configuration screen in Flow Builder for an Inbound Voice Routing Flow, defining inputs for record variables, service channels, and routing to an Agentforce Service Agent.

  1. Click Save and enter this information:
    • Flow Label: Select Voice Call Handling Flow
    • Flow API Name: Voice_Call_Handling_Flow
  2. Click Save, then Activate.

With your agent fully configured and your Omni-Channel flow activated, your call routing framework is complete.

You built and customized an agent that’s ready to face customers. Youalso created a flow that seamlessly works with this agent to route calls based on how the conversation unfolds. The final step is to connect this flow to your voice channel, ensuring every incoming call enters this omnichannel experience. From there, the agent can interact with customers, resolve issues as designed, and when needed, smoothly hand things off to a service rep to take over.

Connect Your Flow to the Voice Channel

  1. From Setup, in the Quick Find Box, search for and select Communication Channels.
  2. Click and open your voice channel from the All Channels tab.
  3. Click Edit in the Omni-Channel Routing section.
  4. Search for and select the flow you created in the Flow Definition field.
  5. Add a Fallback Queue.
  6. Click Save.

Channel details for a voice PSTN channel in Salesforce Setup, showing Omni-Channel Routing configured with an Omni-Flow routing type and a specific flow definition.

And that’s it. With the flow embedded in the voice channel, the calls are now routed to this flow, powered by AI agents to handle customer queries and a routing mechanism to make your service rep more productive and your contact center more efficient.

Note

You can connect the flow to an existing voice channel or create a new one. To learn how to procure a new number and create a voice channel, check out Procure a Phone Number.

Wrap It Up

You effectively connected the critical pieces of the experience: the AI-powered agent capable of handling real-time voice interactions, the telephony connection that brings calls into the system, and the routing logic that ensures every call reaches the right destination.

This foundation not only streamlines your current voice support operations but also prepares you for future enhancements, whether that means expanding to additional channels and agents, enriching your agent’s knowledge, or scaling to meet growing customer demand.

Your voice support strategy is now smarter, more efficient, and ready to deliver the responsive, high-quality experiences your customers expect.

Resources

Comparta sus comentarios de Trailhead en la Ayuda de Salesforce.

Nos encantaría saber más sobre su experiencia con Trailhead. Ahora puede acceder al nuevo formulario de comentarios en cualquier momento en el sitio de Ayuda de Salesforce.

Más información Continuar a Compartir comentarios