Intent
The Intent API handles Intents and their utterances, also handling their mass import through files, known as Bulk Training.
Intents
Pagination and Listings
It is the organization where the intents are, it is used to connect to the correct database.
It is the environment where the intents are, it is used to connect to the correct database.
It is the bot where the intents are, it is used to filter intents.
It is the status of the intents, represents whether are active, default value true.
trueIt is the number of pages that will be returned, default value 0.
0Example: 1It is the number of intent per page, default value 5.
5Example: 1It is the intent attribute used for ordination the page, default attribute name.
nameIt is the sorting type, default value ASC.
ASCIt is the parameter that contains the user data entry, that will be used to filter the intents.
It 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
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.
It is the organization where the flow is, used to connect to the correct database
It is the environment where the flow is, used to connect to the correct database
It is the bot where the flow is, used to filter intents
It is the parameter used to search for intents related to the entered value
It is the max number of result, default value 6
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
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.
It is the organization where the intents are, used to connect to the correct database.
It is the environment where the intents are, used to connect to the correct database.
It is the bot where the intents are, used to filter intents.
It is an identifier provided by the API client that will be used to identify distributed logs.
OK
Contains data needed to create business rules about intent.
Name of the intent.
Utterances of the intent.
Uuid of the intent.
Flows where intent is being used.
Description of the intent.
Flag that indicates if the intent is being used to start flows.
Bad Request
Unauthorized
Forbidden
Not Found
Request Timeout
Conflict
Unprocessable Entity
Internal Server Error
CRUD Operations
Creates a new Intent, according to the provided body. Utterances
submitted must be previously validated or it will fail.
It is the organization where the intents are, used to connect to the correct database.
It is the bot where the intents are, it is used to create intents.
It is the bot where the intents are, used to filter intents.
It is an identifier provided by the API client that will be used to identify distributed logs.
Is the data provided for generating example utterances
Name of the intent.
Utterances of the intent.
About of the intent.
OK
Contains data created after creating or updating an intent.
Name of the intent.
Utterances of the intent.
Uuid of the intent.
Flows where intent is being used.
The name cannot contain spaces
Unauthorized
Forbidden
Not Found
Request Timeout
Conflict
The name must be a maximum of 50 characters
Utterance already exists
Internal Server Error
It is the organization where the intents are, used to connect to the correct database.
It is the environment where the intents are, used to connect to the correct database.
It is the bot where the intents are, used to filter intents.
It is the uuid used to search for an intent.
It is an identifier provided by the API client that will be used to identify distributed logs.
OK
Contains the summary of the analysis made of the intents
It is the number of correct intents
It is the number of examples that have no intents in the file
It is the number of intents that have no examples in the file
It is the number of duplicate examples in the file
It is the number of intents that already exist in the system
It is the number of examples that already exist in the system
It is the number of intents that have invalid characters in the name
It is the flag that identifies if the file is empty
It is the flag that identifies if the file exceeds the maximum number of empty lines.
Intent is removed
Unauthorized
Forbidden
Resource not found
Request Timeout
Conflict
Unprocessable Entity
Internal Server Error
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.
It is the organization where the intents are, used to connect to the correct database.
It is the environment where the intents are, used to connect to the correct database.
It is the bot where the intents are, used to filter intents.
It is the uuid used to search for an intent, in this case it is the intent will be updated.
It is an identifier provided by the API client that will be used to identify distributed logs.
Is the data provided for generating example utterances
Name of the intent.
Utterances of the intent.
About of the intent.
OK
Contains data created after creating or updating an intent.
Name of the intent.
Utterances of the intent.
Uuid of the intent.
Flows where intent is being used.
The name cannot contain spaces
Unauthorized
Forbidden
Not Found
Request Timeout
Conflict
The name must be a maximum of 50 characters
Utterance already exists
Internal Server Error
It is the organization where the intents are, used to connect to the correct database.
It is the environment where the intents are, used to connect to the correct database.
It is the bot where the intents are, used to filter intents.
It is the uuid used to delete an intent.
It is an identifier provided by the API client that will be used to identify distributed logs.
OK
No content
No Content
Bad Request
Unauthorized
Forbidden
Not Found
Request Timeout
Conflict
Unprocessable Entity
Internal Server Error
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.
It is the organization where the intents are, used to connect to the correct database.
It is the environment where the intents are, used to connect to the correct database.
It is the bot where the intents are, it is used to check the utterance.
It is an identifier provided by the API client that will be used to identify distributed logs.
It is the value of the intent example that will be checked if it already exists.
OK
No content
No Content
Bad Request
Unauthorized
Forbidden
Not Found
Request Timeout
Conflict
Unprocessable Entity
Utterance already exists
Internal Server Error
No content
Its function is responsible for communicating with the genai service to bring examples of utterances.
It is the organization where the intents are, used to connect to the correct database.
It is the environment where the intents are, used to connect to the correct database.
It is the bot where the intents are, it is used to check the utterance.
It is an identifier provided by the API client that will be used to identify distributed logs.
Is the data provided for generating example utterances
Name of the intent.
Utterances of the intent.
About of the intent.
OK
Genai service did not return valid examples
Unauthorized
Forbidden
Not Found
Request Timeout
Conflict
Unprocessable Entity
Internal Server Error
It is the organization where the intents are, it is used to connect to the correct database.
It is the environment where the intents are, it is used to connect to the correct database.
it is the bot where the intents are, it is used to filter intents for token counting.
It is an identifier provided by the API client that will be used to identify distributed logs.
Ok
Contains information on the use of a bot's tokens.
Total tokens to be used to build the bot.
Number of tokens used.
Number of tokens reserved for the system.
Bad Request
Unauthorized
Forbidden
Not Found
Conflict
Unprocessable Entity
Internal Server Error
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.
It is the organization where the intents are, it is used to connect to the correct database.
It is the environment where the intents are, it is used to connect to the correct database.
Bot where intents and examples will be imported.
It is an identifier provided by the API client that will be used to identify distributed logs.
It is the file that contains the data to be analyzed.
OK
Contains a summary of the analyses performed
Represents the bulk training status, which can be OK or NOK
The file format is invalid
Unauthorized
Forbidden
Not Found
Request Timeout
There is already a bulk training for this bot '{botUUID}'
Unprocessable Entity
Internal Server Error
It is the organization where the intents are, it is used to connect to the correct database.
It is the environment where the intents are, it is used to connect to the correct database.
Bot where intents and examples will be imported.
It is an identifier provided by the API client that will be used to identify distributed logs.
OK
Object containing the current state of a bulk training
It is the bulk training status id
It is the bot where the bulk training is running
It is the bulk training type and can be INTENTS or UTTERANCES
It is the current percentage of the analysis and can be from 0 to 100
It is the status of mass training and can be PENDING or ERROR
Contains the result of the analysis in JSON format, this field is filled only at the end of the analysis
It is the name of the file that was uploaded
Bad Request
Unauthorized
Forbidden
Not Found
Request Timeout
Conflict
Unprocessable Entity
Internal Server Error
It is the organization where the intents are, it is used to connect to the correct database.
It is the environment where the intents are, it is used to connect to the correct database.
Bot where intents and examples will be created.
It is an identifier provided by the API client that will be used to identify distributed logs.
OK
Contains a summary of the analyses performed
Represents the bulk training status, which can be OK or NOK
It is the content of the analysis, which can be a list of String, a number, an IntentDataDTO or UtteranceDataDTO
The file contains inconsistencies, fix it and try again
Unauthorized
Forbidden
Not Found
Request Timeout
Wait for the upload to finish
Unprocessable Entity
Internal Server Error
It is the organization where the intents are, it is used to connect to the correct database.
It is the environment where the intents are, it is used to connect to the correct database.
Bot that contains the bulk training that will be canceled
It is the id of the bulk training.
It is an identifier provided by the API client that will be used to identify distributed logs.
OK
No content
No Content
Wait for the upload to finish to cancel the bulk training action
Unauthorized
Forbidden
Not Found
Request Timeout
Wait for the upload to finish
Unprocessable Entity
Internal Server Error
No content
Auxiliary Methods
It is the organization where the intents are, it is used to connect to the correct database.
It is the environment where the intents are, it is used to connect to the correct database.
Bot where intents and examples will be imported.
It is an identifier provided by the API client that will be used to identify distributed logs.
It is the file that contains the data to be analyzed.
OK
Contains a summary of the analyses performed
Represents the bulk training status, which can be OK or NOK
The file format is invalid
Unauthorized
Forbidden
Not Found
Request Timeout
There is already a bulk training for this bot '{botUUID}'
Unprocessable Entity
Internal Server Error
It is the organization where the intents are, it is used to connect to the correct database.
It is the environment where the intents are, it is used to connect to the correct database.
Bot where the examples were loaded
It is an identifier provided by the API client that will be used to identify distributed logs.
OK
Contains a summary of the analyses performed
Represents the bulk training status, which can be OK or NOK
It is the content of the analysis, which can be a list of String, a number, an IntentDataDTO or UtteranceDataDTO
The file contains inconsistencies, fix it and try again
Unauthorized
Forbidden
Not Found
Request Timeout
Wait for the upload to finish
Unprocessable Entity
Internal Server Error
Last updated
Was this helpful?