Genesys Cloud - Developer Community!

 View Only

Sign Up

Expand all | Collapse all

How is order of queues determined in Interactions view?

  • 1.  How is order of queues determined in Interactions view?

    Posted 04-08-2025 14:09

    I am trying to replicate the order of queues an interaction goes through as it's displayed in the Queue column in the Interactions table. I have a database with data from the Conversation Details API that I'm trying to use to achieve this, but through a lot of trial and error, I'm not able to exactly replicate this. I'm often getting duplicate queues, missing some queues altogether, or showing a return to an earlier queue when the Queue column does not. I've tried filtering out by different combinations of participant purpose and segment type, and unique sessionId and participantId. 

    How is the Queue column determined in the context of Conversation Details data so I can match exactly what the Interactions table has?


    #AnalyticsAPI
    #Metrics
    #PerformanceViews

    ------------------------------
    William Radovich
    ------------------------------


  • 2.  RE: How is order of queues determined in Interactions view?
    Best Answer

    Posted 04-09-2025 05:25

    Hi William,

    The queues are pulled from the Participants with purpose ACD, but it does not duplicate queues. e.g. If a call goes from Queue A to Queue B and the is transferred back to Queue A, it will shows as Queue A, Queue B in the column, not Queue A, Queue B, Queue A.



    ------------------------------
    Sam Jillard
    Online Community Manager/Moderator
    Genesys - Employees
    ------------------------------



  • 3.  RE: How is order of queues determined in Interactions view?

    Posted 04-11-2025 15:35

    Hello Sam,

    Thanks for your response. I've found instances in our Genesys system where there is no participant with purpose ACD, but there is a queue for it in the Interactions table. Are there any additional exceptions for inbound/outbound or anything else relating to voice and callback media types?

    Thanks,

    Bill



    ------------------------------
    William Radovich
    ------------------------------



  • 4.  RE: How is order of queues determined in Interactions view?

    Posted 04-11-2025 16:35

    Hi Bill, how many of those were calls made on behalf of queue?  Those will show purpose of agent instead of ACD but the queue will still appear in the queues column in interactions view.



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



  • 5.  RE: How is order of queues determined in Interactions view?

    Posted 04-14-2025 14:21

    From what I can tell, a great deal of the outliers were made on behalf of the queue. I was able to fully resolve this by adding in queues where purpose = 'agent' and segmentType = 'contacting'. 

    My remaining outliers (a very small fraction of a %) show the Genesys queue out-of-order from the segmentStart times. I.e., the segments data suggests A->B->C, but the Queue column shows A->C->B. 



    ------------------------------
    William Radovich
    ------------------------------



  • 6.  RE: How is order of queues determined in Interactions view?

    Posted 05-21-2025 10:48

    Bump



    ------------------------------
    William Radovich
    ------------------------------



  • 7.  RE: How is order of queues determined in Interactions view?

    Posted 06-11-2025 09:47

    Hi William, sorry for missing this.

    I believe the queues are in the order in which the segments started minus any duplicates. e.g. if the interaction went A->B->C->B it would show A,B,C in the queue column. If you have examples, it would certainly be worth double checking the timings that the segments started.

    If you have examples that show segments in a different order to the timestamps, it would probably need to be investigated by Genesys Customer Care to confirm what caused the queues to be in a different order.



    ------------------------------
    Sam Jillard
    Online Community Manager/Moderator
    Genesys - Employees
    ------------------------------



  • 8.  RE: How is order of queues determined in Interactions view?

    Posted 06-12-2025 14:43

    Hello Sam, thanks for responding. I do have a ticket open with Customer Care for this issue. I understand it's likely not a bug per-se, I'm just trying to replicate what my customer sees in Genesys Cloud so my reports with Conversation Details API data will match exactly.

    Here's an example:

    By taking the earliest segment start, it should be C -> E -> H -> A. Genesys Cloud shows it as C -> A -> E -> H. Let me know if any other information or other examples would be useful.



    ------------------------------
    William Radovich
    ------------------------------



  • 9.  RE: How is order of queues determined in Interactions view?

    Posted 06-13-2025 08:16

    Is this example an inbound/outbound call? Are they all segments with the purpose ACD?



    ------------------------------
    Sam Jillard
    Online Community Manager/Moderator
    Genesys - Employees
    ------------------------------



  • 10.  RE: How is order of queues determined in Interactions view?

    Posted 06-13-2025 10:14

    This is a callback. Here is the same screenshot with mediaType and purpose. Below is also my SQL logic for determining queue flow:

    SELECT 
        conversationId   

    , STRING_AGG(TRIM(queueName), '; ') WITHIN GROUP (ORDER BY segmentStart) AS queue_flow
    FROM (
        SELECT 
            conversationId
            , conversationStart
            , COALESCE(queueName, queueId) AS queueName
            , segmentStart
        FROM (
            SELECT
                conversationId,
                conversationStart AT TIME ZONE 'Eastern Standard Time' AS conversationStart,
                queueId,
                segmentStart,
                ROW_NUMBER() OVER (PARTITION BY queueId, conversationId ORDER BY segmentStart) AS rn
            FROM dbo.fact_genesys_conversations_sessions
            CROSS APPLY OPENJSON(segments) 
            WITH (
                segmentStart DATETIMEOFFSET(3) '$.segmentStart',
                segmentType VARCHAR(13) '$.segmentType',
                queueId VARCHAR(37) '$.queueId'
                ) AS s
            WHERE (purpose = 'acd' OR (purpose = 'agent' AND segmentType = 'contacting')) AND queueId IS NOT NULL
        ) a
        LEFT JOIN (SELECT id, [name] AS queueName FROM dbo.dim_genesys_queues) qs
        ON a.queueId = qs.id
        WHERE rn = 1
    ) b
    GROUP BY conversationId



    ------------------------------
    William Radovich
    ------------------------------



  • 11.  RE: How is order of queues determined in Interactions view?

    Posted 06-23-2025 11:45

    Bump



    ------------------------------
    William Radovich
    ------------------------------



  • 12.  RE: How is order of queues determined in Interactions view?

    Posted 06-23-2025 12:41

    Sorry again for not seeing this sooner, I am not so good with SQL logic, but looks like it is pulling in the order of the document.  Can you confirm you are using: /api/v2/analytics/conversations/details?

    It may be worth raising a case with Genesys Product Support to get a definitive answer on why these specific interactions appear to have the queues out of order compared to the timestamps. 



    ------------------------------
    Sam Jillard
    Online Community Manager/Moderator
    Genesys - Employees
    ------------------------------



  • 13.  RE: How is order of queues determined in Interactions view?

    Posted 06-23-2025 15:30

    Yes, that's the API my data is coming from. The column names and everything are the same as what I receive back from the API. 

    I've had a Customer Care ticket open for about 2 months - they don't believe this is in their scope because it's not a bug per-se, and pointed me towards the Developer Community for help.

    Basically what the SQL is doing is it starts by taking all the segment records and filters down to just those that have queueIds. This is filtered down again to segment records where the parent session record has a purpose of 'ACD', or  (purpose = 'agent' and segment type = 'contacting'). These records are sorted by segment start timestamp and I'm taking the first instance of each queue as it appears for the conversation, then matching back to the actual queue name and joining with semi-colons. It's extremely close to the Genesys Cloud Interactions queue column, it's inaccurate about 1.3% of the time from my calculations. The remaining discrepancies are in the types of records like I've described in this thread where the queues are appearing out-of-order in the Interactions table.

    Thanks,
    Bill



    ------------------------------
    William Radovich
    ------------------------------



  • 14.  RE: How is order of queues determined in Interactions view?

    Posted 06-24-2025 05:15

    Hi William, 

    I will move this to the Genesys Cloud Developer Community then and see if they can confirm the expected behavior or if it is possible to match the order in the view



    ------------------------------
    Sam Jillard
    Online Community Manager/Moderator
    Genesys - Employees
    ------------------------------



  • 15.  RE: How is order of queues determined in Interactions view?

    Posted 06-24-2025 13:29

    Hello Sam,

    Sorry if I'm misunderstanding but isn't this post already in the Developer Community? 

    If this is expected behavior then I would need as detailed an explanation as possible that I can water down and relay to my customer who wants this to match exactly. I would much prefer to know what workarounds or conditions I need to account for that can get my queue orders to match 100% of the time.

    Thanks,

    Bill



    ------------------------------
    William Radovich
    ------------------------------



  • 16.  RE: How is order of queues determined in Interactions view?

    Posted 07-02-2025 14:06

    Bump



    ------------------------------
    William Radovich
    ------------------------------



  • 17.  RE: How is order of queues determined in Interactions view?

    Posted 07-08-2025 13:42

    Bump



    ------------------------------
    William Radovich
    ------------------------------



  • 18.  RE: How is order of queues determined in Interactions view?

    Posted 07-16-2025 08:18

    Bump



    ------------------------------
    William Radovich
    ------------------------------



  • 19.  RE: How is order of queues determined in Interactions view?

    Posted 07-16-2025 08:50

    If you look in the Interactions Timeline view, which order are they shown there?



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



  • 20.  RE: How is order of queues determined in Interactions view?

    Posted 07-17-2025 10:21

    In the timeline view it's C -> E -> H -> A, the same as my calculated version of the Queue column. Oddly enough, the Queue column for this interaction was C -> A -> E -> H, but when I examine this interaction's details page, now Queue says C -> E -> H -> A. Unfortunately, the Queue column on the Interactions page is what my reports are being QA'd against.



    ------------------------------
    William Radovich
    ------------------------------



  • 21.  RE: How is order of queues determined in Interactions view?

    Posted 07-21-2025 11:36

    Bump



    ------------------------------
    William Radovich
    ------------------------------



  • 22.  RE: How is order of queues determined in Interactions view?

    Posted 07-23-2025 08:40

    Bump



    ------------------------------
    William Radovich
    ------------------------------



  • 23.  RE: How is order of queues determined in Interactions view?

    Posted 07-25-2025 11:08

    Bump



    ------------------------------
    William Radovich
    ------------------------------



  • 24.  RE: How is order of queues determined in Interactions view?

    Posted 07-28-2025 08:12

    Bump



    ------------------------------
    William Radovich
    ------------------------------



  • 25.  RE: How is order of queues determined in Interactions view?

    Posted 07-29-2025 09:00

    Bump



    ------------------------------
    William Radovich
    ------------------------------



  • 26.  RE: How is order of queues determined in Interactions view?

    Posted 07-30-2025 08:47

    Bump



    ------------------------------
    William Radovich
    ------------------------------



  • 27.  RE: How is order of queues determined in Interactions view?

    Posted 07-31-2025 14:55

    Bump



    ------------------------------
    William Radovich
    ------------------------------



  • 28.  RE: How is order of queues determined in Interactions view?

    Posted 08-01-2025 15:01

    Bump



    ------------------------------
    William Radovich
    ------------------------------



  • 29.  RE: How is order of queues determined in Interactions view?

    Posted 08-04-2025 08:42

    Bump



    ------------------------------
    William Radovich
    ------------------------------



  • 30.  RE: How is order of queues determined in Interactions view?

    Posted 08-04-2025 08:59

    For this example, what does the Timeline view show in the interaction's Details?



    ------------------------------
    George Ganahl GCCX-AI, GCP, GCSME, ICCE, ICHD, etc.
    Technical Adoption Champion
    Genesys
    2024 Community Member of the Year
    ------------------------------



  • 31.  RE: How is order of queues determined in Interactions view?

    Posted 08-04-2025 14:34
    Edited by William Radovich 08-04-2025 14:41

    Thanks for the reply George. Here's the Timeline view. I have all the conversation details session/segment/metrics data for this as well.

    Here is the queue order shown in the Interactions table & CSV data export, and the queue order shown in the interaction details page, respectively. 
    Order of queues displayed on Interactions table page in Genesys Cloud.
    Order of queues displayed on the details page for this interaction.



    ------------------------------
    William Radovich
    ------------------------------



  • 32.  RE: How is order of queues determined in Interactions view?

    Posted 08-04-2025 15:13

    Wow...that's a convoluted Timeline. You don't normally see a new ACD segment pop in during an ongoing Interact segment (that's not on hold) with another agent...let alone a third ACD segment popping in

    Are those perhaps representative of other queues being conferenced into the original call between the original agent/caller conversation? 

    What actually happened on that original call?



    ------------------------------
    George Ganahl GCCX-AI, GCP, GCSME, ICCE, ICHD, etc.
    Technical Adoption Champion
    Genesys
    2024 Community Member of the Year
    ------------------------------



  • 33.  RE: How is order of queues determined in Interactions view?

    Posted 08-05-2025 14:42

    I had to unarchive the conversation and listen back to it. Customer calls in and is answered by an agent in the C queue. They get transferred to the E queue, which goes in between the C queue and a queue specific to the region that customer is calling in from - in this case it's the H queue. They speak to an agent in the E queue. The E queue agent calls the H queue and puts the customer on hold. The agent picks back up and tells the customer that they're waiting for a response from the H queue and places them back on hold again. The agent picks up again and tells the customer that they can't get an answer from the H queue because the agents may not be in the office yet and tells the customer they may want to call back later or wait to receive a callback. The customer asks the same agent about applying for certain programs, and the agent transfers them to the A queue. The customer speaks to the first agent in queue A before they have to get transferred internally to another agent because they are dealing with a system update. The second A queue agent picks up and handles the customer's request. It sounds like it abruptly ends in the middle of the agent's questions, with a minute or two of only the sounds of some ambient white noise, a beeping noise midway through, the agent breathing and clearing their throat.

    It seems like the customer never spoke with anyone in the H queue and just went C->E->A, but the order of queues attempted to be reached was C->E->H->A.



    ------------------------------
    William Radovich
    ------------------------------



  • 34.  RE: How is order of queues determined in Interactions view?

    Posted 08-05-2025 17:11

    Well...I can't reconcile that to the Timeline view, quite, because I don't see Holds there where I would expect them...but the recording doesn't lie.

    It makes me wonder if some data did not get properly logged by DataLake in the back end...but you'd have to have someone in Support make a deep dive on the conversation data to see (if it is still available...some data only stores for 30 days).



    ------------------------------
    George Ganahl GCCX-AI, GCP, GCSME, ICCE, ICHD, etc.
    Technical Adoption Champion
    Genesys
    2024 Community Member of the Year
    ------------------------------



  • 35.  RE: How is order of queues determined in Interactions view?

    Posted 08-06-2025 08:37

    There are some odd patterns with the holds, but my only concern is the order of queues displayed. Nothing about this call would seem to indicate the order of queues traversed was C->A->E->H, but that is the order that my reports is getting compared against during QA since it's what the Interactions view displays in the table view and in the data export.

    Where are these queue orders coming from (I can't see any API calls for conversations besides conversation details, which doesn't return these queue flows)? Why is it different in the Interactions view vs. the detailed view when I click into it? It would at least be useful for me to know if there is a bug with this so I can re-engage Customer Care, and tell QA to examine these conversations where queue flow is off to see if the Queue flow matches mine when they click into the Interaction details in Genesys Cloud, like this conversation would.



    ------------------------------
    William Radovich
    ------------------------------



  • 36.  RE: How is order of queues determined in Interactions view?

    Posted 08-06-2025 09:00
    Edited by Jan Heinonen 08-06-2025 09:02

    Hi, I've been on vacation so haven't followed this for a couple of weeks.

    Without seeing the actual json but looking at the sorted segments I would say that it doesn't sort the segments by time when getting the queues, it just takes them in the order they appear in the conversation details JSON.

    So first you have the Customer object that includes queue C and A, and further down in the JSON you'll have the ACD objects with the other queues which would make the order shown make sense.

    You could also ask if QA actually wants it to match this order, or if it should be in the order timeline shows, which I personally would find more useful.



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



  • 37.  RE: How is order of queues determined in Interactions view?

    Posted 08-06-2025 09:26

    Hello Jan,

    That's an interesting observation. The JSON for this conversation's details does have C->A->E->H in order of appearance top-to-bottom. For 98-99% of all conversations, the JSON order and segmentStart order of queues is exactly the same except in these rare instances I guess. I will have to instruct my QA team to examine the conversations that aren't lining up between the Interactions view and my reports, and see when they click into the Interaction details that the queue order and timeline does in fact line up with my order.

    Thanks,



    ------------------------------
    William Radovich
    ------------------------------