Skip to content

Create Agent

Endpoint used to create an agent.

Terminal window
curl --request POST \
--url https://chat.api.toolzz.com.br/api/v1/bot \
--header 'Authorization: Bearer TOKEN_HERE' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>",
"tags": "<string>",
"prompt": "<string>",
"iconFileId": "uuid",
"model": "<string>",
"credentialId": "uuid",
"safeMode": false,
"messagesLimit": 123,
"charactersLimit": 123,
"genAIOrganization": "<string>",
"analyticsCredentialId": "uuid",
"whatsappCredentialId": "uuid",
"instagramCredentialId": "uuid",
"messengerCredentialId": "uuid",
"unityId": "uuid",
"hasAnalytics": true,
"hasMonetization": true,
"hasVoice": true,
"hasPlugins": true,
"hasTools": true,
"hasMulti": true,
"hasWhatsapp": true,
"hasInstagram": true,
"hasMessenger": true,
"temperature": 123,
"topP": 123,
"presencePenalty": 123,
"frequencyPenalty": 123,
"tools": [
{
"type": "<string>",
"description": "<string>"
}
],
"topK": 123,
"messagesQuery": 123,
"coin": "<string>",
"price": 123,
"timeTest": 123,
"recurring": "<string>",
"monetizationCredentialId": "uuid",
"featuredProduct": true,
"folder": [
{
"id": "uuid"
}
]
}
'
{
"id": "uuid",
"name": "<string>",
"prompt": "<string>",
"metaprompt": "<string>",
"description": "<string>",
"folders": [
{
"id": "uuid",
"botId": "uuid",
"folderId": "uuid",
"kbId": "uuid",
"kbFolder": {
"isRoot": false,
"id": "uuid",
"institutionId": "uuid",
"name": "<string>",
"knowLedgeBaseId": "uuid"
}
}
],
"plugins": [
{
"status": true,
"id": "uuid",
"botId": "uuid",
"pluginId": "uuid",
"plugin": {
"status": true,
"isActivated": true,
"id": "uuid",
"name": "<string>",
"iconFileId": "uuid",
"description": "<string>",
"code": "<string>",
"institutionId": "uuid",
"userId": "uuid",
"unityId": "uuid",
"color": "<string>",
"createdAt": "<string>",
"type": "<string>",
"googleCalendarPlugin": [
{
"id": "uuid",
"googleId": "<string>",
"calendarId": "<string>",
"timezone": "<string>",
"pluginId": "uuid",
"notificationType": null,
"notificationDelayMs": 123,
"createdAt": "<string>",
"updatedAt": "<string>",
"googleUser": {
"name": "<string>",
"given_name": "<string>",
"family_name": "<string>",
"picture": "<string>",
"email": "<string>",
"hd": "<string>"
},
"googleToken": "<string>"
}
]
}
}
],
"botGenAI": [
{
"isDefault": true,
"messagesLimit": 123,
"charactersLimit": 123,
"temperature": 123,
"topP": 123,
"frequencyPenalty": 123,
"presencePenalty": 123,
"topK": 123,
"messagesQuery": 123,
"id": "uuid",
"botId": "uuid",
"credentialId": "uuid",
"analyticsCredentialId": "uuid",
"model": "<string>",
"credential": {
"status": false,
"id": "uuid",
"name": "<string>",
"userId": "uuid",
"unityId": "uuid",
"integrationId": "uuid",
"secretId": "uuid",
"createdAt": "<string>",
"updatedAt": "<string>",
"virtualKey": "<string>",
"integration": {
"status": true,
"id": "uuid",
"name": "<string>",
"type": "<string>",
"iconId": "uuid",
"slug": "<string>",
"icon": {
"id": "uuid",
"institutionId": "uuid",
"url": "<string>",
"extension": "<string>",
"size": 123
}
}
}
}
],
"IconFile": {
"id": "uuid",
"institutionId": "uuid",
"type": "<string>",
"fileName": "<string>",
"url": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"extension": "<string>",
"size": 123
},
"tags": [
"<string>"
],
"unityId": "uuid",
"institutionId": "uuid",
"isActivated": true,
"botMonetization": {
"credentialId": "uuid",
"price": 123,
"timeTest": 123,
"featuredProduct": false,
"id": "uuid",
"coin": "<string>",
"recurring": "<string>",
"credential": {
"status": false,
"id": "uuid",
"name": "<string>",
"userId": "uuid",
"unityId": "uuid",
"integrationId": "uuid",
"secretId": "uuid"
}
},
"botVoiceConfig": [
{
"visualType": "<string>",
"language": "<string>",
"primaryColor": "<string>",
"buttonColor": "<string>",
"theme": "<string>",
"textTitle": "<string>",
"textDescription": "<string>",
"waitTime": 123,
"callTime": 123,
"id": "uuid",
"botId": "uuid",
"voiceId": "<string>",
"voiceCredentialId": "uuid",
"visualIconId": "uuid",
"insertedLabsId": "<string>",
"voiceModel": "<string>",
"visualIcon": {
"id": "uuid",
"institutionId": "uuid",
"fileName": "<string>",
"url": "<string>",
"size": 123
},
"voiceCredential": {
"id": "uuid",
"name": "<string>",
"userId": "uuid",
"unityId": "uuid",
"integrationId": "uuid",
"secretId": "uuid"
}
}
],
"botMultiAgents": [
{
"id": "uuid",
"botId": "uuid",
"promptFlow": "<string>",
"agentIds": [
"uuid"
],
"createdAt": "<string>",
"updatedAt": "<string>"
}
]
"favorites": [],
"botFallBack": []
}

