Overview

This method is used to obtain the active conversations of a user.

Request

This section describes the information that is available in the request.

Method URL End Point
GET
TBD
/public/{streamId}/analytics/manager/agent/{agentId}/active-conversations

Request Parameters

Path Parameters

Parameter Required Description Type/Value
streamId *  Y Stream ID
(e.g.  st-606c43de5e00ca5f4e27e38a)
String

Query Parameters

Parameter Required Description Type/Value
agentGroupId N

Agent group id
Example : ag-1234

array[string]
agentId * Y

Agent Id
Example : a-1234

string
source  N

Conversation source type (chat or call or both)
Available values : chat, call

String

Sample Request

TBD

Response

The following tables describe the information that is available in the response.

Response Fields

Parameter Required/Optional Description

Authorization

Invoke the API with JWT in the header with the following syntax:

auth: {{JWT}}

Response Content Type

application/json

Sample Response

{
  "resolutionTime": 90,
  "firstResponseTime": 50,
  "responseTime": 50,
  "firstName": "Amanda",
  "lastName": "Jones",
  "name": "Amanda Jones",
  "profImage": "http://localhost/api/getMediaStream/market/f-2f4a86c4-f80f-5fac-99e1-78b0086c459f.png?n=8048409764&s=InNFTVBpZTZpcHpVTkJFLzIwMC9aemQ3d1NBakRVbXhuOGFWcmMrUGxDV2c9Ig$",
  "onlineStatus": "available",
  "active": [
    {
      "firstName": "Amanda",
      "lastName": "Jones",
      "skills": [
        {
          "id": "s-21223123",
          "name": "Sales"
        }
      ],
      "startTime": "2021-04-01T05:45:00.803Z",
      "conversationId": "c-1233",
      "source": "call",
      "profImage": "no-avatar",
      "engagementTime": 1020,
      "waitTime": 41445
    }
  ],
  "queue": [
    {
      "firstName": "Amanda",
      "lastName": "Jones",
      "skills": [
        {
          "id": "s-21223123",
          "name": "Sales"
        }
      ],
      "startTime": "2021-04-01T05:45:00.803Z",
      "conversationId": "c-1233",
      "source": "call",
      "profImage": "no-avatar",
      "waitTime": 120
    }
  ]
}

Leave a Reply

Your email address will not be published. Required fields are marked *

Fill out this field
Fill out this field
Please enter a valid email address.
You need to agree with the terms to proceed