Skip to main content

Uniphore Customer Portal

Fetch ACW Summaries Based On a Query

summaries [query] API query the platform to get a list of ACW summaries based on the query parameters. This is a streaming API.

Endpoint

Method: GET

URL: https://api.<region>.cloud.uniphore.com/data-collector/summaries?q=<query-json>&tenantid=<tenant-id>&environment=<environment-name>

Request
curl -H “Authorization: Bearer 911999706310ffbcb32981863e23ce72d5e60d7b” -XGET https://api.<region>.cloud.uniphore.com/data-collector/summaries?q=<query-json>&tenantId=<tenantId>&environment=<environment>
Header Parameter
Authorization - Bearer <Token>
Query Parameters

Parameter Name

Mandatory /

Optional

Type

Description

q

Mandatory

json

q represents the query that is used to fetch summaries

tenantid

Mandatory

String

The unique identifier for your account.

environment

Optional

String

Operating environment type. Three out-of-the-box environments are provided for each account:

  • DEV

  • TEST

  • PROD

Example Response
{
    "_id": "5fbcad52be145b43ae96e705",
    "conversationId": "1606200578067f0gkoaip9",
    "lang": "en-us",
    "intent": "Insurance/Automobile/Claim/Application/ApprovedA",
    "templateId": "",
    "text": "{\"format\":\"bulletPoint\",\"bullet\":[\"Agent name is  8675319\",\"Customer Name is  Customer name not found\",\"Discount offered  Discount not applied\",\"customer accepted with   \"],\"paragraph\":null}",
    "isReviewed": false,
    "manualEdits": {
        "userId": "",
        "ts": 0,
        "text": ""
    },
    "startTime": 1606200592185,
    "metadata": {
        "agentId": "agentvisakh001",
        "organizationId": "2",
        "tenantId": "1",
        "customerId": "12122",
        "businessProcessId": "224",
        "type": "",
        "conversationType": "voice",
        "journeyId": "1606200578067f0gkoaip9"
    },
    "__ts": 1606305490195
}
Response and Error Codes

Code

Response

200

A stream of newline separated summaries documents in the format listed in the above API

401

{“reason”:”Authentication failed”}

422

{“error”: “Error while decoding response from the database”}

500

{“error”: “Internal server error”}

Summary Schema
  1. {

  1. "$schema": "http://json-schema.org/draft-04/schema#",

  2. "type": "object",

  3. "properties": {

  4. "conversationId": {

  5. "type": "string",

  6. "description": "id of the contact"

  7. },

  8. "startTime": {

  9. "type": "integer",

  10. "description": "timestamp in milliseconds since epoch"

  11. },

  12. "lang": {

  13. "type": "string"

  14. },

  15. "intent": {

  16. "type": "string"

  17. },

  18. "metadata": {

  19. "type": "object",

  20. "properties": {

  21. "agentId": {

  22. "type": "string"

  23. },

  24. "customerId": {

  25. "type": "string"

  26. },

  27. "conversationType": {

  28. "type": "string"

  29. },

  30. "journeyId": {

  31. "type": "string"

  32. },

  33. "tenantId": {

  34. "type": "string"

  35. },

  36. "organizationId": {

  37. "type": "string"

  38. },

  39. "businessProcessId": {

  40. "type": "string"

  41. }

  42. },

  43. "required": [

  44. "agentId",

  45. "customerId",

  46. "conversationType",

  47. "journeyId",

  48. "tenantId",

  49. "organizationId",

  50. "businessProcessId"

  51. ]

  52. },

  53. "isReviewed": {

  54. "type": "boolean",

  55. "description": "true if the summary has been reviewed by agent/supervisor"

  56. },

  57. "text": {

  58. "type": "string"

  59. },

  60. "manualEdits": {

  61. "type": "object",

  62. "properties": {

  63. "userId": {

  64. "type": "string"

  65. },

  66. "ts": {

  67. "type": "integer"

  68. },

  69. "text": {

  70. "type": "string"

  71. }

  72. },

  73. "required": [

  74. "userId",

  75. "ts",

  76. "text"

  77. ]

  78. }

  79. },

  80. "required": [

  81. "conversationId",

  82. "startTime",

  83. "lang",

  84. "intent",

  85. "metadata",

  86. "isReviewed",

  87. "text",

  88. "manualEdits"

  89. ]

  90. }