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.

circle-info

API SUBPATH: eva-al

Collections

Pagination and Listing

Get paginated collections

get
Path parameters
orgUUIDstringRequired

Organization UUID

envUUIDstringRequired

Environment UUID

botUUIDstringRequired

Bot UUID

Query parameters
pageinteger · int32Optional

Page number

Default: 1Example: 1
linesPerPageinteger · int32Optional

Lines per page

Default: 5Example: 5
orderBystringOptional

Order by field

Default: updatedAt
directionstringOptional

Sorting direction

Default: DESC
searchTermstringOptional

Optional search term

Header parameters
x-request-idstringOptional

It is an identifier provided by the API client that will be used to identify distributed logs.

Responses
chevron-right
200

Ok

application/json

Data Transfer Object for collection pagination

uuidstringOptional

Unique identifier for the collection

namestringOptional

Name of the collection

isDefaultbooleanOptional

A boolean indicating if this collection is default or not

documentCountinteger · int32Optional

Count of documents in the collection

questionCountinteger · int32Optional

Count of questions in the collection

updateAtinteger · int64Optional

Timestamp of the last update (in milliseconds)

trainingStatusstringOptional

Training status of the collection

get
/org/{orgUUID}/env/{envUUID}/bot/{botUUID}/collections/pagination

List all collections

get
Path parameters
orgUUIDstringRequired

Organization UUID

envUUIDstringRequired

Environment UUID

botUUIDstringRequired

Bot UUID

Header parameters
x-request-idstringOptional

It is an identifier provided by the API client that will be used to identify distributed logs.

Responses
chevron-right
200

Ok

application/json

DTO for a list of collections.

get
/org/{orgUUID}/env/{envUUID}/bot/{botUUID}/collections/list

Quick search for collection names

get
Path parameters
orgUUIDstringRequired

Organization UUID

envUUIDstringRequired

Environment UUID

botUUIDstringRequired

Bot UUID

Query parameters
searchTermstringRequired

Search term

limitinteger · int64Optional

Limit for results

Default: 6Example: 6
Header parameters
x-request-idstringOptional

It is an identifier provided by the API client that will be used to identify distributed logs.

Responses
chevron-right
200

Ok

application/json
string[]Optional
get
/org/{orgUUID}/env/{envUUID}/bot/{botUUID}/collections/quicksearch

CRUD Operations

Create a new collection

post
Path parameters
orgUUIDstringRequired

Organization UUID

envUUIDstringRequired

Environment UUID

botUUIDstringRequired

Bot UUID

Header parameters
x-request-idstringOptional

It is an identifier provided by the API client that will be used to identify distributed logs.

Body

Data Transfer Object for Collection Requests

namestring · max: 100Required

Name of the collection

descriptionstring · max: 250Optional

Description of the collection

previousUserInputinteger · int32 · max: 5Required

Previous user input rating

thresholdinteger · int32 · min: 1 · max: 100Required

Threshold value

topKinteger · int32 · min: 1 · max: 10Required

Top K value for results

Responses
post
/org/{orgUUID}/env/{envUUID}/bot/{botUUID}/collections

Find a specific collection

get
Path parameters
orgUUIDstringRequired

Organization UUID

envUUIDstringRequired

Environment UUID

botUUIDstringRequired

Bot UUID

collectionUUIDstringRequired

Collection UUID

Header parameters
x-request-idstringOptional

It is an identifier provided by the API client that will be used to identify distributed logs.

Responses
chevron-right
200

Ok

application/json

DTO for Collection response

namestring · max: 100Required

Name of the collection

descriptionstring · max: 250Optional

Description of the collection

previousUserInputinteger · int32 · max: 5Required

Previous user input rating

thresholdinteger · int32 · min: 1 · max: 100Required

Threshold value

topKinteger · int32 · min: 1 · max: 10Required

Top K value for results

uuidstringOptional

Universal Unique Identifier for the collection

isDefaultbooleanOptional

A boolean indicating if this collection is default or not

documentCountinteger · int32Optional

Count of documents in the collection

get
/org/{orgUUID}/env/{envUUID}/bot/{botUUID}/collections/{collectionUUID}

Update a specific collection

put
Path parameters
orgUUIDstringRequired

Organization UUID

envUUIDstringRequired

Environment UUID

botUUIDstringRequired

Bot UUID

collectionUUIDstringRequired

Collection UUID

Header parameters
x-request-idstringOptional

It is an identifier provided by the API client that will be used to identify distributed logs.

Body

Data Transfer Object for Collection Requests

