Jump to: navigation, search

Routing Based on Date and Time Sample

This application demonstrates routing based on business hours. A customer care company separates customer calls based on working days (Monday - Friday) and working hours (09:00 -17:00). Based on the working days and hours, the company sends the customer call to one of two targets.

  • Agent Group #1: CustomerServiceTeam - Available during the working days and hours.
  • Agent Group #2: AfterHoursTeam - Available for non-regular working days and hours.

Previous Genesys Administrator (or Configuration Manager) setup involved defining Agent Groups and agents (Persons). The workflow diagram is shown below.


The above diagram is keyed to the numbers below.

  1. The Entry block Variables property includes three user-defined variables. The Today and IsNineToFive variables are used for this application.
  2. The Assign block Assign Data property assign a value to the Today variable. The function shown returns the current day of the week in the specified timezone.
  3. SampBusHrs3.gif
  4. The Branching block Conditions property contains an expression used for segmenting interactions based on the date condition.
  5. SampBusHrs4.gif
  6. You can open Expression Builder from the Condition property of the branching block and access Orchestration Server date/time functions (Data Category=Orchestration Server Functions > Data Subcategory=genesys):
  7. The ECMAScript block Script property uses standard ECMAScript time objects.
  8. ExpBldrMulti.gif
  9. The Branching block Conditions property contains an expression, which determines whether the interaction goes to the  CustomerServiceTeam or the AfterHoursTeam Agent Group.
  10. The first Target block routes to the CustomerServerTeam.
  11. The second Target block routes to the AfterHoursTeam.
This page was last edited on November 30, 2018, at 18:47.
Comments or questions about this documentation? Contact us for support!