{"id":5198,"date":"2022-07-06T16:01:55","date_gmt":"2022-07-06T10:31:55","guid":{"rendered":"https:\/\/docs.kore.ai\/smartassist\/?p=5198"},"modified":"2022-07-06T16:01:55","modified_gmt":"2022-07-06T10:31:55","slug":"get-agents-conversation-counts","status":"publish","type":"post","link":"https:\/\/multisite.korebots.com\/agentassist\/get-agents-conversation-counts\/","title":{"rendered":"Get agents conversation counts"},"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 agents&#8217; conversation counts.<\/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\/agents\/stats<\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3><span class=\"ez-toc-section\" id=\"Request_Parameters\"><\/span>Request Parameters<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>The following tables describe the request parameters.<\/p>\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>agentGroupIds[]<\/td>\n<td>\u00a0N<\/td>\n<td>Agent group ids<\/td>\n<td>array[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<tr>\n<td>sortBy<\/td>\n<td>\u00a0N<\/td>\n<td>Sort by query in the form of field:desc\/asc (for e.g., name:asc)<\/td>\n<td>String<\/td>\n<\/tr>\n<tr>\n<td>fromTime\u00a0*<\/td>\n<td>\u00a0Y<\/td>\n<td>\n<div class=\"renderedMarkdown\">\n<p>Date in ISO81 format (for e.g. 2021-03-31T12:01:00.000Z)<\/p>\n<\/div>\n<\/td>\n<td>Date<\/td>\n<\/tr>\n<tr>\n<td>toTime\u00a0*<\/td>\n<td>\u00a0Y<\/td>\n<td>\n<div class=\"renderedMarkdown\">\n<p>Date in ISO81 format (for e.g. 2021-03-31T12:01:00.000Z)<\/p>\n<\/div>\n<\/td>\n<td>Date<\/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\"><h2><span class=\"ez-toc-section\" id=\"Response\"><\/span><span style=\"color: #26344a;font-size: 16px;letter-spacing: 0em\">Response<\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The following table describes 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>Field<\/b><\/th>\n<th><b>Required<\/b><\/th>\n<th><b>Description<\/b><\/th>\n<\/tr>\n<tr>\n<td>total<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>transferred<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>active<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>queue<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>completed<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>dropOff<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>successRate<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>resolved<\/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\">\"total\"<\/span>: 10,\n  <span class=\"hljs-attr\">\"transferred\"<\/span>: 3,\n  <span class=\"hljs-attr\">\"active\"<\/span>: 5,\n  <span class=\"hljs-attr\">\"queue\"<\/span>: 5,\n  <span class=\"hljs-attr\">\"completed\"<\/span>: 5,\n  <span class=\"hljs-attr\">\"dropOff\"<\/span>: 2,\n  <span class=\"hljs-attr\">\"successRate\"<\/span>: 50,\n  <span class=\"hljs-attr\">\"resolved\"<\/span>: 5\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 agents&#8217; conversation counts. Request This section describes the information that is available in the request. Method URL End Point GET TBD \/public\/{streamId}\/analytics\/manager\/agents\/stats Request Parameters The following tables describe the request parameters. Path Parameters Parameter Required Description Type\/Value streamId * \u00a0Y Stream ID (e.g. \u00a0st-606c43de5e00ca5f4e27e38a) String Query Parameters&#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\/5198"}],"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=5198"}],"version-history":[{"count":0,"href":"https:\/\/multisite.korebots.com\/agentassist\/wp-json\/wp\/v2\/posts\/5198\/revisions"}],"wp:attachment":[{"href":"https:\/\/multisite.korebots.com\/agentassist\/wp-json\/wp\/v2\/media?parent=5198"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/multisite.korebots.com\/agentassist\/wp-json\/wp\/v2\/categories?post=5198"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/multisite.korebots.com\/agentassist\/wp-json\/wp\/v2\/tags?post=5198"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}