POST
/
api
/
v1
/
bot
/
duplicate
curl --request POST \
  --url https://chat.api.toolzz.com.br/api/v1/bot/duplicate/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "id": "<string>"
}'
{
  "id": "<string>",
  "name": "<string>",
  "prompt": "<string>",
  "metaprompt": "<string>",
  "description": "<string>",
  "botGenAI": [
    {
      "id": "<string>",
      "botId": "<string>",
      "credentialId": "<string>",
      "genAIModelId": "<string>",
      "genAIId": "<string>",
      "genAIKey": "<string>",
      "genAIOrganization": "<string>",
      "assistantId": "<string>",
      "isDefault": true,
      "messagesLimit": 123,
      "charactersLimit": 123,
      "temperature": 123,
      "topP": 123,
      "frequencyPenalty": 123,
      "presencePenalty": 123,
      "topK": 123,
      "messagesQuery": 123,
      "model": "<string>",
      "tools": [
        {
          "type": "<string>",
          "description": "<string>"
        }
      ],
      "credential": {
        "id": "<string>",
        "name": "<string>",
        "userId": "<string>",
        "unityId": "<string>",
        "integrationId": "<string>",
        "secretId": "<string>",
        "status": true,
        "virtualKey": "<string>",
        "createdAt": "<string>",
        "updatedAt": "<string>"
      }
    }
  ],
  "assistantId": "<string>",
  "tags": [
    {}
  ],
  "unityId": "<string>",
  "institutionId": "<string>",
  "progressStatus": "<string>",
  "safeMode": true,
  "isActivated": true,
  "botMonetization": {},
  "hasMonetization": true,
  "hasAnalytics": true,
  "isAdvancedBot": true,
  "hasTools": true,
  "hasPlugins": true,
  "favorites": [
    {}
  ],
  "botFallBack": [
    {}
  ]
}
id
string

Id of the bot

Response Description

Below you will see the description of the function duplicate response

id
string
required

Unique identifier of the bot.

name
string
required

Name of the bot.

prompt
string
required

Prompt used to initialize the bot’s responses.

metaprompt
string

Metaprompt providing guidelines for the bot’s behavior and settings.

description
string
required

Description of the bot’s functionality.

botGenAI
array

List of configurations for generative AI integration.

assistantId
string

Optional ID for the associated assistant.

tags
array

List of tags associated with the bot.

unityId
string
required

ID of the associated unity.

institutionId
string
required

ID of the associated institution.

progressStatus
string
required

Current progress status of the bot.

safeMode
boolean
required

Indicates if the bot is operating in safe mode.

isActivated
boolean
required

Indicates if the bot is currently activated.

botMonetization
object

Details about the bot’s monetization (empty if not applicable).

hasMonetization
boolean
required

Indicates if the bot has monetization enabled.

hasAnalytics
boolean
required

Indicates if the bot has analytics enabled.

isAdvancedBot
boolean
required

Indicates if the bot is configured as an advanced bot.

hasTools
boolean
required

Indicates if the bot has tools integrated.

hasPlugins
boolean
required

Indicates if the bot has plugins integrated.

favorites
array

List of favorite configurations for the bot (empty if none).

botFallBack
array

List of fallback configurations for the bot (empty if none).

Segurança

Para acessar este endpoint, é necessário enviar um token de acesso válido através do cabeçalho de autorização (Authorization) da requisição. Além disso, a API é protegida por outras medidas de segurança para proteger os dados dos usuários.