ParameterTypeDescriptionRequired
AuthorizationStringAccess token (“Bearer” must be before the token)Yes
ParameterTypeDescriptionRequired
unityIdUUIDOrganizational unit identifier.Yes
nameStringBot identification name.Yes
descriptionStringBrief description of the agent’s purpose.Yes
tagsStringTags for categorization (e.g., #agent).No
promptStringSystem Prompt with instructions and AI personality.Yes
iconFileIdUUIDIcon image file identifier.No
modelStringLanguage model to be used (e.g., gpt-4o).Yes
credentialIdUUIDID of the integration credential with the AI provider.Yes
safeModeBooleanEnables or disables content security filters.No
messagesLimitNumberMessage limit per interaction.No
charactersLimitNumberCharacter limit per response sent.No
hasAnalyticsBooleanEnables the use of Toolzz Analytics.No
hasMonetizationBooleanEnables billing and subscription functions.No
hasVoiceBooleanEnables voice interaction functionality.No
hasPluginsBooleanAllows the use of external plugins.No
hasToolsBooleanAllows the use of internal tools (Scraping, etc.).No
temperatureNumberLevel of creativity/randomness (0.0 to 1.0).No
topPNumberCore sampling control.No
presencePenaltyNumberPenalty for repeating topics.No
frequencyPenaltyNumberPenalty for repeating words.No
topKNumberVocabulary limit for the K most probable words.No
messagesQueryNumberNumber of contextual messages per query.No
toolsArrayList of objects containing type and description of the tools.No
coinStringCurrency code for monetization (e.g., brl).No
priceNumberValue charged for bot use.No
recurringStringBilling recurrence period (e.g., month).No
monetizationCredentialIdUUIDID of the payment provider credential (e.g., Stripe).No
featuredProductBooleanDefines if the bot appears as a featured product.No
folderArrayList of objects with the id (UUID) of knowledge folders.No

KeyTypeDescriptionRequired
idUUIDUnique identifier of the created Bot.Yes
nameStringBot name returned by the system.Yes
promptStringBehavior and personality instructions (System Prompt).Yes
metapromptStringSystem control instructions and AI limitations.Yes
descriptionStringBrief description of the Bot’s functions.Yes
isActivatedBooleanBot activation status (true/false).Yes
unityIdUUIDLinked organizational unit identifier.Yes
institutionIdUUIDOwning institution identifier.Yes
fallbackPhraseStringSafety phrase sent when the AI does not find an answer.No
foldersArrayList of linked folders and knowledge bases (RAG).Yes
pluginsArrayActive integration plugins (e.g., Google Calendar).Yes
botGenAIArrayGenerative model settings (temperature, tokens, etc.).Yes
IconFileObjectMetadata and URL of the Bot’s icon image.Yes
tagsArrayList of search tags associated with the Bot.No
botMonetizationObjectPricing rules, currency, and recurrence.No
botVoiceConfigArrayVoice settings, audio widget colors, and provider.No
botMultiAgentsArrayFlow and transition rules between different agents.No
botFallBackArrayList of agents configured for automatic overflow.No
favoritesArrayList of identifiers of users who favorited the Bot.No

To access this endpoint, it is necessary to send a valid access token through the authorization header (Authorization) of the request. Additionally, the API is protected by other security measures to safeguard user data.

To access your access token, follow these steps:

  1. Log in to the ToolzzAI platform
  2. Click on “Settings”
  3. Click on “Access Token”
  4. Copy the access token

Access token page