Skip to main content
PUT
cURL

Autorizaciones

x-api-key
string
header
requerido

Encabezados

x-api-key
string
requerido

API key for authentication

Parámetros de ruta

agentId
string
requerido

The ID of the agent to update

Cuerpo

application/json

Update agent configuration

name
string

The name of the agent in our system. Only used for your own reference.

person_name
string

The name of the agent in the call.

voice_id
string

The ID of the voice to use [Still working on this]

language
string

Specifies what language (and dialect) the speech recognition will operate in. For instance, selecting en-GB optimizes speech recognition for British English. If unset, will use default value en-US. Select multi for multilingual support, currently this supports Spanish and English.

Available options: en-US, en-IN, en-GB, de-DE, es-ES, es-419, hi-IN, ja-JP, pt-PT, pt-BR, fr-FR, zh-CN, ru-RU, it-IT, ko-KR, nl-NL, pl-PL, tr-TR, vi-VN, multi

ambient_sound
enum<string> | null

If set, will add ambient environment sound to the call to make experience more realistic. Currently supports the following options:

Set to null to remove ambient sound from this agent.

Available options: coffee-shop, convention-hall, summer-outdoor, mountain-outdoor, static-noise, call-center

Opciones disponibles:
coffee-shop,
convention-hall,
summer-outdoor,
mountain-outdoor,
static-noise,
call-center,
null
interruption_sensitivity
number

Controls how sensitive the agent is to user interruptions. Value ranging from [0.1,1]. Lower value means it will take longer / more words for user to interrupt agent, while higher value means it's easier for user to interrupt agent.

If unset, default value 1 will apply. When this is set to 0.1, agent would never be interrupted.

webhook_url
string

URL for webhook notifications. They will be sent when the agent finishes a call, from API calls, Inbound calls, Campaigns calls or Widgets calls.

conversation_purpose
string

The purpose of conversations for this agent

prompt
string

The prompt template for the agent

voice_speed
number

Controls speed of voice. Value ranging from [0.5,2]. Lower value means slower speech, while higher value means faster speech rate. If unset, default value 1 will apply.

voice_temperature
number

Controls how stable the voice is. Value ranging from [0,2]. Lower value means more stable, and higher value means more variant speech generation. If unset, default value 1 will apply.

volume
number

If set, will control the volume of the agent. Value ranging from [0,2]. Lower value means quieter agent speech, while higher value means louder agent speech. If unset, default value 1 will apply.

post_call_analysis_data
(object | null)[]

Configuration for post-call analysis

tools
(object | null)[]

List of tools available to the agent

Respuesta

Agent updated successfully

statusCode
integer

HTTP status code

data
object