| Field | Value |
|---|---|
| Method | POST and GET |
| Endpoint (POST) | https://{{host}}/api/public/bot/{{botID}}/taskContainmentReport?skip={{skipValue}}&limit={{limitValue}} |
| Endpoint (GET) | https://{{host}}/api/public/bot/{{botID}}/taskContainmentReport/status/{{_id}} |
| Content Type | application/json |
| Authorization | auth: {{JWT}} See How to generate the JWT Token. |
| API Scope | App Builder: Metrics; Admin Console: Not Applicable |
Path Parameters
| Parameter | Required | Description |
|---|---|---|
host | Required | Environment URL. For example, https://platform.kore.ai |
BotID | Required | Bot ID or Stream ID can be accessed from the General Settings page in the application. |
_id | Required (GET only) | The API Response ID returned by the POST method in the response object. Use it in the GET method to get data as per the set filters. |
skip | Optional (POST only) | The number of messages to be skipped. |
limit | Optional (POST only) | The number of messages to be shown on each page. |
Sample Request for the POST Method
Request Body Parameters
| Parameter | Required | Description |
|---|---|---|
dateFrom | Optional | The start time selected for the report generation. If not provided, the system considers 7 days prior to the dateTo value. Formats accepted: yyyy-mm-dd or yyyy-mm-ddThh:mm:ss.msZ. |
dateTo | Optional | The end time selected for the report generation. If not provided, the system considers 7 days after the dateFrom value. Maximum allowed time range is 90 days. |
includeTaskName | Optional | An array of strings representing task names for which the execution report is generated. |
ConversationType | Optional | Conversation type filter: Interactive or Non-Interactive. |
ConversationStatus | Optional | Current conversation status: Active or Closed. |
AggregationType | Optional | Report aggregation type: Daily (max 30 days) or Cumulative. |
tags | Optional | Emitted custom tags represented as an array of objects to filter the task execution data. |
Sample Response for the POST Method
Response Body Parameters (POST)
| Parameter | Description |
|---|---|
status | Status of the task execution. |
percentageComplete | The percentage of task execution completed. |
streamId | Can be accessed from the General Settings page of the application. |
jobType | Task Execution Containment Report. |
action | Query action for task execution. |
countOfDockStatuses | The number of dock statuses generated for the task execution-based report. |
createdBy | The user ID of the end user who created the task execution-based report. |
expireAt | Task execution expiry timestamp. |
statusLogs | An array of status logs for the task execution. |
_id | The API Response ID. |
lMod | The last modified time for the task execution-based report. |
createdOn | The task execution-based report creation date. |
requestedTime | The time of request for the task execution-based report. |
Sample Request for the GET Method
Sample Response for the GET Method
Response Body Parameters (GET)
| Parameter | Description |
|---|---|
totalExecution | The overall count of the successful or failed tasks executed for a conversation session. |
totalSession | Total number of conversation sessions during which the specified task is executed. |
selfServiceSessions | Total number of conversation sessions marked as Self-service during which the specified task is executed. |
dropOffSessions | Total number of conversation sessions marked as Drop-off during which the specified task is executed. |
agentTransferSessions | The total number of conversation sessions marked as Agent Transfer during which the specified task is executed. |
dateRange | The date range based on the selected dateFrom and dateTo values. |
taskType | The type of task executed: Dialog, Alert task, or FAQ. |
taskName | Name of the task executed, including Dialog Tasks, Alert Tasks, and FAQs. |
Status | Tasks that are successfully executed are marked as success. Unsuccessful tasks are marked as failtask. |
selfServiceSessionsInPercentage | The percentage of sessions classified as Self-Service out of the total sessions for a task status. |
dropOffSessionsInPercentage | The percentage of sessions classified as drop-off out of the total sessions for a task status. |
agentTransferSessionsInPercentage | The percentage of sessions classified as Agent Hand-off or transfer out of the total sessions for a task status. |