{"id":5204,"date":"2022-07-07T22:16:37","date_gmt":"2022-07-07T16:46:37","guid":{"rendered":"https:\/\/docs.kore.ai\/smartassist\/?p=5204"},"modified":"2022-07-07T22:16:37","modified_gmt":"2022-07-07T16:46:37","slug":"get-active-conversations-of-a-user","status":"publish","type":"post","link":"https:\/\/multisite.korebots.com\/agentassist\/get-active-conversations-of-a-user\/","title":{"rendered":"Get Active conversations of a user"},"content":{"rendered":"<h2><span class=\"ez-toc-section\" id=\"Overview\"><\/span>Overview<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><span style=\"font-weight: 400\">This method is used to obtain the active conversations of a user.<br \/>\n<\/span><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Request\"><\/span>Request<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>This section describes the information that is available in the request.<\/p>\n<table>\n<tbody>\n<tr>\n<th><b>Method<\/b><\/th>\n<th>URL<\/th>\n<th>End Point<\/th>\n<\/tr>\n<tr>\n<td>\n<pre>GET<\/pre>\n<\/td>\n<td>TBD<\/td>\n<td>\n<pre>\/public\/{streamId}\/analytics\/manager\/agent\/{agentId}\/active-conversations<\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2><span class=\"ez-toc-section\" id=\"Request_Parameters\"><\/span>Request Parameters<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h4><span class=\"ez-toc-section\" id=\"Path_Parameters\"><\/span>Path Parameters<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<table>\n<tbody>\n<tr>\n<th><b>Parameter<\/b><\/th>\n<th><b>Required<\/b><\/th>\n<th><b>Description<\/b><\/th>\n<th><b>Type\/Value<\/b><\/th>\n<\/tr>\n<tr>\n<td>streamId *<\/td>\n<td>\u00a0Y<\/td>\n<td>Stream ID<br \/>\n<span style=\"font-weight: 400\">(e.g. <\/span><span style=\"font-weight: 400\">\u00a0st-606c43de5e00ca5f4e27e38a)<\/span><\/td>\n<td>String<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4><span class=\"ez-toc-section\" id=\"Query_Parameters\"><\/span>Query Parameters<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<table>\n<tbody>\n<tr>\n<th><b>Parameter<\/b><\/th>\n<th><b>Required<\/b><\/th>\n<th><b>Description<\/b><\/th>\n<th><b>Type\/Value<\/b><\/th>\n<\/tr>\n<tr>\n<td>agentGroupId<\/td>\n<td>N<\/td>\n<td>\n<div class=\"renderedMarkdown\">\n<p>Agent group id<br \/>\n<i>Example<\/i>\u00a0: ag-1234<\/p>\n<\/div>\n<\/td>\n<td>array[string]<\/td>\n<\/tr>\n<tr>\n<td>agentId *<\/td>\n<td>Y<\/td>\n<td>\n<div class=\"renderedMarkdown\">\n<p>Agent Id<br \/>\n<i style=\"font-family: inherit;font-size: inherit\">Example<\/i><span style=\"font-family: inherit;font-size: inherit\">\u00a0: a-1234<\/span><\/p>\n<\/div>\n<\/td>\n<td>string<\/td>\n<\/tr>\n<tr>\n<td>source<\/td>\n<td>\u00a0N<\/td>\n<td>\n<div class=\"renderedMarkdown\">\n<p>Conversation source type (chat or call or both)<br \/>\n<i style=\"font-family: inherit;font-size: inherit\">Available values<\/i><span style=\"font-family: inherit;font-size: inherit\">\u00a0: chat, call<\/span><\/p>\n<\/div>\n<\/td>\n<td>String<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3><span class=\"ez-toc-section\" id=\"Sample_Request\"><\/span>Sample Request<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<pre>TBD<\/pre>\n<div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div><div class=\"wpb_text_column\"><div class=\"wpb_wrapper\"><p><span style=\"color: #26344a;font-size: 16px;letter-spacing: 0em\">Response<\/span><\/p>\n<p>The following tables describe the information that is available in the response.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Response_Fields\"><\/span>Response Fields<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<table>\n<tbody>\n<tr>\n<th><b>Parameter<\/b><\/th>\n<th><b>Required\/Optional<\/b><\/th>\n<th><b>Description<\/b><\/th>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div><\/div><div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div><div class=\"wpb_text_column\"><div class=\"wpb_wrapper\"><h3><span class=\"ez-toc-section\" id=\"Authorization\"><\/span>Authorization<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400\">Invoke the API with JWT in the header with the following syntax:<\/span><\/p>\n<pre><span style=\"font-weight: 400\">auth: {{JWT}}<\/span><\/pre>\n<h3><span class=\"ez-toc-section\" id=\"Response_Content_Type\"><\/span>Response Content Type<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><code>application\/json<\/code><\/p>\n<\/div><\/div><div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div><div class=\"wpb_text_column\"><div class=\"wpb_wrapper\"><h3><span class=\"ez-toc-section\" id=\"Sample_Response\"><\/span>Sample Response<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<pre class=\"example microlight\"><code>{\n  <span class=\"hljs-attr\">\"resolutionTime\"<\/span>: 90,\n  <span class=\"hljs-attr\">\"firstResponseTime\"<\/span>: 50,\n  <span class=\"hljs-attr\">\"responseTime\"<\/span>: 50,\n  <span class=\"hljs-attr\">\"firstName\"<\/span>: \"Amanda\",\n  <span class=\"hljs-attr\">\"lastName\"<\/span>: \"Jones\",\n  <span class=\"hljs-attr\">\"name\"<\/span>: \"Amanda Jones\",\n  <span class=\"hljs-attr\">\"profImage\"<\/span>: \"http:\/\/localhost\/api\/getMediaStream\/market\/f-2f4a86c4-f80f-5fac-99e1-78b0086c459f.png?n=8048409764&amp;s=InNFTVBpZTZpcHpVTkJFLzIwMC9aemQ3d1NBakRVbXhuOGFWcmMrUGxDV2c9Ig$\",\n  <span class=\"hljs-attr\">\"onlineStatus\"<\/span>: \"available\",\n  <span class=\"hljs-attr\">\"active\"<\/span>: [\n    {\n      <span class=\"hljs-attr\">\"firstName\"<\/span>: \"Amanda\",\n      <span class=\"hljs-attr\">\"lastName\"<\/span>: \"Jones\",\n      <span class=\"hljs-attr\">\"skills\"<\/span>: [\n        {\n          <span class=\"hljs-attr\">\"id\"<\/span>: \"s-21223123\",\n          <span class=\"hljs-attr\">\"name\"<\/span>: \"Sales\"\n        }\n      ],\n      <span class=\"hljs-attr\">\"startTime\"<\/span>: \"2021-04-01T05:45:00.803Z\",\n      <span class=\"hljs-attr\">\"conversationId\"<\/span>: \"c-1233\",\n      <span class=\"hljs-attr\">\"source\"<\/span>: \"call\",\n      <span class=\"hljs-attr\">\"profImage\"<\/span>: \"no-avatar\",\n      <span class=\"hljs-attr\">\"engagementTime\"<\/span>: 1020,\n      <span class=\"hljs-attr\">\"waitTime\"<\/span>: 41445\n    }\n  ],\n  <span class=\"hljs-attr\">\"queue\"<\/span>: [\n    {\n      <span class=\"hljs-attr\">\"firstName\"<\/span>: \"Amanda\",\n      <span class=\"hljs-attr\">\"lastName\"<\/span>: \"Jones\",\n      <span class=\"hljs-attr\">\"skills\"<\/span>: [\n        {\n          <span class=\"hljs-attr\">\"id\"<\/span>: \"s-21223123\",\n          <span class=\"hljs-attr\">\"name\"<\/span>: \"Sales\"\n        }\n      ],\n      <span class=\"hljs-attr\">\"startTime\"<\/span>: \"2021-04-01T05:45:00.803Z\",\n      <span class=\"hljs-attr\">\"conversationId\"<\/span>: \"c-1233\",\n      <span class=\"hljs-attr\">\"source\"<\/span>: \"call\",\n      <span class=\"hljs-attr\">\"profImage\"<\/span>: \"no-avatar\",\n      <span class=\"hljs-attr\">\"waitTime\"<\/span>: 120\n    }\n  ]\n}<\/code><\/pre>\n<\/div><\/div><div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>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 * \u00a0Y Stream ID (e.g. \u00a0st-606c43de5e00ca5f4e27e38a) String Query Parameters Parameter Required Description Type\/Value agentGroupId&#8230;<\/p>\n","protected":false},"author":23,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/multisite.korebots.com\/agentassist\/wp-json\/wp\/v2\/posts\/5204"}],"collection":[{"href":"https:\/\/multisite.korebots.com\/agentassist\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/multisite.korebots.com\/agentassist\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/multisite.korebots.com\/agentassist\/wp-json\/wp\/v2\/users\/23"}],"replies":[{"embeddable":true,"href":"https:\/\/multisite.korebots.com\/agentassist\/wp-json\/wp\/v2\/comments?post=5204"}],"version-history":[{"count":0,"href":"https:\/\/multisite.korebots.com\/agentassist\/wp-json\/wp\/v2\/posts\/5204\/revisions"}],"wp:attachment":[{"href":"https:\/\/multisite.korebots.com\/agentassist\/wp-json\/wp\/v2\/media?parent=5204"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/multisite.korebots.com\/agentassist\/wp-json\/wp\/v2\/categories?post=5204"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/multisite.korebots.com\/agentassist\/wp-json\/wp\/v2\/tags?post=5204"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}