Intent

The Intent API handles Intents and their utterances, also handling their mass import through files, known as Bulk Training.

circle-info

API SUBPATH: eva-intent

Intents

Pagination and Listings

Paginates through the Intents of a given bot.

get
Path parameters
orgUUIDstringRequired

It is the organization where the intents are, it is used to connect to the correct database.

envUUIDstringRequired

It is the environment where the intents are, it is used to connect to the correct database.

botUUIDstringRequired

It is the bot where the intents are, it is used to filter intents.

Query parameters
enabledbooleanRequired

It is the status of the intents, represents whether are active, default value true.

Example: true
pageinteger · int32Required

It is the number of pages that will be returned, default value 0.

Default: 0Example: 1
linesPerPageinteger · int32Required

It is the number of intent per page, default value 5.

Default: 5Example: 1
orderBystringRequired

It is the intent attribute used for ordination the page, default attribute name.

Default: name
directionstringRequired

It is the sorting type, default value ASC.

Default: ASC
searchTermsstringRequired

It is the parameter that contains the user data entry, that will be used to filter the intents.

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

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

Searches (greedily) for any Intent names that exists in a bot, matching the typed term, left-to-right, and returns a list of up to 6 Strings, ordered alphabetically.

get
Path parameters
orgUUIDstringRequired

It is the organization where the flow is, used to connect to the correct database

envUUIDstringRequired

It is the environment where the flow is, used to connect to the correct database

botUUIDstringRequired

It is the bot where the flow is, used to filter intents

Query parameters
namestringRequired

It is the parameter used to search for intents related to the entered value

limitinteger · int32Optional

It is the max number of result, default value 6

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

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

Acquires a full list of Intents. This method is intended to be consumed on the Flow editing screen and brings information regarding each Intent's current usage on the current Flow.

get
Path parameters
orgUUIDstringRequired

It is the organization where the intents are, used to connect to the correct database.

envUUIDstringRequired

It is the environment where the intents are, used to connect to the correct database.

botUUIDstringRequired

It is the bot where the intents are, used to filter intents.

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

*/*

Contains data needed to create business rules about intent.

namestringRequired

Name of the intent.

utterancesstring[]Optional

Utterances of the intent.

idstringOptional

Uuid of the intent.

flowsstring[]Optional

Flows where intent is being used.

aboutstringOptional

Description of the intent.

firstCellbooleanOptional

Flag that indicates if the intent is being used to start flows.

get
/org/{orgUUID}/env/{envUUID}/bot/{botUUID}/intents/list-on-flow

CRUD Operations

Creates a new Intent, according to the provided body. Utterances submitted must be previously validated or it will fail.

post
Path parameters
orgUUIDstringRequired

It is the organization where the intents are, used to connect to the correct database.

envUUIDstringRequired

It is the bot where the intents are, it is used to create intents.

botUUIDstringRequired

It is the bot where the intents are, used to filter intents.

Header parameters
x-request-idstringOptional

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

Body

Is the data provided for generating example utterances

namestringRequired

Name of the intent.

utterancesstring[]Optional

Utterances of the intent.

aboutstring · max: 200Optional

About of the intent.

Responses
chevron-right
200

OK

*/*

Contains data created after creating or updating an intent.

namestringRequired

Name of the intent.

utterancesstring[]Optional

Utterances of the intent.

idstringOptional

Uuid of the intent.

flowsstring[]Optional

Flows where intent is being used.

post
/org/{orgUUID}/env/{envUUID}/bot/{botUUID}/intents

Retrieves complete information regarding a given Intent, by it's UUID.

get
Path parameters
orgUUIDstringRequired

It is the organization where the intents are, used to connect to the correct database.

envUUIDstringRequired

It is the environment where the intents are, used to connect to the correct database.

botUUIDstringRequired

It is the bot where the intents are, used to filter intents.

uuidstringRequired

It is the uuid used to search for an intent.

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