namestring · max: 100Required

Name of the collection

descriptionstring · max: 250Optional

Description of the collection

previousUserInputinteger · int32 · max: 5Required

Previous user input rating

thresholdinteger · int32 · min: 1 · max: 100Required

Threshold value

topKinteger · int32 · min: 1 · max: 10Required

Top K value for results

Responses
chevron-right
200

Ok

application/json

DTO for Collection response

namestring · max: 100Required

Name of the collection

descriptionstring · max: 250Optional

Description of the collection

previousUserInputinteger · int32 · max: 5Required

Previous user input rating

thresholdinteger · int32 · min: 1 · max: 100Required

Threshold value

topKinteger · int32 · min: 1 · max: 10Required

Top K value for results

uuidstringOptional

Universal Unique Identifier for the collection

isDefaultbooleanOptional

A boolean indicating if this collection is default or not

documentCountinteger · int32Optional

Count of documents in the collection

put
/org/{orgUUID}/env/{envUUID}/bot/{botUUID}/collections/{collectionUUID}

Delete a specific collection

delete
Path parameters
orgUUIDstringRequired

Organization UUID

envUUIDstringRequired

Environment UUID

botUUIDstringRequired

Bot UUID

collectionUUIDstringRequired

Collection UUID

Header parameters
x-request-idstringOptional

It is an identifier provided by the API client that will be used to identify distributed logs.

Responses
chevron-right
200

Ok

application/json

Represents a simple collection DTO with uuid and name.

uuidstringOptional

Universally Unique Identifier for the collection.

namestringRequired

Name of the collection.

trainingStatusstringOptional

Collection current status

delete
/org/{orgUUID}/env/{envUUID}/bot/{botUUID}/collections/{collectionUUID}

Auxiliary Methods

Validate collection name

post
Path parameters
orgUUIDstringRequired

Organization UUID

envUUIDstringRequired

Environment UUID

botUUIDstringRequired

Bot UUID

Header parameters
x-request-idstringOptional

It is an identifier provided by the API client that will be used to identify distributed logs.

Body

Represents a simple collection DTO with uuid and name.

uuidstringOptional

Universally Unique Identifier for the collection.

namestringRequired

Name of the collection.

trainingStatusstringOptional

Collection current status

Responses
post
/org/{orgUUID}/env/{envUUID}/bot/{botUUID}/collections/validation-name

No content

Documents

Pagination and Listing

Returns the pagination of a Bot's Documents. Pagination starts at page 1 instead of the standard 0.

get
Path parameters
orgUUIDstringRequired

A valid organization Uuid

envUUIDstringRequired

A valid environment Uuid

botUUIDstringRequired

A valid bot Uuid

Query parameters
collectionUUIDstringOptional

Optional collection UUID

pageinteger · int32Optional

The number of page and the default is 1

Default: 1Example: 1
linesPerPageinteger · int32Optional

The number of services per pages and the default is 5

Default: 5Example: 1
orderBystringOptional

Field want to ordernate, the default is 'updatedAt'

Default: updatedAt
directionstringOptional

Direction of ordenation, ASC or DESC. The default is DESC

Default: DESC
searchTermsstring[]Optional

Names or tags to filter the search

Responses
chevron-right
200

Ok

*/*
totalPagesinteger · int32Optional
totalElementsinteger · int64Optional
numberOfElementsinteger · int32Optional
firstbooleanOptional
lastbooleanOptional
sizeinteger · int32Optional
numberinteger · int32Optional
emptybooleanOptional
get
/org/{orgUUID}/env/{envUUID}/bot/{botUUID}/documents/pagination

Returns a list of possible words to autocomplete in a search for Document names

get
Path parameters
orgUUIDstringRequired

A valid organization Uuid

envUUIDstringRequired

A valid environment Uuid

botUUIDstringRequired

A valid bot Uuid

Query parameters
collectionUUIDstringOptional

Optional collection UUID

searchTermstringRequired

Word or part of word to get suggestion names of documents

limitinteger · int64Optional

The limit of suggestions names in the response. The default value is 6

Default: 6Example: 1
Responses
chevron-right
200

Ok

*/*
string[]Optional
get
/org/{orgUUID}/env/{envUUID}/bot/{botUUID}/documents/quicksearch

Returns a complete list containing all of the Bot's Documents

get
Path parameters
orgUUIDstringRequired

A valid organization Uuid

envUUIDstringRequired

A valid environment Uuid

botUUIDstringRequired

A valid bot Uuid

Query parameters
collectionUUIDstringOptional

