Automated Learning
The Automated Learning API contains methods for both it's related models: Documents, which contains the text to perform them, and Questions, which are assigned to Documents.
Documents
Pagination and Listing
Returns the pagination of a Bot's Documents. Pagination starts at page 1 instead of the standard 0.
A valid organization Uuid
A valid environment Uuid
A valid bot 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
Field want to ordernate, the default is 'updatedAt'
updatedAt
Direction of ordenation, ASC or DESC. The default is DESC
DESC
Names or tags to filter the search
GET /org/{orgUUID}/env/{envUUID}/bot/{botUUID}/documents/pagination HTTP/1.1
Host:
Accept: */*
{
"totalPages": 1,
"totalElements": 1,
"pageable": {
"paged": true,
"unpaged": true,
"pageNumber": 1,
"pageSize": 1,
"sort": {
"unsorted": true,
"sorted": true,
"empty": true
},
"offset": 1
},
"numberOfElements": 1,
"first": true,
"last": true,
"sort": {
"unsorted": true,
"sorted": true,
"empty": true
},
"size": 1,
"content": [
{
"uuid": "text",
"storageFileName": "text",
"filename": "text",
"questions": 1,
"questionsIds": [
"text"
],
"enabled": true,
"selected": true,
"date": 1,
"uploaded": {
"uuid": "text",
"name": "text",
"imageUrl": "text"
}
}
],
"number": 1,
"empty": true
}
A valid organization Uuid
A valid environment Uuid
A valid bot Uuid
Word or part of word to get suggestion names of documents
The limit of suggestions names in the response. The default value is 6
6
Example: 1
GET /org/{orgUUID}/env/{envUUID}/bot/{botUUID}/documents/quicksearch?searchTerm=text HTTP/1.1
Host:
Accept: */*
[
"text"
]
A valid organization Uuid
A valid environment Uuid
A valid bot Uuid
GET /org/{orgUUID}/env/{envUUID}/bot/{botUUID}/documents/list HTTP/1.1
Host:
Accept: */*
[
{
"uuid": "text",
"filename": "text",
"storageFileName": "text",
"questionSize": 1,
"questions": [
{
"name": "text",
"questionVariables": [
{
"id": "text",
"variable": "text"
}
],
"enabled": true,
"removed": true,
"updatedAt": "2025-07-01T01:35:52.081Z"
}
],
"enabled": true,
"removed": true,
"updatedAt": "2025-07-01T01:35:52.081Z",
"trainingStatus": "text"
}
]
CRUD Operations
A valid organization Uuid
A valid environment Uuid
A valid bot Uuid
A valid service Uuid
GET /org/{orgUUID}/env/{envUUID}/bot/{botUUID}/documents/{documentUUID} HTTP/1.1
Host:
Accept: */*
{
"filename": "text",
"content": "text",
"enabled": true,
"lastEdition": {
"name": "text",
"image": "text",
"date": 1
},
"questionCount": 1,
"questionsIds": [
"text"
]
}
A valid organization Uuid
A valid environment Uuid
A valid bot Uuid
The txt document to upload
POST /org/{orgUUID}/env/{envUUID}/bot/{botUUID}/documents HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 21
{
"document": "binary"
}
{
"uuid": "text",
"storageFilename": "text",
"filename": "text",
"enabled": true
}
Enable or disables a Document. All questions whose UUID are provided also have their enabling set by the sent value.
A valid organization Uuid
A valid environment Uuid
A valid bot Uuid
A valid service Uuid
PUT /org/{orgUUID}/env/{envUUID}/bot/{botUUID}/documents/{documentUUID} HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 39
{
"enabled": true,
"questionIds": [
"text"
]
}
No content
A valid organization Uuid
A valid environment Uuid
A valid bot Uuid
A valid document Uuid
DELETE /org/{orgUUID}/env/{envUUID}/bot/{botUUID}/documents/{documentUUID} HTTP/1.1
Host:
Accept: */*
No content
Bulk Operations
A valid organization Uuid
A valid environment Uuid
A valid bot Uuid
Document uuids to delete
A list of Uuid of question
DELETE /org/{orgUUID}/env/{envUUID}/bot/{botUUID}/documents/massive-delete HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 18
{
"uuids": [
"text"
]
}
{
"success": [
"text"
],
"errors": [
"text"
]
}
A valid organization Uuid
A valid environment Uuid
A valid bot Uuid
Document uuids to delete
A list of Uuid of question
POST /org/{orgUUID}/env/{envUUID}/bot/{botUUID}/documents/export HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 18
{
"uuids": [
"text"
]
}
[
"Ynl0ZXM="
]
Questions
Paginations and Listings
Returns the pagination of a Bot's Questions. Pagination starts at page 1 instead of the standard 0.
A valid organization Uuid
A valid environment Uuid
A valid bot 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
Field want to ordernate, the default is 'updatedAt'
updatedAt
Direction of ordenation, ASC or DESC. The default is DESC
DESC
Filename to filter the search
Names or tags to filter the search
GET /org/{orgUUID}/env/{envUUID}/bot/{botUUID}/questions/pagination HTTP/1.1
Host:
Accept: */*
{
"totalPages": 1,
"totalElements": 1,
"pageable": {
"paged": true,
"unpaged": true,
"pageNumber": 1,
"pageSize": 1,
"sort": {
"unsorted": true,
"sorted": true,
"empty": true
},
"offset": 1
},
"numberOfElements": 1,
"first": true,
"last": true,
"sort": {
"unsorted": true,
"sorted": true,
"empty": true
},
"size": 1,
"content": [
{
"id": "text",
"name": "text",
"description": "text",
"variables": 1,
"document": {
"uuid": "text",
"storageFilename": "text",
"filename": "text",
"enabled": true
},
"enabled": true,
"selected": true,
"lastModified": {
"name": "text",
"image": "text",
"date": 1
},
"tags": [
"text"
],
"updatedAt": "2025-07-01T01:35:52.081Z"
}
],
"number": 1,
"empty": true
}
A valid organization Uuid
A valid environment Uuid
A valid bot Uuid
Word or part of word to get suggestion names of documents
The limit of suggestions names in the response. The default value is 6
6
Example: 1
GET /org/{orgUUID}/env/{envUUID}/bot/{botUUID}/questions/quicksearch?searchTerm=text HTTP/1.1
Host:
Accept: */*
[
"text"
]
CRUD Operations
A valid organization Uuid
A valid environment Uuid
A valid bot Uuid
A valid question Uuid
GET /org/{orgUUID}/env/{envUUID}/bot/{botUUID}/questions/{questionUUID} HTTP/1.1
Host:
Accept: */*
{
"id": "text",
"botId": "text",
"document": {
"uuid": "text",
"storageFilename": "text",
"filename": "text",
"enabled": true
},
"name": "text",
"description": "text",
"variables": [
{
"id": "text",
"variable": "text"
}
],
"webhook": "text",
"headers": "text",
"transactional": true,
"enabled": true,
"removed": true,
"evaluable": true,
"tags": [
{
"name": "text"
}
],
"answerTemplates": [
{
"id": "text",
"content": {},
"type": "text",
"channelTypeId": 1,
"channelId": "text",
"technicalText": "text"
}
],
"createdAt": "2025-07-01T01:35:52.081Z",
"updatedAt": "2025-07-01T01:35:52.081Z",
"updatedBy": "text"
}
A valid organization Uuid
A valid environment Uuid
A valid bot Uuid
A Uuid of a document assigned to this question.
Question name
Question descrciption
List of examples of question
Question enabled/disabled status
Question evaluable status
Question transactional status
Webhook address endpoint
Webhook headers
POST /org/{orgUUID}/env/{envUUID}/bot/{botUUID}/questions HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 306
{
"documentId": "text",
"name": "text",
"description": "text",
"variables": [
"text"
],
"enabled": true,
"evaluable": true,
"transactional": true,
"webhook": "text",
"headers": {},
"answerTemplates": [
{
"id": "text",
"content": {},
"type": "text",
"channelTypeId": 1,
"channelId": "text",
"technicalText": "text"
}
],
"tags": [
{
"name": "text"
}
]
}
{
"questionId": "text"
}
A valid organization Uuid
A valid environment Uuid
A valid bot Uuid
A valid question Uuid
A Uuid of a document assigned to this question.
Question name
Question descrciption
List of examples of question
Question enabled/disabled status
Question evaluable status
Question transactional status
Webhook address endpoint
Webhook headers
PUT /org/{orgUUID}/env/{envUUID}/bot/{botUUID}/questions/{questionUUID} HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 306
{
"documentId": "text",
"name": "text",
"description": "text",
"variables": [
"text"
],
"enabled": true,
"evaluable": true,
"transactional": true,
"webhook": "text",
"headers": {},
"answerTemplates": [
{
"id": "text",
"content": {},
"type": "text",
"channelTypeId": 1,
"channelId": "text",
"technicalText": "text"
}
],
"tags": [
{
"name": "text"
}
]
}
{
"id": "text",
"botId": "text",
"document": {
"uuid": "text",
"storageFilename": "text",
"filename": "text",
"enabled": true
},
"name": "text",
"description": "text",
"variables": [
{
"id": "text",
"variable": "text"
}
],
"webhook": "text",
"headers": "text",
"transactional": true,
"enabled": true,
"removed": true,
"evaluable": true,
"tags": [
{
"name": "text"
}
],
"answerTemplates": [
{
"id": "text",
"content": {},
"type": "text",
"channelTypeId": 1,
"channelId": "text",
"technicalText": "text"
}
],
"createdAt": "2025-07-01T01:35:52.081Z",
"updatedAt": "2025-07-01T01:35:52.081Z",
"updatedBy": "text"
}
Deletes a Question. The question is symbolically removed via the 'removed' parameter rather than deleted from the database.
A valid organization Uuid
A valid environment Uuid
A valid bot Uuid
Document uuids to delete
A list of Uuid of question
DELETE /org/{orgUUID}/env/{envUUID}/bot/{botUUID}/questions HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 18
{
"uuids": [
"text"
]
}
{
"success": [
"text"
],
"errors": [
"text"
]
}
Auxiliary Methods
Validate sample availability. This endpoint returns if a variable/sample for the question is not previously registered and still available. Variables sent through the Create Question endpoint should be validated here beforehand. The Question Creation endpoint will not inform you the cause of the error it will throw otherwise.
A valid organization Uuid
A valid environment Uuid
A valid bot Uuid
Example of the question
POST /org/{orgUUID}/env/{envUUID}/bot/{botUUID}/questions/variable HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 19
{
"variable": "text"
}
[
{
"id": "text",
"variable": "text"
}
]
Bulk enables or disables Questions. All questions included whose UUID are included in the body have their enabling field reversed.
A valid organization Uuid
A valid environment Uuid
A valid bot Uuid
List the questions ids
PUT /org/{orgUUID}/env/{envUUID}/bot/{botUUID}/questions/change-enable HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 25
{
"questionsIds": [
"text"
]
}
No content
Automated Learning
Endpoint to enable or disable the Automated Learning in a bot. This change has no effect unless the bot's corresponding environment also has this feature enabled.
A valid organization Uuid
A valid environment Uuid
A valid bot Uuid
DTO if Automated Learning is to be enabled or disabled
Parameter's value
PUT /org/{orgUUID}/env/{envUUID}/bot/{botUUID}/automated-learning/change-bot-enable HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 14
{
"value": true
}
No content
Was this helpful?