Genesys Cloud - Main

 View Only

Sign Up

  Thread closed by the administrator, not accepting new replies.
  • 1.  Retrieve the real waiting time for an interaction and display it in the Script

    Posted 12-12-2023 12:29
    No replies, thread closed.

    Hi all,

    Is it possible to create a variable (or Participant Data) in Architect - InQueue Flow to store the real waiting time for an interaction and pass this information to the Script once the call is answered by an available agent.

    It will helps the agent to know how much time that the caller spent in the waiting.

    I don't find any built-in variable that collect this info, I think it will be necessary to create a Data Action (Analytics API) to retrieve this information.

    Please, don't hesitate to share your opinion on this.

    Thank you in advance.


    #Reporting/Analytics
    #SystemAdministration


  • 2.  RE: Retrieve the real waiting time for an interaction and display it in the Script

    Posted 12-12-2023 14:28
    No replies, thread closed.

    Mostafa,

    I don't think an in queue flow is the best for this.  Even if you used a data action to get this information, it's only a snapshot and I don't know of a way to trigger it right before the call is sent to the agent from the in queue flow.  I would try this, before sending the call to queue, I would do an Update Data, and create a variable for time using the GetCurrentDateTimeUTC expression. Then send this variable in the SetScreenPop action.  In the script, I would subtract that value from the {{Scripter.Agent Call Start Time}}, calculating it on Page Load of the start page of your script.  .  

    I haven't done this and I couldn't guarantee it will work.  But this is how I would attempt it.  

    Thank you,



    ------------------------------
    Jason Tripp
    Independent Health Association, Inc.
    ------------------------------



  • 3.  RE: Retrieve the real waiting time for an interaction and display it in the Script

    Posted 12-12-2023 15:41
    No replies, thread closed.

    Hi Jason,

    Thanks for your help, yes, I believe it can works fine for a Script, however, I need also to pass this information as Participant data (attached to the interaction) through Architect to the third party CRM (like salesforce).

    CRM team will retrieve this information from Genesys as PDATA in realtime to display it in the Embeddable Framework.



    ------------------------------
    Mostafa OUDDERHEM
    SABIO FRANCE SAS
    ------------------------------



  • 4.  RE: Retrieve the real waiting time for an interaction and display it in the Script

    Posted 12-12-2023 16:11
    Edited by Vaun McCarthy 12-12-2023 16:11
    No replies, thread closed.

    Hi Mostafa

    Another thing you could try looking into is calling a data action upon script/page load that queries the current conversation, gets the interacting segment where the participant purpose is "ACD".  That gives you segment start and end times and you could then look at maybe doing a calculation to get the difference of those (which you maybe able to do in the data action response configuration - not sure).  Where this concept gets tricky is if you have multiple ACD segments (transfers etc).



    ------------------------------
    Vaun McCarthyVaun McCarthy
    ------------------------------



  • 5.  RE: Retrieve the real waiting time for an interaction and display it in the Script

    Posted 12-12-2023 16:46
    No replies, thread closed.

    Hi Vaun,

    Thanks for your feedback, I checked for this also, but the problem is that we don't have the endtime segment for "purpose = acd'. Because the interaction is not finished yet.

    The end time we can obtain it only once the interaction is closed.

    If you can see in this example below, I have only Segment Start when calling this API:

              "segments": [
                {
                  "conference": false,
                  "queueId": "7de58586-ce3b-47e8-b225-5805a46888fd",
                  "segmentEnd": "2023-12-12T21:36:18.583Z",
                  "segmentStart": "2023-12-12T21:36:18.505Z",
                  "segmentType": "delay"
                },
                {
                  "conference": false,
                  "queueId": "7de58586-ce3b-47e8-b225-5805a46888fd",
                  "segmentStart": "2023-12-12T21:36:18.583Z",
                  "segmentType": "interact"
             

    Thank you.



    ------------------------------
    Mostafa OUDDERHEM
    SABIO FRANCE SAS
    ------------------------------



  • 6.  RE: Retrieve the real waiting time for an interaction and display it in the Script

    Posted 12-12-2023 16:49
    No replies, thread closed.

    Ahh ok yes makes sense.



    ------------------------------
    Vaun McCarthy
    ------------------------------



  • 7.  RE: Retrieve the real waiting time for an interaction and display it in the Script

    Posted 12-12-2023 21:49
    No replies, thread closed.

    Actually I wonder if you could still do this and use the agent call start time as the "end" time for the ACD segment.



    ------------------------------
    Vaun McCarthy
    ------------------------------



  • 8.  RE: Retrieve the real waiting time for an interaction and display it in the Script

    Posted 12-13-2023 05:30
    No replies, thread closed.

    Hi Mostafa,

    Wouldn't the scripter viarable {{Scripter.Customer Call Duration}} work for this, although it includes the time the customer spent in IVR?

    If you want a fixed value of the time the customer spent in queue, you could save a timestamp before you transfer to queue, and compare it with {{Scripter.Agent Call Start Time}}.



    ------------------------------
    Jan Heinonen
    Contact Center Specialist
    GlobalConnect AB
    ------------------------------



  • 9.  RE: Retrieve the real waiting time for an interaction and display it in the Script

    Posted 12-13-2023 05:40
    No replies, thread closed.

    Hi Jan,

    Thanks for your feedback, it is good idea, do you know how to do subtract of two values {{Scripter.Agent Call Start Time}} and {{GetCurrentDateTime}} from Architect?

    I need to pass this information as Participant Data from Architect to CRM.



    ------------------------------
    Mostafa OUDDERHEM
    SABIO FRANCE SAS
    ------------------------------



  • 10.  RE: Retrieve the real waiting time for an interaction and display it in the Script

    Posted 12-13-2023 07:21
    No replies, thread closed.

    Hi Mostafa,

    I haven't tested this exact case, but you should be able to do it by using Dynamic Variables.

    You could probably use something like

    dateToMilliseconds({{Scripter.Customer Call Start Time}})

    and then do the same on the GetCurrentDateTime, and redact that from the first result to get the duration in queue.



    ------------------------------
    Jan Heinonen
    Contact Center Specialist
    GlobalConnect AB
    ------------------------------