Queue Conversation with the longest duration

Hello,

Hoping for some advice and guidance.

I am trying to create a data action that checks all of the current calls that are in a queue and makes a decision based on the longest call in the queue.

How do I go about getting the longest call in a queue?

I am assuming that I can use /api/v2/analytics/conversations/details/query with the query below, or is there a better way?

{
 "interval": "2022-05-30T23:00:00.000Z/2022-05-31T23:00:00.000Z",
 "order": "asc",
 "orderBy": "conversationStart",
 "paging": {
  "pageSize": 25,
  "pageNumber": 1
 },
 "segmentFilters": [
  {
   "type": "or",
   "predicates": [
    {
     "type": "dimension",
     "dimension": "queueId",
     "operator": "matches",
     "value": "2bdc494e-3db9-4f53-8327-a6439d548a1c"
    }
   ]
  }
 ],
 "conversationFilters": [
  {
   "type": "or",
   "predicates": [
    {
     "type": "dimension",
     "dimension": "conversationEnd",
     "operator": "notExists",
     "value": null
    }
   ]
  }
 ]
}

Thank you.

Hi CHris,

While someone in this room may be able to help, you might also want to ask your query question in the reporting and analytics room.

--Jason

1 Like

Hi Jason,

Thank you. Will do.

-Chris