PATCH /update-chat-agent/{agent_id}
Changed onUpdate an existing chat agent
Request
- Base URLhttps://api.retellai.com
- AuthHTTP bearer
Path parameters
Unique id of the chat agent to be updated.
Query parameters
Optional version of the API to use for this request. Default to latest version.
Request body
Example request
{
"agent_name": "Jarvis",
"version_title": "Production hotfix",
"auto_close_message": "Thank you for chatting. The conversation has ended.",
"end_chat_after_silence_ms": 3600000,
"language": "en-US",
"webhook_url": "https://webhook-url-here",
"webhook_timeout_ms": 10000,
"data_storage_setting": "everything",
"data_storage_retention_days": 30,
"opt_in_signed_url": true,
"signed_url_expiration_ms": 86400000,
"post_chat_analysis_data": [
{
"type": "string",
"name": "customer_name",
"description": "The name of the customer.",
"examples": [
"John Doe",
"Jane Smith"
]
}
],
"timezone": "America/New_York",
"pre_session_tools": [
{
"response_variables": {
"contact_first_name": "data.first_name"
},
"output_selection": {
"fields": [
"id",
"properties.email"
]
}
}
],
"post_session_tools": [
{
"response_variables": {
"contact_first_name": "data.first_name"
},
"output_selection": {
"fields": [
"id",
"properties.email"
]
}
}
]
}Response
Successfully updated the chat agent.
Example response
{
"agent_id": "oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD",
"base_version": 12,
"agent_name": "Jarvis",
"version_title": "Production hotfix",
"auto_close_message": "Thank you for chatting. The conversation has ended.",
"end_chat_after_silence_ms": 3600000,
"language": "en-US",
"webhook_url": "https://webhook-url-here",
"webhook_timeout_ms": 10000,
"data_storage_setting": "everything",
"data_storage_retention_days": 30,
"opt_in_signed_url": true,
"signed_url_expiration_ms": 86400000,
"post_chat_analysis_data": [
{
"type": "string",
"name": "customer_name",
"description": "The name of the customer.",
"examples": [
"John Doe",
"Jane Smith"
]
}
],
"timezone": "America/New_York",
"pre_session_tools": [
{
"response_variables": {
"contact_first_name": "data.first_name"
},
"output_selection": {
"fields": [
"id",
"properties.email"
]
}
}
],
"post_session_tools": [
{
"response_variables": {
"contact_first_name": "data.first_name"
},
"output_selection": {
"fields": [
"id",
"properties.email"
]
}
}
],
"last_modification_timestamp": 1703413636133
}Changes
- warning
added the new
gpt-6.1-terraenum value to the////response property for the response status - info
added the new
gpt-6.1-terraenum value to the request property
- warning
- info
added the new optional request property
/////// - info
added the new optional request property
/////// - info
added the new optional request property
/////// - info
added the new optional request property
/////// - info
added the new optional request property
/////// - info
added the new optional request property
/////// - info
added the optional property
///////////to the response with the status - info
added the optional property
///////////to the response with the status - info
added the optional property
///////////to the response with the status - info
added the optional property
///////////to the response with the status - info
added the optional property
///////////to the response with the status - info
added the optional property
///////////to the response with the status
- info