Agentic - Agents
Update agent configuration
Update any aspect of an AI agent's configuration including behavior, settings, and integrations. All fields are optional - only provide fields you want to change.
What You Can Update:
- name: Agent display name
- systemPrompt: Core behavior instructions
- language: Supported languages
- agentPhoneSettings: Voice, model, transcription, VoIP connections, transfer settings
- agentEmailSettings: Email handling configuration
- knowledgeFileIds: Connect/disconnect knowledge bases
- workflowsIds: Connect/disconnect workflow automations
- appointmentSettings: Calendar sync and booking configuration
- dynamicVariables: Custom variables for personalization
- nodes / connections: Flow configuration (node-based agents only)
- integrations: External system connections (CRM, calendar, etc.)
Common Update Scenarios:
- Refine agent behavior by updating system prompt
- Connect agent to VoIP phone via agentPhoneSettings.voipConnectionIds
- Add knowledge bases for better responses
- Change voice or language settings
- Enable/disable appointment booking
- Configure post-call analysis and notifications
- Update transfer settings and hold music
Response: Returns the complete updated agent configuration with all settings.
put/api/v1/agentic/agents/:id
Request
- Base URL: https://api.voicelogica.ai
- URL: https://api.voicelogica.ai/api/v1/agentic/agents/:id
- Auth: API key in header x-api-key
Headers
x-api-keystring required
Your API key for authentication. Required for all endpoints.
x-company-idstring
Optional company ID for resellers. When provided, the API request will operate on behalf of the specified subsidiary company. The API key must have access to the specified company.
Request body
Example request
{
"name": "Customer Support Agent",
"agentType": "prompt-based",
"systemPrompt": "You are a helpful customer support assistant. Always be polite and provide accurate information.",
"language": "en-US",
"secondaryLanguages": [
{
"language": "es-ES",
"type": "other_agent",
"agentId": "agent-123e4567-e89b-12d3-a456-426614174000",
"voiceConfig": {
"voiceProvider": "elevenlabs",
"voiceId": "21m00Tcm4TlvDq8ikWAM"
},
"enabled": true
}
],
"knowledgeFileIds": [
"kb-123",
"kb-456"
],
"playWaitMusicOnDuringCallTools": true,
"workflowsIds": [
"workflow-123",
"workflow-456"
],
"allowedToCopy": "sameCompany",
"agentEmailSettings": {
"model": {
"completionProvider": "openai",
"model": "gpt-4o-mini",
"temperature": 0.5,
"maxCompletionTokens": 500
},
"systemPrompt": "You are a helpful email assistant. Always be professional and courteous.",
"functionCallIds": [
"fc-123",
"fc-456"
],
"mailboxIds": [
"507f1f77bcf86cd799439011"
],
"ccOptions": [
"manager@company.com"
],
"powerUps": [
"appointment-booking"
],
"displayBusinessDetails": {
"name": true,
"address": true,
"website": true,
"email": true,
"phone": true,
"operatingHours": true,
"isOpenNow": true,
"utcOffset": true,
"wheelchairAccessibleEntrance": false
}
},
"agentPhoneSettings": {
"model": {
"completionProvider": "openai",
"model": "gpt-5.6-terra",
"temperature": 0.5,
"maxCompletionTokens": 500
},
"systemPrompt": "You are a helpful customer support assistant.",
"voiceConfig": {
"voiceProvider": "google",
"voiceId": "en-US-Wavenet-1",
"speed": 1,
"backgroundSound": "none",
"stability": 0.5,
"similarity_boost": 0.5,
"backgroundVolume": 0.2
},
"phoneFirstMessageAiGenerated": true,
"transcriptionConfig": {
"transcriptionProvider": "google",
"silenceDurationMs": 1000,
"enhanced": false
},
"voipConnectionIds": [
"voip-123"
],
"connectDynamically": false,
"firstMessageSenderOnOutgoingCall": "agent",
"saveRecording": true,
"transferType": "warm"
},
"appointmentSettings": {
"parameters": [
{
"name": "parameterName",
"displayName": "Parameter Name",
"index": 0,
"description": "A sample parameter",
"aiGenerated": false,
"type": "string",
"required": true,
"value": "default value",
"isConstantForContactEntity": false
}
]
},
"passwordTries": 3,
"externalDial": 1234567890,
"internalDial": "4002",
"nodes": [
{
"id": "1",
"name": "Welcome Message",
"position": {
"x": 100,
"y": 100
},
"outputs": {
"default": [
{
"node": "2",
"output": "default"
}
]
},
"inputs": {},
"className": "conversation-node",
"data": {
"nodeType": "conversation",
"nodeTitle": "Welcome Message",
"transitions": [
{
"type": "success",
"label": "Continue to next step"
}
]
},
"html": "<div>Welcome Message</div>",
"typenode": false
}
],
"connections": [
{
"node": "2",
"input": "default",
"output": "default",
"label": "Continue"
}
],
"parameters": [
{
"name": "parameterName",
"displayName": "Parameter Name",
"index": 0,
"description": "A sample parameter",
"aiGenerated": false,
"type": "string",
"required": true,
"value": "default value",
"isConstantForContactEntity": false
}
],
"dataRetentionDays": 30,
"dataRetentionPolicy": "all"
}Response
Agent updated successfully
Example response
{
"id": "507f1f77bcf86cd799439011",
"createdAt": "2024-01-15T10:30:00.000Z",
"active": true,
"createdBy": "John Doe",
"createdById": "123",
"modifiedAt": "2024-01-15T10:30:00.000Z",
"modifiedBy": "Jane Doe",
"modifiedById": "456",
"companyId": "507f1f77bcf86cd799439012",
"name": "Customer Support Agent",
"agentType": "prompt-based",
"systemPrompt": "You are a helpful customer support assistant. Always be polite and provide accurate information.",
"dynamicVariables": [
{
"name": "company_name",
"value": "{{company_name}}"
}
],
"language": "en-US",
"secondaryLanguages": [
{
"language": "es-ES",
"type": "other_agent",
"agentId": "agent-123e4567-e89b-12d3-a456-426614174000",
"enabled": true,
"defaultContries": [
"Greece",
"United States"
]
},
{
"language": "fr-FR",
"type": "other_voice",
"voiceConfig": {
"voiceProvider": "elevenlabs",
"voiceId": "21m00Tcm4TlvDq8ikWAM"
},
"enabled": true,
"defaultContries": [
"Greece",
"United States"
]
}
],
"knowledgeFileIds": [
"kb-123",
"kb-456"
],
"workflowsIds": [
"workflow-123",
"workflow-456"
],
"tools": [
{
"enabled": true,
"name": "send_sms",
"prompt": "Send an SMS to the user",
"type": "system"
}
],
"allowedToCopy": "sameCompany",
"passwordTries": 3,
"externalDial": 1234567890,
"internalDial": "4002",
"knowledgeFiles": [
{
"id": "kb-123",
"name": "Product Manual",
"description": "Complete product documentation"
}
],
"workflows": [
{
"id": "workflow-123",
"name": "Send Email Notification",
"description": "Automated email notification workflow",
"triggers": [
{
"nodeType": "onCallStart",
"nodeTitle": "Call Start Trigger",
"triggerConfig": {
"enabled": true,
"triggerType": "onCallStart",
"description": "Trigger when a new call starts"
}
}
],
"nodes": [],
"files": [],
"parameters": [
{
"name": "company_name",
"value": "{{company_name}}",
"type": "string",
"required": true,
"aiGenerated": true
}
],
"dataRetentionDays": 30,
"dataRetentionPolicy": "all"
}
]
}Changes
No recorded changes to this operation across all 2 revisions of this API.