Create Agent
POST/voice-ai/agents
Create a new voice AI agent configuration and settings
Request
API Version
v3- application/json
- Body
- Example (auto)
Bodyrequired
Unique identifier for the location where this agent will operate
Display name for the voice AI agent, between 1-40 characters. Default: "My Agent {random 3 digit number}"
Possible values: non-empty and <= 40 characters
Name of the business this agent represents. Default: Uses location name
Possible values: non-empty
Initial greeting spoken when the agent answers calls. Default: Auto generated
Possible values: non-empty and <= 190 characters
Custom instructions defining the agent's behavior and personality. Default: Basic prompt generated automatically
Identifier for the speech synthesis voice from available voice options. Default: Auto generated
Language code for the agent's speech and understanding. Default: "en-US"
en-USpt-BResfrdeitnl-NLmultiTolerance level for caller response delays. Default: "high"
lowmediumhighMaximum call duration in seconds, between 180-900 (3-15 minutes). Default: 300 seconds (5 minutes)
Possible values: >= 180 and <= 900
Enables automatic reminders when callers are silent. Default: true
Seconds to wait before sending idle reminders, between 1-20. Default: 8 seconds
Possible values: >= 1 and <= 20
Phone number for receiving inbound calls to this agent. Default: null
Identifier for the number pool managing phone number allocation. Default: null
Array of workflow IDs to trigger automatically when calls end. Default: []
Possible values: <= 10
Configuration for post-call email notifications to various recipients. Default: []
Time intervals defining when the agent accepts calls, organized by day of week. Default: [] (available 24/7)
IANA timezone identifier affecting working hours and scheduling. Default: Location timezone
Possible values: Value must match regular expression ^[A-Za-z_]+/[A-Za-z_]+$
Prevents this agent from being used as a fallback option. Default: false (Available as backup agent)
Language translation settings including enablement flag and target language code. Rules: (1) translation.enabled can only be true if the agent's language is not en-US; (2) when enabled, translation.language must be either the agent's language or en-US; (3) when enabled, translation.language is required.
{
"locationId": "LOC123456789ABCDEF",
"agentName": "Customer Support Agent",
"businessName": "Acme Corporation",
"welcomeMessage": "Hello! Thank you for calling Acme Corporation. How can I assist you today?",
"agentPrompt": "You are a helpful customer service representative. Always be polite and professional.",
"voiceId": "507f1f77bcf86cd799439011",
"language": "en-US",
"patienceLevel": "low",
"maxCallDuration": 600,
"sendUserIdleReminders": true,
"reminderAfterIdleTimeSeconds": 5,
"inboundNumber": "+1234567890",
"numberPoolId": "pool_507f1f77bcf86cd799439011",
"callEndWorkflowIds": [
"wf_507f1f77bcf86cd799439011",
"wf_507f1f77bcf86cd799439012"
],
"sendPostCallNotificationTo": {
"admins": true,
"allUsers": false,
"contactAssignedUser": false,
"specificUsers": [
"user_507f1f77bcf86cd799439011"
],
"customEmails": [
]
},
"agentWorkingHours": [
{
"dayOfTheWeek": 1,
"intervals": [
{
"startHour": 9,
"startMinute": 0,
"endHour": 17,
"endMinute": 30
}
]
}
],
"timezone": "America/New_York",
"isAgentAsBackupDisabled": false,
"translation": {
"enabled": false,
"language": "es"
}
}
Agent created successfully
- application/json
- Schema
- Example (auto)
Schema
Unique identifier for the created agent
Unique identifier for the location where this agent operates
Display name of the voice AI agent
Name of the business this agent represents
Greeting message spoken when the agent answers calls
Custom instructions defining the agent's behavior
Identifier for the speech synthesis voice being used
Language code for the agent's speech and understanding
Current tolerance level for caller response delays
Maximum call duration in seconds, between 180-900
Possible values: >= 180 and <= 900
Indicates whether automatic idle reminders are enabled
Seconds to wait before sending idle reminders, between 1-20
Possible values: >= 1 and <= 20
Phone number for receiving inbound calls
Identifier for the number pool managing this agent's phone allocation
Array of workflow IDs triggered automatically when calls end
Current post-call notification settings including recipient configuration
Time intervals when the agent accepts calls, organized by day of week
IANA timezone identifier for working hours and scheduling
Indicates whether this agent is excluded from backup scenarios
Current language translation settings including enablement status and target language
{
"id": "507f1f77bcf86cd799439011",
"locationId": "LOC123456789ABCDEF",
"agentName": "Customer Support Agent",
"businessName": "Acme Corporation",
"welcomeMessage": "Hello! Thank you for calling. How can I assist you today?",
"agentPrompt": "You are a helpful customer service representative.",
"voiceId": "507f1f77bcf86cd799439011",
"language": "en-US",
"patienceLevel": "medium",
"maxCallDuration": 600,
"sendUserIdleReminders": true,
"reminderAfterIdleTimeSeconds": 5,
"inboundNumber": "+1234567890",
"numberPoolId": "pool_507f1f77bcf86cd799439011",
"callEndWorkflowIds": [],
"sendPostCallNotificationTo": {
"admins": true,
"allUsers": false,
"contactAssignedUser": false,
"specificUsers": [],
"customEmails": []
},
"agentWorkingHours": [],
"timezone": "America/New_York",
"isAgentAsBackupDisabled": false,
"translation": {
"enabled": false,
"language": "es"
}
}