Optional collection UUID

Responses
chevron-right
200

Ok

*/*

DTO response with documents data

uuidstringOptional

Document uuid

filenamestringOptional

Document name

storageFileNamestringOptional

Document storage filename

collectionUUIDstringOptional

Optional. Symbolic collectionUUID for document organizing

windowsLengthinteger · int32Optional

Length of windows used in processing

overlapinteger · int32Optional

Overlap value for document processing

questionSizeinteger · int32Optional

Number of questions

enabledbooleanOptional

Document enabled

removedbooleanOptional

Document removed

updatedAtstring · date-timeOptional

Date of last document update

trainingStatusstringOptional

Document training status

formatstringOptional

Format of the document. The possibles is inside enum DocumentFormat

get
/org/{orgUUID}/env/{envUUID}/bot/{botUUID}/documents/list

CRUD Operations

Upload new document

post
Path parameters
orgUUIDstringRequired

A valid organization Uuid

envUUIDstringRequired

A valid environment Uuid

botUUIDstringRequired

A valid bot Uuid

Query parameters
windowsLengthinteger · int32Optional

The length of windows for document processing, default value is 2000

overlapinteger · int32Optional

The overlap length for document processing, default value is 0

tagstring[]Optional

The tag name to save with document

Body
documentstring · binaryRequired

The document to upload

namestringOptional

The document name to save

collectionUUIDstringOptional

Optional. Symbolic collectionUUID for document organizing.

Responses
post
/org/{orgUUID}/env/{envUUID}/bot/{botUUID}/documents

Show a document

get
Path parameters
orgUUIDstringRequired

A valid organization Uuid

envUUIDstringRequired

A valid environment Uuid

botUUIDstringRequired

A valid bot Uuid

documentUUIDstringRequired

A valid service Uuid

Responses
chevron-right
200

Ok

*/*

DTO document content response

filenamestringOptional

Document name

enabledbooleanOptional

Document enabled

collectionUUIDstringOptional

Optional. Symbolic collectionUUID for document organizing.

windowsLengthinteger · int32Optional

Length of windows used in processing

overlapinteger · int32Optional

Overlap value for document processing

questionCountinteger · int32Optional

Number of questions

questionsIdsstring[]Optional

Question uuids inside the document

formatstringOptional

Format of the document. The possibles is inside enum DocumentFormat

get
/org/{orgUUID}/env/{envUUID}/bot/{botUUID}/documents/{documentUUID}

Update one document, the file document or the data (name, tags...)

put
Path parameters
orgUUIDstringRequired

It is the organization uuid where the bot is.

envUUIDstringRequired

It is the environment uuid where the bot is.

botUUIDstringRequired

It is the identification of the bot.

documentUUIDstringRequired

It is the identification of the document

Query parameters
windowsLengthinteger · int32Optional

The length of windows for document processing, default value is 2000

overlapinteger · int32Optional

The overlap length for document processing, default value is 0

tagstring[]Optional

The tag name to save with document

Body
documentstring · binaryOptional

It is the new file to update

namestringRequired

It is the new document name to update

collectionUUIDstringOptional

Optional. Symbolic collectionUUID for document organizing. Sending this as null will overwrite existing repository Id.

Responses
chevron-right
200

Ok

*/*

DTO response with document created with tags

uuidstringOptional

Document uuid

collectionUUIDstringOptional

Collection uuid for the document

storageFilenamestringOptional

Filename in minio

filenamestringOptional

Filename in database

enabledbooleanOptional

True if document is enabled and false if not

windowsLengthinteger · int32Optional

Length of windows used in processing

overlapinteger · int32Optional

Overlap value for document processing

tagsstring[]Optional

Tags saved to the document

put
/org/{orgUUID}/env/{envUUID}/bot/{botUUID}/documents/{documentUUID}/update

Enable or disable document

put
Path parameters
orgUUIDstringRequired

A valid organization Uuid

envUUIDstringRequired

A valid environment Uuid

botUUIDstringRequired

A valid bot Uuid

documentUUIDstringRequired

A valid service Uuid

Body
enabledbooleanOptional
Responses
chevron-right
200

OK

No content

put
/org/{orgUUID}/env/{envUUID}/bot/{botUUID}/documents/{documentUUID}

No content

Remove document

delete
Path parameters
orgUUIDstringRequired

A valid organization Uuid

envUUIDstringRequired

A valid environment Uuid

botUUIDstringRequired

A valid bot Uuid

documentUUIDstringRequired

A valid document Uuid

Responses
delete
/org/{orgUUID}/env/{envUUID}/bot/{botUUID}/documents/{documentUUID}

No content

Bulk Operations

Exports more than one document

post
Path parameters
orgUUIDstringRequired

A valid organization Uuid

envUUIDstringRequired

A valid environment Uuid

botUUIDstringRequired

A valid bot Uuid

Body

Document uuids to delete

uuidsstring[]Optional

A list of Uuid of question

Responses
chevron-right
200

Ok

*/*
string · byte[]Optional
post
/org/{orgUUID}/env/{envUUID}/bot/{botUUID}/documents/export

