Update an existing chat agent
patch/update-chat-agent/{agent_id}
Path parameters
agent_idstring required
Example:16b980523634a6dc504898cda492e939
Unique id of the chat agent to be updated.
Query parameters
Example:1
Optional version of the API to use for this request. Default to latest version.
Request body
Example request
{
"agent_name": "Jarvis",
"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"
]
}
],
"analysis_successful_prompt": "The agent finished the task and the call was complete without being cutoff.",
"analysis_summary_prompt": "Summarize the call in a few sentences.",
"analysis_user_sentiment_prompt": "Evaluate the user's sentiment based on their tone and satisfaction level.",
"timezone": "America/New_York"
}Response
Successfully updated the chat agent.
Example response
{
"agent_id": "oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD",
"base_version": 12,
"agent_name": "Jarvis",
"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"
]
}
],
"analysis_successful_prompt": "The agent finished the task and the call was complete without being cutoff.",
"analysis_summary_prompt": "Summarize the call in a few sentences.",
"analysis_user_sentiment_prompt": "Evaluate the user's sentiment based on their tone and satisfaction level.",
"timezone": "America/New_York",
"last_modification_timestamp": 1703413636133
}