Automated Tests
The Automated Tests API contains all methods related to all models used in Automated Tests.
This API covers all Models used in Automated Tests: There's the Automated Test itself, which contains it's provided Utterances, and then their executions and results as both an Automated Tests Executions collection and a Utterance Executions collection.
Automated Tests
Once created, an automated test is then listed as an execution which still didn't run. Hence, there is no pagination for Automated Tests.
A valid organization Uuid
A valid environment Uuid
A valid bot Uuid
A valid channel Uuid
A valid name to the test
File with data to test
POST /org/{orgUUID}/env/{envUUID}/bot/{botUUID}/automated-tests?channel=text&name=text HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 17
{
"file": "binary"
}
{
"message": "text",
"dataTest": {
"testId": "text",
"utterances": [
{
"uuid": "text",
"description": "text",
"utterance": "text",
"expectedCategory": "text",
"expectedValue": "text",
"expectedAnswer": "text",
"createdAt": "2025-07-01T01:35:49.662Z",
"updatedAt": "2025-07-01T01:35:49.662Z"
}
],
"rows": 1
}
}
A valid organization Uuid
A valid environment Uuid
A valid bot Uuid
A valid automated test execution Uuid
A valid channel Uuid
A valid name to the test
File with data to test
POST /org/{orgUUID}/env/{envUUID}/bot/{botUUID}/automated-tests/{testUUID}?channel=text&name=text HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 17
{
"file": "binary"
}
{
"message": "text",
"dataTest": {
"testId": "text",
"utterances": [
{
"uuid": "text",
"description": "text",
"utterance": "text",
"expectedCategory": "text",
"expectedValue": "text",
"expectedAnswer": "text",
"createdAt": "2025-07-01T01:35:49.662Z",
"updatedAt": "2025-07-01T01:35:49.662Z"
}
],
"rows": 1
}
}
A valid organization Uuid
A valid environment Uuid
A valid bot Uuid
A valid user Uuid
A valid channel Uuid
DELETE /internal/org/{orgUUID}/env/{envUUID}/bot/{botUUID}/automated-tests/remove-all-from-channel?userUUID=text&channelUuid=text HTTP/1.1
Host:
Accept: */*
{
"message": "text",
"dataTest": {
"testId": "text",
"utterances": [
{
"uuid": "text",
"description": "text",
"utterance": "text",
"expectedCategory": "text",
"expectedValue": "text",
"expectedAnswer": "text",
"createdAt": "2025-07-01T01:35:49.662Z",
"updatedAt": "2025-07-01T01:35:49.662Z"
}
],
"rows": 1
}
}
Automated Test Executions
A valid organization Uuid
A valid environment Uuid
A valid bot Uuid
Field want to sort by. Default is 'updatedAt'; other available terms are 'name' and 'score'.
updatedAt
Direction of ordenation, ASC or DESC. The default is DESC
DESC
The number of page and the default is 1
1
Example: 1
The number of services per pages and the default is 5
5
Example: 1
GET /org/{orgUUID}/env/{envUUID}/bot/{botUUID}/automated-execution HTTP/1.1
Host:
Accept: */*
{
"totalPages": 1,
"totalElements": 1,
"pageable": {
"pageNumber": 1,
"pageSize": 1,
"paged": true,
"unpaged": true,
"sort": {
"sorted": true,
"unsorted": true,
"empty": true
},
"offset": 1
},
"numberOfElements": 1,
"first": true,
"last": true,
"sort": {
"sorted": true,
"unsorted": true,
"empty": true
},
"size": 1,
"content": [
{
"id": "text",
"name": "text",
"lastUpdated": 1,
"channelDTO": {
"channelId": "text",
"channelName": "text",
"channelImage": "text",
"typeChannel": 1
},
"result": 1,
"status": "PENDING"
}
],
"number": 1,
"empty": true
}
A valid organization Uuid
A valid environment Uuid
A valid bot Uuid
A valid automated test execution Uuid
The number of page and the default is 1
1
Example: 1
The number of services per pages and the default is 5
5
Example: 1
GET /org/{orgUUID}/env/{envUUID}/bot/{botUUID}/automated-utterances/{testUUID} HTTP/1.1
Host:
Accept: */*
{
"totalPages": 1,
"totalElements": 1,
"pageable": {
"pageNumber": 1,
"pageSize": 1,
"paged": true,
"unpaged": true,
"sort": {
"sorted": true,
"unsorted": true,
"empty": true
},
"offset": 1
},
"numberOfElements": 1,
"first": true,
"last": true,
"sort": {
"sorted": true,
"unsorted": true,
"empty": true
},
"size": 1,
"content": [
{
"uuid": "text",
"description": "text",
"utterance": "text",
"expectedCategory": "text",
"expectedValue": "text",
"expectedAnswer": "text",
"createdAt": "2025-07-01T01:35:49.662Z",
"updatedAt": "2025-07-01T01:35:49.662Z"
}
],
"number": 1,
"empty": true
}
A valid organization Uuid
A valid environment Uuid
A valid bot Uuid
A valid automated test execution Uuid
POST /org/{orgUUID}/env/{envUUID}/bot/{botUUID}/automated-execution/{testUUID} HTTP/1.1
Host:
Accept: */*
{
"testId": "text",
"status": "PENDING"
}
A valid organization Uuid
A valid environment Uuid
A valid bot Uuid
A valid automated test execution Uuid
GET /org/{orgUUID}/env/{envUUID}/bot/{botUUID}/automated-execution/{testUUID}/assertiveness HTTP/1.1
Host:
Accept: */*
{
"testId": "text",
"testName": "text",
"countOfTests": 1,
"lastUpdated": 1,
"status": "PENDING",
"totalSentences": 1,
"assertivenessChart": {
"total": 1,
"intents": {
"low": 1,
"half": 1,
"high": 1
},
"questions": {
"low": 1,
"half": 1,
"high": 1
},
"dispersionIntentChart": {
"low": [
{
"confidence": 1,
"value": "text"
}
],
"average": [
{
"confidence": 1,
"value": "text"
}
],
"high": [
{
"confidence": 1,
"value": "text"
}
]
},
"dispersionQuestionsChart": {
"low": [
{
"confidence": 1,
"value": "text"
}
],
"average": [
{
"confidence": 1,
"value": "text"
}
],
"high": [
{
"confidence": 1,
"value": "text"
}
]
}
}
}
Utterance Executions
Acquires a pagination of all Utterance Execution results belonguing to a given Automated Test Execution.
A valid organization Uuid
A valid environment Uuid
A valid bot Uuid
A valid bot Uuid
LOW, AVERAGE, HIGH or ALL
The number of page and the default is 1
1
Example: 1
The number of services per pages and the default is 5
5
Example: 1
GET /org/{orgUUID}/env/{envUUID}/bot/{botUUID}/automated-utterance-execution/{testUUID}?filter=text HTTP/1.1
Host:
Accept: */*
{
"totalPages": 1,
"totalElements": 1,
"pageable": {
"pageNumber": 1,
"pageSize": 1,
"paged": true,
"unpaged": true,
"sort": {
"sorted": true,
"unsorted": true,
"empty": true
},
"offset": 1
},
"numberOfElements": 1,
"first": true,
"last": true,
"sort": {
"sorted": true,
"unsorted": true,
"empty": true
},
"size": 1,
"content": [
{
"utterance": "text",
"successRate": 1,
"categoryUtterance": {
"expected": "text",
"given": "text"
},
"answerUtterance": {
"expected": "text",
"given": "text"
},
"valueUtterance": {
"expected": "text",
"given": "text"
}
}
],
"number": 1,
"empty": true
}
Exports all the data of an automated test. In the Cockpit, this is consumed and delivered as a .xls file.
A valid organization Uuid
A valid environment Uuid
A valid bot Uuid
A valid bot Uuid
LOW, AVERAGE, HIGH or ALL
GET /org/{orgUUID}/env/{envUUID}/bot/{botUUID}/automated-utterance-execution/{testUUID}/export?filter=text HTTP/1.1
Host:
Accept: */*
{
"totalPages": 1,
"totalElements": 1,
"pageable": {
"pageNumber": 1,
"pageSize": 1,
"paged": true,
"unpaged": true,
"sort": {
"sorted": true,
"unsorted": true,
"empty": true
},
"offset": 1
},
"numberOfElements": 1,
"first": true,
"last": true,
"sort": {
"sorted": true,
"unsorted": true,
"empty": true
},
"size": 1,
"content": [
{
"utterance": "text",
"successRate": 1,
"categoryUtterance": {
"expected": "text",
"given": "text"
},
"answerUtterance": {
"expected": "text",
"given": "text"
},
"valueUtterance": {
"expected": "text",
"given": "text"
}
}
],
"number": 1,
"empty": true
}
Was this helpful?