Routing a Call based on a Salesforce Omni-Channel Flow with T4SCV

If you have the Talkdesk for Service Cloud Voice product, you can route a call with Talkdesk Studio based on Salesforce Omni-Channel flow routing rules.

Please follow these instructions to learn how:

  1. Add the Trigger Salesforce Omni-Channel flow node to your flow.
  2. Open the Trigger Salesforce Omni-Channel flow node, and select the Preferences tab.
  3. In the Flow Input Parameters section, add the context variables you want to send to Salesforce. You can skip this step if you don't have any value you want to send to Salesforce.
    1. Under Parameter Name, add the Salesforce variable name, previously configured on the Salesforce Omni-Channel Flow.
    2. Under Value, add the context variable from the studio flow. In this case, we are sending an IVR selection variable. To learn more about variables, check this article. Use the syntax
      {current_flow.variable_name}

In the Variables section:

  1. Click on the Agent dropdown and add a new variable with the name "agent_email". This variable will store the agent email, if provided by Salesforce, to whom we should route the call.
  2. Click on the Queue dropdown and add a new variable with the name "queue_name". This variable will store the queue name, if provided by Salesforce, to whom we should route the call.

Next:

  1. Select the Exits tab.
  2. Add the Conditional statement node under the "Success" section.
  3. Under "Timeout" and "Connection error", add the Assignment and dial (A&D) node and name it "Route to Fallback Queue".
  4. In the Error handling section, select "Follow Connection error exit".

Next:

  1. Open the Conditional statement node, and select the Exits tab.
  2. Select the button And in the first "Exit" to create the condition:
    agent_email is Not Undefined
  3. Under "Send to" add a new Assignment and dial (A&D) node and name it "Route to Agent". Note: Make sure to always configure the agent condition first.
  1. Click "Add Exit" to add a new condition:
queue_name is Not Undefined
  1. Under "Send to", add a new Assignment and dial (A&D) node and name it "Route to Queue".
  2. Under "No Match", direct the call to "Route to Fallback Queue" (A&D node).

Next:

  1. Open the A&D node named "Route to Agent".
  2. Select Agents as the assignment type.
  3. Under "Select how to find agents", choose Variables in the flow context and select "agent_email" from the list.
  1. Complete the configuration of this node.

Next:

  1. Open the A&D node named "Route to Queue".

  2. Select Queues as the assignment type.

  3. Under "Select how to find queues", choose Variables in the flow context and select the relevant queue from the list.

  1. Complete the configuration of this node.

Next:

  1. Open the A&D node named "Route to Fallback Queue".

  2. Select Queues as the assignment type.

  3. Under "Select how to find queues", choose List of queues in your account and select a fallback queue.

  1. Complete the configuration of this node.
  2. Save and publish your flow.

From now on, when this flow runs it triggers a Salesforce omni-channel flow based on the destination number and receives an agent or queue name from Salesforce to proceed with the routing assignment.