Skip to content

Duplicate Agent

Endpoint used to duplicate an agent.

Terminal window
curl --request POST \
--url https://chat.api.toolzz.com.br/api/v1/bot/duplicate/ \
--header 'Authorization: Bearer TOKEN_HERE' \
--header 'Content-Type: application/json' \
--data '
{
"id": "<string>"
}
'
{
"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
idUUIDBot unique identifier.Yes

KeyTypeDescriptionRequired
idUUIDUnique identifier of the duplicated 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