*/*

Contains the summary of the analysis made of the intents

successinteger · int32Optional

It is the number of correct intents

expWithItentsinteger · int32Optional

It is the number of examples that have no intents in the file

intWithExpinteger · int32Optional

It is the number of intents that have no examples in the file

duplicateExpinteger · int32Optional

It is the number of duplicate examples in the file

intAlerExistsInRepointeger · int32Optional

It is the number of intents that already exist in the system

expAlerExistsInRepointeger · int32Optional

It is the number of examples that already exist in the system

invalidIntentNameinteger · int32Optional

It is the number of intents that have invalid characters in the name

notLinesbooleanOptional

It is the flag that identifies if the file is empty

exceedsMaxEmptyLinesbooleanOptional

It is the flag that identifies if the file exceeds the maximum number of empty lines.

get
/org/{orgUUID}/env/{envUUID}/bot/{botUUID}/intents/{uuid}

Updates an existing Intent. Utterances submitted overwrite the previous one, so you must submit the previous utterances you previously had, with their UUID, if you intend to persist them.

put
Path parameters
orgUUIDstringRequired

It is the organization where the intents are, used to connect to the correct database.

envUUIDstringRequired

It is the environment where the intents are, used to connect to the correct database.

botUUIDstringRequired

It is the bot where the intents are, used to filter intents.

uuidstringRequired

It is the uuid used to search for an intent, in this case it is the intent will be updated.

Header parameters
x-request-idstringOptional

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

Body

Is the data provided for generating example utterances

namestringRequired

Name of the intent.

utterancesstring[]Optional

Utterances of the intent.

aboutstring · max: 200Optional

About of the intent.

Responses
chevron-right
200

OK

*/*

Contains data created after creating or updating an intent.

namestringRequired

Name of the intent.

utterancesstring[]Optional

Utterances of the intent.

idstringOptional

Uuid of the intent.

flowsstring[]Optional

Flows where intent is being used.

put
/org/{orgUUID}/env/{envUUID}/bot/{botUUID}/intents/{uuid}

Removes an existing Intent and their associated Utterances.

delete
Path parameters
orgUUIDstringRequired

It is the organization where the intents are, used to connect to the correct database.

envUUIDstringRequired

It is the environment where the intents are, used to connect to the correct database.

botUUIDstringRequired

It is the bot where the intents are, used to filter intents.

uuidstringRequired

It is the uuid used to delete an intent.

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

No content

delete
/org/{orgUUID}/env/{envUUID}/bot/{botUUID}/intents/{uuid}

No content

Auxiliary Methods

Validates if an utterance is already being used in the bot elsewhere. Should be called to verify each utterance in a body for creating or updating Intents.

post
Path parameters
orgUUIDstringRequired

It is the organization where the intents are, used to connect to the correct database.

envUUIDstringRequired

It is the environment where the intents are, used to connect to the correct database.

botUUIDstringRequired

It is the bot where the intents are, it is used to check the utterance.

Header parameters
x-request-idstringOptional

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

Body
stringOptional

It is the value of the intent example that will be checked if it already exists.

Responses
chevron-right
200

OK

No content

post
/org/{orgUUID}/env/{envUUID}/bot/{botUUID}/intents/validate-utterance

No content

Its function is responsible for communicating with the genai service to bring examples of utterances.

post
Path parameters
orgUUIDstringRequired

It is the organization where the intents are, used to connect to the correct database.

envUUIDstringRequired

It is the environment where the intents are, used to connect to the correct database.

botUUIDstringRequired

It is the bot where the intents are, it is used to check the utterance.

Header parameters
x-request-idstringOptional

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

Body

Is the data provided for generating example utterances

namestringRequired

Name of the intent.

utterancesstring[]Optional

Utterances of the intent.

aboutstring · max: 200Optional

About of the intent.

Responses
chevron-right
200

OK

*/*
string[]Optional
post
/org/{orgUUID}/env/{envUUID}/bot/{botUUID}/intents/complete

A service class for providing token management services.

get
Path parameters
orgUUIDstringRequired

It is the organization where the intents are, it is used to connect to the correct database.

envUUIDstringRequired

It is the environment where the intents are, it is used to connect to the correct database.

botUUIDstringRequired

it is the bot where the intents are, it is used to filter intents for token counting.

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

Contains information on the use of a bot's tokens.

maxTokensinteger · int32Optional

Total tokens to be used to build the bot.

usedTokensinteger · int32Optional

Number of tokens used.

reservedTokensinteger · int32Optional

Number of tokens reserved for the system.

get
/org/{orgUUID}/env/{envUUID}/bot/{botUUID}/tokens

Bulk Trainings

CRUD Operations

Receives and load intents and utterances to analyze data consistency, and generate a pre-save of the analyzed data which must be then approved and trained.

post
Path parameters
orgUUIDstringRequired

It is the organization where the intents are, it is used to connect to the correct database.

envUUIDstringRequired

It is the environment where the intents are, it is used to connect to the correct database.

botUUIDstringRequired

Bot where intents and examples will be imported.

Header parameters
x-request-idstringOptional

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

Body
filestring · binaryRequired

It is the file that contains the data to be analyzed.

Responses
chevron-right
200

OK

*/*

