Update Agent
PUT/conversation-ai/agents/:agentId
Updates an existing AI agent's configuration. All fields in the agent configuration can be updated including name, status, actions, and behavior settings.
Request
API Version
v3Conversations AI agent id
- application/json
- Body
- Example (auto)
Bodyrequired
Name of the agent.
Name of the business the agent represents.
Mode of operation for the agent, required if primary is enabled.
offsuggestiveauto-pilotChannels the agent can use.
IGFBSMSWebChatWhatsAppLive_ChatIndicates if this agent is a primary agent.
Wait time before agent responds (max 5 for minutes, 300 for seconds).
Unit for wait time - SECONDS or MINUTES
minutessecondsIndicates if sleep functionality is enabled.
Duration of sleep period (required if sleepEnabled is true). Set to null for indefinite sleep. (max 2880 for minutes, 172800 for seconds, 48 for hours)
Unit of sleep time - HOURS, MINUTES, or SECONDS (required if sleepEnabled is true). Set to null for indefinite sleep.
hoursminutessecondsPersonality traits of the agent.
The goal of the agent.
Instructions for the agent.
Maximum number of messages in auto-pilot mode before requiring human intervention. (max: 100, min: 1)
75Array of knowledge base IDs associated with this agent.
Allow agent to respond to images
falseAllow agent to respond to audio
falseEnable sleep when a manual outbound message is sent.
Enable sleep when a workflow outbound message is sent.
{
"name": "John Doe",
"businessName": "Tech Corp",
"mode": "off",
"channels": [
"IG"
],
"isPrimary": true,
"waitTime": 30,
"waitTimeUnit": "seconds",
"sleepTime": 10,
"sleepTimeUnit": "hours",
"personality": "You re an AI assistant and you are friendly and helpful",
"goal": "You are an AI assistant and you are helping customers with inquiries.",
"instructions": "Provide excellent customer service.",
"autoPilotMaxMessages": 75,
"knowledgeBaseIds": [
"string"
],
"respondToImages": true,
"respondToAudio": true,
"sleepOnManualMessage": false,
"sleepOnWorkflowMessage": false
}
Successful response
- application/json
- Schema
- Example (auto)
Schema
Unique identifier for the agent.
Name of the agent.
Name of the business the agent represents.
Current operating mode of the agent.
offsuggestiveauto-pilotCommunication channels the agent operates on.
IGFBSMSWebChatWhatsAppLive_ChatWait time before agent responds.
Unit for wait time.
minutessecondsIndicates if sleep functionality is enabled.
Duration of sleep period.
Unit of sleep time.
hoursminutessecondsList of actions associated with this agent.
Indicates if this agent is a primary agent.
Maximum number of messages in auto-pilot mode before requiring human intervention.
The goal of the agent.
Personality traits of the agent.
Instructions for the agent.
Array of knowledge base IDs associated with this agent.
Whether the bot sleeps on manual outbound messages.
Whether the bot sleeps on workflow outbound messages.
{
"id": "emp_123",
"name": "John Doe",
"businessName": "Tech Corp",
"mode": "auto-pilot",
"channels": [
"SMS",
"Live_Chat"
],
"waitTime": 30,
"waitTimeUnit": "seconds",
"sleepTime": 2,
"sleepTimeUnit": "hours",
"actions": [
{
"id": "actionId123",
"type": "triggerWorkflow"
}
],
"isPrimary": false,
"autoPilotMaxMessages": 25,
"goal": "Assist customers with inquiries",
"personality": "Friendly and helpful",
"instructions": "Provide excellent customer service",
"knowledgeBaseIds": [
"kb_123",
"kb_456"
],
"sleepOnManualMessage": false,
"sleepOnWorkflowMessage": false
}