Bulk removes Documents with the provided uuid list.

delete
Path parameters
orgUUIDstringRequired

A valid organization Uuid

envUUIDstringRequired

A valid environment Uuid

botUUIDstringRequired

A valid bot Uuid

Body

Document uuids to delete

uuidsstring[]Optional

A list of Uuid of question

Responses
chevron-right
200

Ok

application/json

DTO response with massive document deletion data

successstring[]Optional

Name of files deleted successfully

errorsstring[]Optional

name of files with error in deletion

delete
/org/{orgUUID}/env/{envUUID}/bot/{botUUID}/documents/massive-delete

Questions

Paginations and Listings

Returns the pagination of a Bot's Questions. Pagination starts at page 1 instead of the standard 0.

get
Path parameters
orgUUIDstringRequired

A valid organization Uuid

envUUIDstringRequired

A valid environment Uuid

botUUIDstringRequired

A valid bot Uuid

Query parameters
collectionUUIDstringOptional

Optional collection UUID

pageinteger · int32Optional

The number of page and the default is 1

Default: 1Example: 1
linesPerPageinteger · int32Optional

The number of services per pages and the default is 5

Default: 5Example: 1
orderBystringOptional

Field want to ordernate, the default is 'updatedAt'

Default: updatedAt
directionstringOptional

Direction of ordenation, ASC or DESC. The default is DESC

Default: DESC
filenamesstring[]Optional

Filename to filter the search

searchTermsstring[]Optional

Names or tags to filter the search

Responses
chevron-right
200

Ok

*/*
totalPagesinteger · int32Optional
totalElementsinteger · int64Optional
numberOfElementsinteger · int32Optional
firstbooleanOptional
lastbooleanOptional
sizeinteger · int32Optional
numberinteger · int32Optional
emptybooleanOptional
get
/org/{orgUUID}/env/{envUUID}/bot/{botUUID}/questions/pagination

Returning a list of possible words to autocomplete in search

get
Path parameters
orgUUIDstringRequired

A valid organization Uuid

envUUIDstringRequired

A valid environment Uuid

botUUIDstringRequired

A valid bot Uuid

Query parameters
collectionUUIDstringOptional

Optional collection UUID

searchTermstringRequired

Word or part of word to get suggestion names of documents

limitinteger · int64Optional

The limit of suggestions names in the response. The default value is 6

Default: 6Example: 1
Responses
chevron-right
200

Ok

*/*
string[]Optional
get
/org/{orgUUID}/env/{envUUID}/bot/{botUUID}/questions/quicksearch

CRUD Operations

Create a brand new Question

post
Path parameters
orgUUIDstringRequired

A valid organization Uuid

envUUIDstringRequired

A valid environment Uuid

botUUIDstringRequired

A valid bot Uuid

Body
documentIdstringRequired

A Uuid of a document assigned to this question.

namestringRequired

Question name

descriptionstringOptional

Question description

variablesstring[]Optional

List of examples of question

enabledbooleanRequired

Question enabled/disabled status

evaluablebooleanOptional

Question evaluable status

transactionalbooleanOptional

Question transactional status

webhookstringOptional

Webhook address endpoint

headersobjectOptional

Webhook headers

Responses
post
/org/{orgUUID}/env/{envUUID}/bot/{botUUID}/questions

Retrieves information from a specific Question, provided its UUID.

get
Path parameters
orgUUIDstringRequired

A valid organization Uuid

envUUIDstringRequired

A valid environment Uuid

botUUIDstringRequired

A valid bot Uuid

questionUUIDstringRequired

A valid question Uuid

Responses
chevron-right
200

OK