Contains a summary of the analyses performed

messagestringOptional

Represents the bulk training status, which can be OK or NOK

post
/org/{orgUUID}/env/{envUUID}/bot/{botUUID}/bulk-training/intents

Retrieves the status of the bot's current bulk training.

get
Path parameters
orgUUIDstringRequired

It is the organization where the intents are, it is used to connect to the correct database.

envUUIDstringRequired

It is the environment where the intents are, it is used to connect to the correct database.

botUUIDstringRequired

Bot where intents and examples will be imported.

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

*/*

Object containing the current state of a bulk training

idstringOptional

It is the bulk training status id

botUuidstringOptional

It is the bot where the bulk training is running

typestringOptional

It is the bulk training type and can be INTENTS or UTTERANCES

percentageinteger · int32Optional

It is the current percentage of the analysis and can be from 0 to 100

statusstringOptional

It is the status of mass training and can be PENDING or ERROR

resultstringOptional

Contains the result of the analysis in JSON format, this field is filled only at the end of the analysis

fileNamestringOptional

It is the name of the file that was uploaded

get
/org/{orgUUID}/env/{envUUID}/bot/{botUUID}/bulk-training

Create the intents and examples submitted by the upload service.

put
Path parameters
orgUUIDstringRequired

It is the organization where the intents are, it is used to connect to the correct database.

envUUIDstringRequired

It is the environment where the intents are, it is used to connect to the correct database.

botUUIDstringRequired

Bot where intents and examples will be created.

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

*/*

Contains a summary of the analyses performed

messagestringOptional

Represents the bulk training status, which can be OK or NOK

datainteger · int32Optional

It is the content of the analysis, which can be a list of String, a number, an IntentDataDTO or UtteranceDataDTO

put
/org/{orgUUID}/env/{envUUID}/bot/{botUUID}/bulk-training/intents

Deletes an existing Bulk Training. Both the uploaded data and it's status will be erased.

delete
Path parameters
orgUUIDstringRequired

It is the organization where the intents are, it is used to connect to the correct database.

envUUIDstringRequired

It is the environment where the intents are, it is used to connect to the correct database.

botUUIDstringRequired

Bot that contains the bulk training that will be canceled

idstringRequired

It is the id of the bulk training.

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

No content

delete
/org/{orgUUID}/env/{envUUID}/bot/{botUUID}/bulk-training/{id}

No content

Auxiliary Methods

Validates it a set of utterance/examples provided are valid.

post
Path parameters
orgUUIDstringRequired

It is the organization where the intents are, it is used to connect to the correct database.

envUUIDstringRequired

It is the environment where the intents are, it is used to connect to the correct database.

botUUIDstringRequired

Bot where intents and examples will be imported.

Header parameters
x-request-idstringOptional

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

Body
filestring · binaryRequired

It is the file that contains the data to be analyzed.

Responses
chevron-right
200

OK

*/*

Contains a summary of the analyses performed

messagestringOptional

Represents the bulk training status, which can be OK or NOK

post
/org/{orgUUID}/env/{envUUID}/bot/{botUUID}/bulk-training/utterances

Acquired the utterance data that was uploaded by the upload service

put
Path parameters
orgUUIDstringRequired

It is the organization where the intents are, it is used to connect to the correct database.

envUUIDstringRequired

It is the environment where the intents are, it is used to connect to the correct database.

botUUIDstringRequired

Bot where the examples were loaded

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

*/*

Contains a summary of the analyses performed

messagestringOptional

Represents the bulk training status, which can be OK or NOK

datastring[]Optional

It is the content of the analysis, which can be a list of String, a number, an IntentDataDTO or UtteranceDataDTO

put
/org/{orgUUID}/env/{envUUID}/bot/{botUUID}/bulk-training/utterances

Last updated

Was this helpful?