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 component to your flow.
  2. Open the Trigger Salesforce Omni-Channel flow component, 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}
      

On 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 component under the “Success” section.
  3. Under “Timeout” and “Connection error”, add the Assignment and dial (A&D) component and name it “Route to Fallback Queue”.
  4. On the Error handling section, select “Follow Connection error exit”.

  1. Open the Conditional statement component, and select the Exits tab.
  2. Select the button All 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) component and name it “Route to Agent”. Note: Make sure to always configure the agent condition first.
  4. Click “Add Exit” to add a new condition:
    queue_name is Not Undefined
    
  5. Under “Send to”, add a new Assignment and dial (A&D) component and name it “Route to Queue”.
  6. Under “No Match”, direct the call to “Route to Fallback Queue” (A&D component).
  7. Open the A&D component named “Route to Agent”.
  8. Select Agents as the assignment type.
  9. Under “Select how to find agents”, choose Variables in the flow context and select "agent_email" from the list.
  10. Complete the configuration of this component.
  11. Open the A&D component named “Route to Queue”.
  12. Select Ring Groups as the assignment type.
  13. Under “Select how to find ring groups”, choose Variables in the flow context and select "queue_name" from the list.
  14. Complete the configuration of this component.
  15. Open the A&D component named “Route to Fallback Queue”.
  16. Select Ring Groups as the assignment type.
  17. Under “Select how to find ring groups”, choose List of Ring Groups in your account and select a fallback queue.
  18. Complete the configuration of this component.
  19. 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.