*/*
idstringOptional

Question id

botIdstringOptional

A uuid of bot assigned to this question

namestringOptional

Question name

descriptionstringOptional

Question description

webhookstringOptional

Answer endpoint webhook

headersstringOptional

Webhook headers

transactionalbooleanOptional

Question transactional status

enabledbooleanOptional

Question enabled status

removedbooleanOptional

Question removed status

updateContentbooleanOptional

True if the question content can be predict again because document update

evaluablebooleanOptional

Question evaluable status

createdAtstring · date-timeOptional

When question was created

updatedAtstring · date-timeOptional

When question was updated

updatedBystringOptional

User uuid that changed

get
/org/{orgUUID}/env/{envUUID}/bot/{botUUID}/questions/{questionUUID}

Updates a Question.

put
Path parameters
orgUUIDstringRequired

A valid organization Uuid

envUUIDstringRequired

A valid environment Uuid

botUUIDstringRequired

A valid bot Uuid

questionUUIDstringRequired

A valid question Uuid

Body
documentIdstringRequired

A Uuid of a document assigned to this question.

namestringRequired

Question name

descriptionstringOptional

Question description

variablesstring[]Optional

List of examples of question

enabledbooleanRequired

Question enabled/disabled status

evaluablebooleanOptional

Question evaluable status

transactionalbooleanOptional

Question transactional status

webhookstringOptional

Webhook address endpoint

headersobjectOptional

Webhook headers

Responses
chevron-right
200

Ok

*/*
idstringOptional

Question id

botIdstringOptional

A uuid of bot assigned to this question

namestringOptional

Question name

descriptionstringOptional

Question description

webhookstringOptional

Answer endpoint webhook

headersstringOptional

Webhook headers

transactionalbooleanOptional

Question transactional status

enabledbooleanOptional

Question enabled status

removedbooleanOptional

Question removed status

updateContentbooleanOptional

True if the question content can be predict again because document update

evaluablebooleanOptional

Question evaluable status

createdAtstring · date-timeOptional

When question was created

updatedAtstring · date-timeOptional

When question was updated

updatedBystringOptional

User uuid that changed

put
/org/{orgUUID}/env/{envUUID}/bot/{botUUID}/questions/{questionUUID}

Deletes a Question. The question is symbolically removed via the 'removed' parameter rather than deleted from the database.

delete
Path parameters
orgUUIDstringRequired

A valid organization Uuid

envUUIDstringRequired

A valid environment Uuid

botUUIDstringRequired

A valid bot Uuid

Body

Document uuids to delete

uuidsstring[]Optional

A list of Uuid of question

Responses
chevron-right
200

No Content

*/*

DTO response with massive document deletion data

successstring[]Optional

Name of files deleted successfully

errorsstring[]Optional

name of files with error in deletion

delete
/org/{orgUUID}/env/{envUUID}/bot/{botUUID}/questions

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.

post
Path parameters
orgUUIDstringRequired

A valid organization Uuid

envUUIDstringRequired

A valid environment Uuid

botUUIDstringRequired

A valid bot Uuid

Body
variablestringOptional

Example of the question

Responses
chevron-right
200

Ok

*/*

Question variables

idstringOptional

Variable id

variablestringOptional

The variable value

post
/org/{orgUUID}/env/{envUUID}/bot/{botUUID}/questions/variable

Bulk enables or disables Questions. All questions included whose UUID are included in the body have their enabling field reversed.

put
Path parameters
orgUUIDstringRequired

A valid organization Uuid

envUUIDstringRequired

A valid environment Uuid

botUUIDstringRequired

A valid bot Uuid

Body
questionsIdsstring[]Optional

List the questions ids

Responses
put
/org/{orgUUID}/env/{envUUID}/bot/{botUUID}/questions/change-enable

No content

Knowledge AI

Retrieve collection limits for a specific organization and environment

get
Path parameters
orgUUIDstringRequired

UUID of the organization

envUUIDstringRequired

UUID of the environment

Header parameters
x-request-idstringOptional

It is an identifier provided by the API client that will be used to identify distributed logs.

Responses
chevron-right
200

Ok

*/*

DTO for representing the collection limit.

quantityinteger · int32Optional

Quantity indicating the limit of the collection per bot.

get
/org/{orgUUID}/env/{envUUID}/collections/limits

Return all limits to upload documents

get
Path parameters
orgUUIDstringRequired

It is the id that represents an organization.

envUUIDstringRequired

It is the id that represents an environment.

Header parameters
x-request-idstringOptional

It is an identifier provided by the API client that will be used to identify distributed logs.

Responses
chevron-right
200

Ok

*/*

DTO with limits to upload documents. Size of files and limit of documents per bot

limitinteger · int32Optional

Maximum of documents per bot

get
/org/{orgUUID}/env/{envUUID}/documents/limits

Last updated

Was this helpful?