Genesys CTI User Forum

Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: Emz on May 23, 2012, 02:20:36 PM

Title: How to attach data "waiting time" to the call
Post by: Emz on May 23, 2012, 02:20:36 PM
Hi,

sometimes a customer will complain that he has wait over 15 minutes before talking with an agent. We would like to add the waiting time as attached data to our agent desktop. I just checked on Genesys website but i only found an old post saying that on Genesys 6.5 it is not out of the box.

So is it possible to retrieve the waittime from stat server and attach it to the call in version 8? Otherwise i will attach a timestamp just before the target block and the agent will have a good idea of the wait time experienced by the customer

Thank you
Title: Re: How to attach data "waiting time" to the call
Post by: cavagnaro on May 23, 2012, 04:31:02 PM
You should take time stamps, I think there is a post related to that same question here around.
You can attach the entered time stampl and then on agent app capture it and do the rest to the actual time the call is established on agent PC. and later attach that value to the call again. No reporting obviously unless you have ICON
Title: Re: How to attach data "waiting time" to the call
Post by: terry on May 23, 2012, 08:20:43 PM
Not sure but if you have 8.1.2 URS/IRD might be "custom routing" can be used.
Create subroutine with one input and one output parameter.
All that subroutine dies is just getting any SData value (or calculate any othe rvalue) and attach it to the call.
Subroutine returns its input value (with no modifications).
Provide this subroutine name as value of Xustom Routing control in target slection object. Thats all -
whatever is in subroutine will be executed just before routing call (when agent already selected).
Title: Re: How to attach data "waiting time" to the call
Post by: Dionysis on May 24, 2012, 10:23:53 AM
This is a very easy thing to do in IRD, however I recommend strongly against doing it.

What will happen is this:

Customer: "I've been waiting 10 minutes!!!"
Agent: "No you haven't"

If the customer is already angry this will start an argument because the agent will argue the point with them.  It's a terrible customer experience.

If you must do it, then attach a time stamp before you begin targetting, then out of the green port of the targetting block check that time stamp against the current time and attach the result.

I can't remember which function it is but one of them gives you a time in EPOC (seconds since 1/1/1970), this is the best one to use as it's simple math to find the wait time.

Title: Re: How to attach data "waiting time" to the call
Post by: Emz on May 24, 2012, 01:44:22 PM
Hi,

Thank you for the input but unfortunatelly we are only using Composer, not IRD. So i am not sure to understand how i would do this in Composer?

[quote author=terry link=topic=7168.msg30790#msg30790 date=1337804443]
Not sure but if you have 8.1.2 URS/IRD might be "custom routing" can be used.
Create subroutine with one input and one output parameter.
All that subroutine dies is just getting any SData value (or calculate any othe rvalue) and attach it to the call.
Subroutine returns its input value (with no modifications).
Provide this subroutine name as value of Xustom Routing control in target slection object. Thats all -
whatever is in subroutine will be executed just before routing call (when agent already selected).
[/quote]
Title: Re: How to attach data "waiting time" to the call
Post by: terry on May 24, 2012, 05:24:26 PM
Not sure about Composer as it doesn't create strategies for URS.
Title: Re: How to attach data "waiting time" to the call
Post by: Genesys123 on May 29, 2012, 08:48:24 AM
[quote author=terry link=topic=7168.msg30802#msg30802 date=1337880266]
Not sure about Composer as it doesn't create strategies for URS.
[/quote]

Hi,

I also required this function, i am using IRD. can any one tell , how to do this in IRD?
Title: Re: How to attach data "waiting time" to the call
Post by: cavagnaro on May 29, 2012, 02:36:22 PM
It is explained how to do on IRD, read please...
Title: Re: How to attach data "waiting time" to the call
Post by: terry on May 29, 2012, 05:25:14 PM
Just in case - "custom routing" doesn't provide waiting time by itself - waiting time need to be calculated/obatined with some logic in strategy (through SData or by measuring time intervals as mentioned by Dionysis or some other way).
It just allows to execute this logic JUST BEFORE sending routing request (when agent already selected and information about it is available). Attaching data to interaction on green port of target slection object (= after call is routed) doesn't always work - sometimes it is too late.

"Custom routing" in context of target slection object - is just packing all logic needed to be executed after information about selected target is already available (passed as input parameter of subroutine) but call still on RP and it is safe to perfrorm any data attaching.
To pass into subroutine any extra data on top of selected target (for example time stamp when strategy started) INTERACTION scope variables can be used (defined in both main startegy and in custom routing subroutine).
 
Title: Re: How to attach data "waiting time" to the call
Post by: tmurdach on May 31, 2012, 07:44:43 PM
I can't speak to Composer, but in IRD it is easily done using SelectDN/SuspendForDN...

[tt]
  ----------------
| Start          |
  ----------------
        |               
        V   
-----------------
| Assign          |
| varStartTime =  |
| Timestamp[]    |
-----------------
        |
        V
  ---------------- GREEN
| SelectDN      |------>|
  ----------------        |
        |RED            |
        V                |
  ---------------- GREEN  |
| SuspendForDN  |------>|
  ----------------        |
          ----------------|
        |
        V
  ----------------
| Attach "TIQ"  |
| Timestamp[] -  |
| varStartTime  |
|                |
| (format ms)    |
  ----------------
        |               
        V               
  ----------------
| RouteCall      |
  ----------------
[/tt]
Title: Re: How to attach data "waiting time" to the call
Post by: brunomsoni on April 26, 2017, 05:04:18 PM
Hi,

Anyone did it using Composer?
Title: Re: How to attach data "waiting time" to the call
Post by: cavagnaro on April 26, 2017, 07:40:07 PM
Which is the difficulty you are facing?