The agent needs to be configured with basic information determining its identity and operation.
name: Defines how the agent will be identified in conversations.
Valid examples:
provider: Specifies which AI service will be used.
Available providers:
apikey: Credential required for authentication with the chosen provider.
model: Specifies which AI model will be used. Availability depends on the selected provider.
Documentation: https://platform.openai.com/docs/models
Documentation: https://docs.anthropic.com/en/docs/about-claude/models
Documentation: https://ai.google.dev/models/gemini
Documentation: https://api-docs.deepseek.com/quick_start/pricing
deepseek-chat
deepseek-reasoner
Initial instructions to define agent behavior
Example for sales assistant:
“You are an assistant specialized in sales, focused on helping customers find the ideal products. Maintain a professional and friendly tone.”
Example for support:
“You are a technical support agent specialized in our products. Provide clear and objective answers to help customers solve their problems.”
temperature: Controls response creativity (0-100)
0-30: More conservative and precise answers
30-70: Balance between creativity and precision
70-100: More creative and varied answers
maxTokens: Maximum token limit per response
Recommended: 1000-4000 for detailed responses
For short responses: 500-1000
Maximum limit varies by model
diversityLevel: Controls response diversity (0-100)
Higher values generate more varied responses
Recommended: 30-70 for general use
frequencyPenalty: Penalty for word repetition (0-100)
Higher values reduce repetitions
Recommended: 20-50 for natural communication
presencePenalty: Penalty to maintain topic focus (0-100)
Higher values encourage topic changes
Recommended: 10-30 to maintain coherence
signMessages: If true, adds the agent’s signature to messages
Useful for identifying who is sending the message
readMessages: If true, marks messages as read when responding
Recommended to simulate human behavior
{
"name": "Sales Assistant",
"provider": "openai",
"model": "gpt-4",
"basePrompt": "You are a specialized sales assistant...",
"temperature": 70,
"maxTokens": 2000,
"diversityLevel": 50,
"frequencyPenalty": 30,
"presencePenalty": 20,
"signMessages": true,
"readMessages": true
}
{
"name": "Technical Support",
"provider": "anthropic",
"model": "claude-3-sonnet-20240229",
"basePrompt": "You are a technical support agent...",
"temperature": 30,
"maxTokens": 3000,
"diversityLevel": 40,
"frequencyPenalty": 40,
"presencePenalty": 15,
"signMessages": true,
"readMessages": true
}
Gradual Adjustment: Start with moderate values and adjust as needed
Test Base Prompt: Verify if instructions are clear and complete
Monitor Performance: Observe responses and adjust parameters for better fit
Backup: Keep a backup of configurations that worked well
Documentation: Record changes and their impacts for future reference
The body is of type object.
Agent updated successfully
Configuração de um agente de IA para atendimento de conversas
Nome de exibição do agente
Provedor do serviço de IA
openai, anthropic, gemini, custom Nome do modelo LLM a ser utilizado
Chave de API para autenticação no provedor
ID único gerado pelo sistema
Prompt base para orientar o comportamento do agente
Número máximo de tokens por resposta
Controle de criatividade (0-100)
0 <= x <= 100Nível de diversificação das respostas
0 <= x <= 100Penalidade para repetição de frases
0 <= x <= 100Penalidade para manter foco no tópico
0 <= x <= 100Adiciona identificação do agente nas mensagens
Marca mensagens como lidas automaticamente
Tamanho máximo permitido para mensagens (caracteres)
Atraso simulado de digitação em segundos
Janela temporal para contexto da conversa
Número máximo de mensagens no contexto
Número mínimo de mensagens para iniciar contexto
Responsável/Proprietário do agente
Data de criação do registro
Data da última atualização