[POST] Criar agente
Cria um novo agente.
Requisição
curl --location --request POST 'https://api.zaia.app/v1.1/api/agent/create' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <your api key goes here>' \
--data '{
"name": "The Zaian Agent",
"template": "generic",
"companyName": "Zaia",
"behavior": "Descrição de comportamento do Agente",
"fileQueryMode": "general",
"pictureURL": "data:image/png;base64,iVBORw0KG...",
"productDescription": "AI agents built for sales, support and more.",
"tone": "Casual",
"initialChatMessage": "Hello, I am The Zaian Agent. How can I assist you today?",
"responseModel": "gpt-4o-mini",
"voiceGender": "female"
}'
Headers (Cabeçalhos)
Chave
Tipo
Exemplo
Obrigatório
Authorization
String
Bearer <sua chave aqui>
✓
Body (Corpo)
Chave
Tipo
Exemplo
Obrigatório
name
String
The Zaian Agent
✓
template
TemplateEnum
generic
✓
companyName
String
Zaia
fileQueryMode
FileQueryModeEnum
general
pictureURL
String
data:image/png;base64,iVBORw0KG...
productDescription
String
AI agents built for sales, support and more.
tone
String
Casual
initialChatMessage
String
Hello, I am The Zaian Agent. How can I assist you today?
responseModel
ResponseModelEnum
gpt-4o-mini
voiceGender
VoiceGenderEnum
female
behavior
String
Exemplo de descirção do comportamento do Agnete
Respostas
{
"id": 1,
"behavior": "...",
"createdAt": "2024-02-14T12:00:00Z",
"externalId": "...",
"name": "The Zaian Agent",
"template": "generic",
"companyName": "Zaia",
"fileQueryMode": "general",
"pictureURL": "data:image/png;base64,iVBORw0KG…",
"productDescription": "AI agents built for sales, support and more.",
"tone": "Casual",
"initialChatMessage": "Hello, I'm The Zaian Agent. How can I assist you?",
"responseModel": "gpt-4o-mini",
"voiceGender": "female"
}
Atualizado