Percentage Based Routing

Percentage based routing is used to distribute and balance incoming call traffic.
This can be configured using the “% Distribution” widget in Flow Builder.

How it works

% Distribution widget distributes call traffic to different flow paths based on defined percentages. Internally, a random number is generated between 0 and 100. This random number determines the flow path to be chosen. 

For example,  % distribution widget has 3 percentage groups -

  1. Default - 30%

  2. Group 1 - 20%

  3. Group 2 -  50%

When a call is being processed via % distribution widget within the flow, the system generates a random number.

  • If the number is between 0 and 30, the call proceeds through Default path

  • If the number is between 31 and 50, the call proceeds through Group 1 path

  • If the number is between 51 and 100, the call proceeds through Group 2 path

Configuration

  1. Add “% Distribution” widget from Widget library
  2. A "Default" group is automatically added along with the "% Distribution Widget" to the flow. This group cannot be deleted. Change the group name as required. The percentage for this group is auto calculated based on other group percentages to sum up the total for all groups to 100%. It cannot be edited but can be managed by changing other group percentages.
  3. To add a percentage group, click the “Add path” button in the widget config panel
    1. Percentage group name  - Give the percentage group a name. This name has to be unique.
    2. Percentage distribution - Enter a value that represents the percentage distribution for associated flow path. This value should be greater than 0 (to avoid paths that cannot be reached)
  4. The total percentages for all the percentage groups should sum up to 100.
  5. To delete a percentage group click on the delete icon next to the percentage group in the widget config panel or by clicking on the delete button that appears on clicking the widget on the canvas.



Step by Step guide - How to configure percentage based routing in a flow

  1. Create a new flow

  2. Click on the add icon linked to the “Flow Start” widget. Add “% Distribution” widget from the widget library

  3. There will be a default percentage group linked to % Distribution. You can change the name of the default group as required and the percentage will be auto calculated based on other group percentages to add up to 100%. This group cannot be deleted.

  4. Click on “Add path” to add more percentage groups.

  5. Modify percentage group names and percentages as required.

  6. Click on add icon linked to percentage groups to continue building flow paths

Give feedback about this article

Was this article helpful?

Have more questions? Submit a request

Updated:

March 14th, 2023

Author:

Tasleem Rayali

Updated By:

Tasleem Rayali

KB ID:

1856995

Page Views:

1240

Tags:

ratio routing, percent routing

Can’t find what you’re looking for?

Contact our award-winning customer care team.