Atualizar Multi-Agente
curl --request PUT \
--url https://chat.api.toolzz.com.br/api/v1/bot/update-multi/{id} \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "<string>",
"agentIds": [
"<string>"
]
}
'import requests
url = "https://chat.api.toolzz.com.br/api/v1/bot/update-multi/{id}"
payload = {
"prompt": "<string>",
"agentIds": ["<string>"]
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({prompt: '<string>', agentIds: ['<string>']})
};
fetch('https://chat.api.toolzz.com.br/api/v1/bot/update-multi/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://chat.api.toolzz.com.br/api/v1/bot/update-multi/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'prompt' => '<string>',
'agentIds' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://chat.api.toolzz.com.br/api/v1/bot/update-multi/{id}"
payload := strings.NewReader("{\n \"prompt\": \"<string>\",\n \"agentIds\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://chat.api.toolzz.com.br/api/v1/bot/update-multi/{id}")
.header("Content-Type", "application/json")
.body("{\n \"prompt\": \"<string>\",\n \"agentIds\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://chat.api.toolzz.com.br/api/v1/bot/update-multi/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"prompt\": \"<string>\",\n \"agentIds\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"name": "<string>",
"prompt": "<string>",
"metaprompt": "<string>",
"description": "<string>",
"assistantId": "<string>",
"tags": [
"<string>"
],
"unityId": "<string>",
"progressStatus": "<string>",
"safeMode": true,
"institutionId": "<string>",
"isActivated": true,
"botMonetization": {},
"hasMonetization": true,
"hasAnalytics": true,
"hasMulti": true,
"isAdvancedBot": true,
"hasTools": true,
"hasVoice": true,
"hasPlugins": true,
"hasWhatsapp": true,
"hasInstagram": true,
"hasMessenger": true,
"botMultiAgents": [
{}
],
"favorites": [
"<any>"
],
"botFallBack": [
"<any>"
]
}Multi-Agente
Atualizar Multi-Agente
Endpoint para atualizar um Multi-Agente
PUT
/
api
/
v1
/
bot
/
update-multi
/
{id}
Atualizar Multi-Agente
curl --request PUT \
--url https://chat.api.toolzz.com.br/api/v1/bot/update-multi/{id} \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "<string>",
"agentIds": [
"<string>"
]
}
'import requests
url = "https://chat.api.toolzz.com.br/api/v1/bot/update-multi/{id}"
payload = {
"prompt": "<string>",
"agentIds": ["<string>"]
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({prompt: '<string>', agentIds: ['<string>']})
};
fetch('https://chat.api.toolzz.com.br/api/v1/bot/update-multi/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://chat.api.toolzz.com.br/api/v1/bot/update-multi/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'prompt' => '<string>',
'agentIds' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://chat.api.toolzz.com.br/api/v1/bot/update-multi/{id}"
payload := strings.NewReader("{\n \"prompt\": \"<string>\",\n \"agentIds\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://chat.api.toolzz.com.br/api/v1/bot/update-multi/{id}")
.header("Content-Type", "application/json")
.body("{\n \"prompt\": \"<string>\",\n \"agentIds\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://chat.api.toolzz.com.br/api/v1/bot/update-multi/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"prompt\": \"<string>\",\n \"agentIds\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"name": "<string>",
"prompt": "<string>",
"metaprompt": "<string>",
"description": "<string>",
"assistantId": "<string>",
"tags": [
"<string>"
],
"unityId": "<string>",
"progressStatus": "<string>",
"safeMode": true,
"institutionId": "<string>",
"isActivated": true,
"botMonetization": {},
"hasMonetization": true,
"hasAnalytics": true,
"hasMulti": true,
"isAdvancedBot": true,
"hasTools": true,
"hasVoice": true,
"hasPlugins": true,
"hasWhatsapp": true,
"hasInstagram": true,
"hasMessenger": true,
"botMultiAgents": [
{}
],
"favorites": [
"<any>"
],
"botFallBack": [
"<any>"
]
}Descrição dos Parâmetros
string
Token de acesso (“Bearer” deve estar antes do token)
string
ID do agente
string
Prompt de como chamar o agente (Ex: Quando falar sobre finanças chame o @FinaceiroAI).
uuid[]
ID dos agentes relacionados.
Descrição da Resposta
Abaixo você verá a descrição da resposta do agente utilizando multi-agentesstring
required
ID único do bot.
string
required
Nome atribuído ao bot.
string
required
Texto descritivo que define o comportamento, personalidade e funcionalidades do bot.
string
Configurações adicionais e instruções de customização para comportamento do agente.
string
required
Descrição breve da finalidade ou propósito do bot.
string
ID do assistente vinculado (pode ser nulo).
string[]
Lista de tags associadas ao bot.
string
required
ID da unidade organizacional à qual o bot pertence.
string
Status atual do progresso do bot (exemplo: “FINISHED”).
boolean
Indica se o modo seguro está ativado.
string
required
ID da instituição responsável pelo bot.
boolean
required
Indica se o bot está ativo.
object
Objeto com informações sobre monetização do bot.
boolean
Indica se o bot possui monetização habilitada.
boolean
Indica se o bot possui recursos analíticos habilitados.
boolean
Indica se o bot suporta múltiplos agentes.
boolean
Indica se o bot é classificado como avançado.
boolean
Indica se o bot possui ferramentas integradas.
boolean
Indica se o bot tem suporte a voz.
boolean
Indica se o bot possui plugins integrados.
boolean
Indica se o bot possui integração com WhatsApp.
boolean
Indica se o bot possui integração com Instagram.
boolean
Indica se o bot possui integração com Messenger.
object[]
required
Lista de agentes vinculados ao bot, com seus respectivos prompts e metadados.
any[]
Lista de favoritos associados ao bot.
any[]
Configurações de fallback do bot.

