Skip to content

HighLevel: Create Agent — voice Ai create Agent

HighLevel voiceAi.createAgent: arguments, response, policy and SDK examples.

← Voice AI operations · Get started

Operation gohighlevel.voice_ai_create_agent

Provider route: POST /voice-ai/agents. Alter supplies the connection’s credentials and routing.

Install @alter-ai/sdk @alter-ai/gohighlevel with npm, or alter-sdk-gohighlevel with pip. Supply your connected customer’s grant ID and the arguments described below.

import { App } from "@alter-ai/sdk";
import { HighLevelIntegration } from "@alter-ai/gohighlevel";
async function execute(input: Parameters<HighLevelIntegration["voiceAi"]["createAgent"]>[0]) {
const app = new App({ apiKey: process.env.ALTER_API_KEY! });
try {
const provider = new HighLevelIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! });
const call = await provider.voiceAi.createAgent(input);
const result = await call.wait();
return result.bodyJson();
} finally {
await app.close();
}
}
import os
from alter_sdk import App
from alter_sdk_gohighlevel import HighLevelIntegration
async def execute(arguments):
async with App(api_key=os.environ["ALTER_API_KEY"]) as app:
provider = HighLevelIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]})
call = await provider.voice_ai.create_agent(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
bodyModelRequired within parentExpand Create Agent — voice Ai create Agent — request body — body

Referenced models: Create Agent — voice Ai create Agent — request body — body

Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.

FieldTypePresenceDescription and constraints
$ModelRootExpand Patch Agent — response body

Referenced models: Patch Agent — response body

4 more schemas are linked from the tables above, on the schema pages.

Create Agent — voice Ai create Agent — request body — body
FieldTypePresenceDescription and constraints
$objectRoot
agentNamestringOptionalDisplay name for the voice AI agent, between 1-40 characters. Default: "My Agent {random 3 digit number}"
Maximum length: 40
Minimum length: 1
agentPromptstringOptionalCustom instructions defining the agent's behavior and personality. Default: Basic prompt generated automatically
agentWorkingHoursarrayOptionalTime intervals defining when the agent accepts calls, organized by day of week. Default: [] (available 24/7)
agentWorkingHours[]ModelEach itemExpand Patch Agent — request body — body agent Working Hours item
businessNamestringOptionalName of the business this agent represents. Default: Uses location name
Minimum length: 1
callEndWorkflowIdsarrayOptionalArray of workflow IDs to trigger automatically when calls end. Default: []
Maximum items: 10
callEndWorkflowIds[]stringEach item
inboundNumberstringOptionalPhone number for receiving inbound calls to this agent. Default: null
isAgentAsBackupDisabledbooleanOptionalPrevents this agent from being used as a fallback option. Default: false (Available as backup agent)
languagestringOptionalLanguage code for the agent's speech and understanding. Default: "en-US"
One of: en-US, pt-BR, es, fr, de, it, nl-NL, multi
locationIdstringRequired within parentUnique identifier for the location where this agent will operate
maxCallDurationnumberOptionalMaximum call duration in seconds, between 180-900 (3-15 minutes). Default: 300 seconds (5 minutes)
Maximum: 900
Minimum: 180
numberPoolIdstringOptionalIdentifier for the number pool managing phone number allocation. Default: null
patienceLevelstringOptionalTolerance level for caller response delays. Default: "high"
One of: low, medium, high
reminderAfterIdleTimeSecondsnumberOptionalSeconds to wait before sending idle reminders, between 1-20. Default: 8 seconds
Maximum: 20
Minimum: 1
sendPostCallNotificationToJSONOptionalConfiguration for post-call email notifications to various recipients. Default: []
sendPostCallNotificationTo (allOf 1)ModelAll variants applyExpand Patch Agent — request body — body send Post Call Notification To admins, all Users, contact Assigned User, custom Emails, specific Users
sendUserIdleRemindersbooleanOptionalEnables automatic reminders when callers are silent. Default: true
timezonestringOptionalIANA timezone identifier affecting working hours and scheduling. Default: Location timezone
Pattern: ^[A-Za-z_]+/[A-Za-z_]+$
translationJSONOptionalLanguage 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.
translation (allOf 1)ModelAll variants applyExpand Patch Agent — request body — body translation enabled, language
voiceIdstringOptionalIdentifier for the speech synthesis voice from available voice options. Default: Auto generated
welcomeMessagestringOptionalInitial greeting spoken when the agent answers calls. Default: Auto generated
Maximum length: 190
Minimum length: 1

Referenced models: Patch Agent — request body — body agent Working Hours item, Patch Agent — request body — body send Post Call Notification To admins, all Users, contact Assigned User, custom Emails, specific Users, Patch Agent — request body — body translation enabled, language

Patch Agent — response body
FieldTypePresenceDescription and constraints
$objectRoot
agentNamestringRequired within parentDisplay name of the voice AI agent
agentPromptstringRequired within parentCustom instructions defining the agent's behavior
agentWorkingHoursarrayOptionalTime intervals when the agent accepts calls, organized by day of week
agentWorkingHours[]ModelEach itemExpand Patch Agent — response body — agent Working Hours item
businessNamestringRequired within parentName of the business this agent represents
callEndWorkflowIdsarrayOptionalArray of workflow IDs triggered automatically when calls end
callEndWorkflowIds[]stringEach item
idstringRequired within parentUnique identifier for the created agent
inboundNumberstringOptionalPhone number for receiving inbound calls
isAgentAsBackupDisabledbooleanRequired within parentIndicates whether this agent is excluded from backup scenarios
languagestringRequired within parentLanguage code for the agent's speech and understanding
locationIdstringRequired within parentUnique identifier for the location where this agent operates
maxCallDurationJSONRequired within parent
maxCallDuration (anyOf 1)numberAlternativeMaximum call duration in seconds, between 180-900
Maximum: 900
Minimum: 180
maxCallDuration (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
numberPoolIdstringOptionalIdentifier for the number pool managing this agent's phone allocation
patienceLevelstringRequired within parentCurrent tolerance level for caller response delays
reminderAfterIdleTimeSecondsJSONRequired within parent
reminderAfterIdleTimeSeconds (anyOf 1)numberAlternativeSeconds to wait before sending idle reminders, between 1-20
Maximum: 20
Minimum: 1
reminderAfterIdleTimeSeconds (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
sendPostCallNotificationToJSONOptionalCurrent post-call notification settings including recipient configuration
sendPostCallNotificationTo (allOf 1)ModelAll variants applyExpand Patch Agent — response body — send Post Call Notification To admins, all Users, contact Assigned User, custom Emails, specific Users
sendUserIdleRemindersbooleanRequired within parentIndicates whether automatic idle reminders are enabled
timezonestringRequired within parentIANA timezone identifier for working hours and scheduling
translationJSONOptionalCurrent language translation settings including enablement status and target language
translation (allOf 1)ModelAll variants applyExpand Patch Agent — response body — translation enabled, language
voiceIdstringRequired within parentIdentifier for the speech synthesis voice being used
welcomeMessagestringRequired within parentGreeting message spoken when the agent answers calls

Referenced models: Patch Agent — response body — agent Working Hours item, Patch Agent — response body — send Post Call Notification To admins, all Users, contact Assigned User, custom Emails, specific Users, Patch Agent — response body — translation enabled, language

Patch Agent — request body — body agent Working Hours item
FieldTypePresenceDescription and constraints
$objectRoot
dayOfTheWeeknumberRequired within parentDay of the week for this working hours configuration (Monday=1 to Sunday=7)
One of: 1, 2, 3, 4, 5, 6, 7
intervalsarrayRequired within parentArray of time intervals when the agent is available on this day
intervals[]ModelEach itemExpand Patch Agent — request body — body agent Working Hours item intervals item

Referenced models: Patch Agent — request body — body agent Working Hours item intervals item

Patch Agent — request body — body send Post Call Notification To admins, all Users, contact Assigned User, custom Emails, specific Users
FieldTypePresenceDescription and constraints
$objectRoot
adminsbooleanRequired within parentEnables post-call notifications to all admin users in the location. Default: true
allUsersbooleanRequired within parentEnables post-call notifications to all users in the location. Default: false
contactAssignedUserbooleanRequired within parentEnables post-call notifications to the user assigned to the contact. Default: false
customEmailsarrayRequired within parentArray of custom email addresses to receive post-call notifications. Default: []
customEmails[]stringEach item
specificUsersarrayRequired within parentArray of specific user IDs to receive post-call notifications. Default: []
specificUsers[]stringEach item
Patch Agent — request body — body translation enabled, language
FieldTypePresenceDescription and constraints
$objectRoot
enabledbooleanRequired within parentEnables language translation for agent conversations. Default: false
languagestringOptionalTarget language code for translation (e.g., "es" for Spanish, "fr" for French).
Patch Agent — response body — translation enabled, language
FieldTypePresenceDescription and constraints
$objectRoot
enabledbooleanOptionalWhether translation is enabled
languagestringOptionalTranslation language code

SDK function policy ID: gohighlevel.voice_ai_create_agent. Catalog operation: voice-ai.create-agent. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.

Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.

Required provider scopes: ["voice-ai-agents.write"]

Pinned headers: {"Version": "v3"}

Official provider source

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.