Knowledge AI
The Knowledge AI (former 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.
Collections
Pagination and Listing
Organization UUID
Environment UUID
Bot UUID
Page number
1Example: 1Lines per page
5Example: 5Order by field
updatedAtSorting direction
DESCOptional search term
It is an identifier provided by the API client that will be used to identify distributed logs.
Ok
Data Transfer Object for collection pagination
Unique identifier for the collection
Name of the collection
A boolean indicating if this collection is default or not
Count of documents in the collection
Count of questions in the collection
Timestamp of the last update (in milliseconds)
Training status of the collection
Bad Request
Unauthorized
Forbidden
Not Found
Request Timeout
Conflict
Unprocessable Entity
Internal Server Error
Organization UUID
Environment UUID
Bot UUID
It is an identifier provided by the API client that will be used to identify distributed logs.
Ok
DTO for a list of collections.
Bad Request
Unauthorized
Forbidden
Not Found
Request Timeout
Conflict
Unprocessable Entity
Internal Server Error
Organization UUID
Environment UUID
Bot UUID
Search term
Limit for results
6Example: 6It is an identifier provided by the API client that will be used to identify distributed logs.
Ok
Bad Request
Unauthorized
Forbidden
Not Found
Request Timeout
Conflict
Unprocessable Entity
Internal Server Error
CRUD Operations
Organization UUID
Environment UUID
Bot UUID
It is an identifier provided by the API client that will be used to identify distributed logs.
Data Transfer Object for Collection Requests
Name of the collection
Description of the collection
Previous user input rating
Threshold value
Top K value for results
Created
Bad Request
Unauthorized
Forbidden
Not Found
Request Timeout
Conflict
Unprocessable Entity
Internal Server Error
Organization UUID
Environment UUID
Bot UUID
Collection UUID
It is an identifier provided by the API client that will be used to identify distributed logs.
Ok
DTO for Collection response
Name of the collection
Description of the collection
Previous user input rating
Threshold value
Top K value for results
Universal Unique Identifier for the collection
A boolean indicating if this collection is default or not
Count of documents in the collection
Bad Request
Unauthorized
Forbidden
Not Found
Request Timeout
Conflict
Unprocessable Entity
Internal Server Error
Organization UUID
Environment UUID
Bot UUID
Collection UUID
It is an identifier provided by the API client that will be used to identify distributed logs.
Data Transfer Object for Collection Requests
Name of the collection
Description of the collection
Previous user input rating
Threshold value
Top K value for results
Ok
DTO for Collection response
Name of the collection
Description of the collection
Previous user input rating
Threshold value
Top K value for results
Universal Unique Identifier for the collection
A boolean indicating if this collection is default or not
Count of documents in the collection
Bad Request
Unauthorized
Forbidden
Not Found
Request Timeout
Conflict
Unprocessable Entity
Internal Server Error
Organization UUID
Environment UUID
Bot UUID
Collection UUID
It is an identifier provided by the API client that will be used to identify distributed logs.
Ok
Represents a simple collection DTO with uuid and name.
Universally Unique Identifier for the collection.
Name of the collection.
Collection current status
Bad Request
Unauthorized
Forbidden
Not Found
Request Timeout
Conflict
Unprocessable Entity
Internal Server Error
Auxiliary Methods
Organization UUID
Environment UUID
Bot UUID
It is an identifier provided by the API client that will be used to identify distributed logs.
Represents a simple collection DTO with uuid and name.
Universally Unique Identifier for the collection.
Name of the collection.
Collection current status
No Content
Bad Request
Unauthorized
Forbidden
Not Found
Request Timeout
Conflict
Unprocessable Entity
Internal Server Error
No content
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
Optional collection UUID
The number of page and the default is 1
1Example: 1The number of services per pages and the default is 5
5Example: 1Field want to ordernate, the default is 'updatedAt'
updatedAtDirection of ordenation, ASC or DESC. The default is DESC
DESCNames or tags to filter the search
Ok
Bad Request
Unauthorized
Forbidden
Not Found
Request Timeout
Conflict
Unprocessable Entity
Internal Server Error
A valid organization Uuid
A valid environment Uuid
A valid bot Uuid
Optional collection 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
6Example: 1Ok
Bad Request
Unauthorized
Forbidden
Not Found
Request Timeout
Conflict
Unprocessable Entity
Internal Server Error
A valid organization Uuid
A valid environment Uuid
A valid bot Uuid
Optional collection UUID
Ok
DTO response with documents data
Document uuid
Document name
Document storage filename
Optional. Symbolic collectionUUID for document organizing
Length of windows used in processing
Overlap value for document processing
Number of questions
Document enabled
Document removed
Date of last document update
Document training status
Format of the document. The possibles is inside enum DocumentFormat
Bad Request
Unauthorized
Forbidden
Not Found
Request Timeout
Conflict
Unprocessable Entity
Internal Server Error
CRUD Operations
A valid organization Uuid
A valid environment Uuid
A valid bot Uuid
The length of windows for document processing, default value is 2000
The overlap length for document processing, default value is 0
The tag name to save with document
The document to upload
The document name to save
Optional. Symbolic collectionUUID for document organizing.
Created
Bad Request
Unauthorized
Forbidden
Not Found
Request Timeout
Conflict
Unprocessable Entity
Internal Server Error
A valid organization Uuid
A valid environment Uuid
A valid bot Uuid
A valid service Uuid
Ok
DTO document content response
Document name
Document enabled
Optional. Symbolic collectionUUID for document organizing.
Length of windows used in processing
Overlap value for document processing
Number of questions
Question uuids inside the document
Format of the document. The possibles is inside enum DocumentFormat
Bad Request
Unauthorized
Forbidden
Not Found
Request Timeout
Conflict
Unprocessable Entity
Internal Server Error
It is the organization uuid where the bot is.
It is the environment uuid where the bot is.
It is the identification of the bot.
It is the identification of the document
The length of windows for document processing, default value is 2000
The overlap length for document processing, default value is 0
The tag name to save with document
It is the new file to update
It is the new document name to update
Optional. Symbolic collectionUUID for document organizing. Sending this as null will overwrite existing repository Id.
Ok
DTO response with document created with tags
Document uuid
Collection uuid for the document
Filename in minio
Filename in database
True if document is enabled and false if not
Length of windows used in processing
Overlap value for document processing
Tags saved to the document
Bad Request
Unauthorized
Forbidden
Not Found
Request Timeout
Conflict
Unprocessable Entity
Internal Server Error
A valid organization Uuid
A valid environment Uuid
A valid bot Uuid
A valid service Uuid
OK
No content
No content
Bad Request
Unauthorized
Forbidden
Not Found
Conflict
Unprocessable Entity
Internal Server Error
No content
A valid organization Uuid
A valid environment Uuid
A valid bot Uuid
A valid document Uuid
No Content
Bad Request
Unauthorized
Forbidden
Not Found
Conflict
Unprocessable Entity
Internal Server Error
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
Ok
Bad Request
Unauthorized
Forbidden
Not Found
Conflict
Unprocessable Entity
Internal Server Error
A valid organization Uuid
A valid environment Uuid
A valid bot Uuid
Document uuids to delete
A list of Uuid of question
Ok
DTO response with massive document deletion data
Name of files deleted successfully
name of files with error in deletion
Bad Request
Unauthorized
Forbidden
Not Found
Request Timeout
Conflict
Unprocessable Entity
Internal Server Error
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
Optional collection UUID
The number of page and the default is 1
1Example: 1The number of services per pages and the default is 5
5Example: 1Field want to ordernate, the default is 'updatedAt'
updatedAtDirection of ordenation, ASC or DESC. The default is DESC
DESCFilename to filter the search
Names or tags to filter the search
Ok
Bad Request
Unauthorized
Forbidden
Not Found
Request Timeout
Conflict
Unprocessable Entity
Internal Server Error
A valid organization Uuid
A valid environment Uuid
A valid bot Uuid
Optional collection 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
6Example: 1Ok
Bad Request
Unauthorized
Forbidden
Not Found
Request Timeout
Conflict
Unprocessable Entity
Internal Server Error
CRUD Operations
A valid organization Uuid
A valid environment Uuid
A valid bot Uuid
A Uuid of a document assigned to this question.
Question name
Question description
List of examples of question
Question enabled/disabled status
Question evaluable status
Question transactional status
Webhook address endpoint
Webhook headers
Created
Bad Request
Unauthorized
Forbidden
Not Found
Conflict
Unprocessable Entity
Internal Server Error
A valid organization Uuid
A valid environment Uuid
A valid bot Uuid
A valid question Uuid
OK
Question id
A uuid of bot assigned to this question
Question name
Question description
Answer endpoint webhook
Webhook headers
Question transactional status
Question enabled status
Question removed status
True if the question content can be predict again because document update
Question evaluable status
When question was created
When question was updated
User uuid that changed
Created
Bad Request
Unauthorized
Forbidden
Not Found
Request Timeout
Conflict
Unprocessable Entity
Internal Server Error
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 description
List of examples of question
Question enabled/disabled status
Question evaluable status
Question transactional status
Webhook address endpoint
Webhook headers
Ok
Question id
A uuid of bot assigned to this question
Question name
Question description
Answer endpoint webhook
Webhook headers
Question transactional status
Question enabled status
Question removed status
True if the question content can be predict again because document update
Question evaluable status
When question was created
When question was updated
User uuid that changed
Bad Request
Unauthorized
Forbidden
Not Found
Request Timeout
Conflict
Unprocessable Entity
Internal Server Error
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
No Content
DTO response with massive document deletion data
Name of files deleted successfully
name of files with error in deletion
Bad Request
Unauthorized
Forbidden
Not Found
Request Timeout
Conflict
Unprocessable Entity
Internal Server Error
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
Ok
Question variables
Variable id
The variable value
Bad Request
Unauthorized
Forbidden
Not Found
Request Timeout
Conflict
Unprocessable Entity
Internal Server Error
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
No Content
Bad Request
Unauthorized
Forbidden
Not Found
Request Timeout
Conflict
Unprocessable Entity
Internal Server Error
No content
Knowledge AI
UUID of the organization
UUID of the environment
It is an identifier provided by the API client that will be used to identify distributed logs.
Ok
DTO for representing the collection limit.
Quantity indicating the limit of the collection per bot.
Bad Request
Unauthorized
Forbidden
Not Found
Request Timeout
Conflict
Unprocessable Entity
Internal Server Error
It is the id that represents an organization.
It is the id that represents an environment.
It is an identifier provided by the API client that will be used to identify distributed logs.
Ok
DTO with limits to upload documents. Size of files and limit of documents per bot
Maximum of documents per bot
Bad Request
Unauthorized
Forbidden
Not Found
Conflict
Unprocessable Entity
Internal Server Error
Last updated
Was this helpful?