Updates an existing AI agent's configuration. All fields in the agent configuration can be updated including name, status, actions, and behavior settings.
Authorizations
Authorizationstringheaderrequired
Bearer authentication header of the form Bearer <token>, where <token> is your access token.
Mode of operation for the agent, required if primary is enabled.
Available optionsoffsuggestiveauto-pilot
Example:auto-pilot
channelsstring[]
Channels the agent can use.
Available optionsIGFBSMSWebChatWhatsAppLive_ChatEmail
Example:["SMS","Live_Chat"]
isPrimaryboolean
Indicates if this agent is a primary agent.
Example:true
waitTimenumber
Wait time before agent responds (max 5 for minutes, 300 for seconds).
Example:30
waitTimeUnitstring
Unit for wait time - SECONDS or MINUTES
Available optionsminutesseconds
Example:seconds
sleepEnabledbooleandeprecated
Indicates if sleep functionality is enabled.
Example:false
sleepOnManualMessageboolean
Enable sleep when a manual outbound message is sent.
Example:false
sleepOnWorkflowMessageboolean
Enable sleep when a workflow outbound message is sent.
Example:false
sleepTimenumber
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)
Example:10
sleepTimeUnitstring
Unit of sleep time - HOURS, MINUTES, or SECONDS (required if sleepEnabled is true). Set to null for indefinite sleep.
Available optionshoursminutesseconds
Example:hours
personalitystring
Personality traits of the agent.
Example:You re an AI assistant and you are friendly and helpful
goalstring
The goal of the agent.
Example:You are an AI assistant and you are helping customers with inquiries.
instructionsstring
Instructions for the agent.
Example:Provide excellent customer service.
fullPromptstring
Complete agent prompt. When set and non-empty, used as the source of truth at generation time instead of personality, goal, and instructions.
autoPilotMaxMessagesnumberrequired
Maximum number of messages in auto-pilot mode before requiring human intervention. (max: 100, min: 1)
Default:75
Example:75
knowledgeBaseIdsstring[]
Array of knowledge base IDs associated with this agent.
Example:["kb_abc123","kb_def456"]
respondToImagesboolean
Allow agent to respond to images
Default:false
Example:true
respondToAudioboolean
Allow agent to respond to audio
Default:false
Example:true
Response
application/json
Successful response
idstringrequired
Unique identifier for the agent.
Example:emp_123
namestringrequired
Name of the agent.
Example:John Doe
businessNamestring
Name of the business the agent represents.
Example:Tech Corp
modestringrequired
Current operating mode of the agent.
Available optionsoffsuggestiveauto-pilot
Example:auto-pilot
channelsstring[]required
Communication channels the agent operates on.
Available optionsIGFBSMSWebChatWhatsAppLive_ChatEmail
Example:["SMS","Live_Chat"]
waitTimenumberrequired
Wait time before agent responds.
Example:30
waitTimeUnitstringrequired
Unit for wait time.
Available optionsminutesseconds
Example:seconds
sleepEnabledbooleanrequireddeprecated
Indicates if sleep functionality is enabled.
Example:false
sleepOnManualMessageboolean
Whether the bot sleeps on manual outbound messages.
Example:false
sleepOnWorkflowMessageboolean
Whether the bot sleeps on workflow outbound messages.
Example:false
sleepTimenumber
Duration of sleep period.
Example:2
sleepTimeUnitstring
Unit of sleep time.
Available optionshoursminutesseconds
Example:hours
emailWaitTimenumber
Email-specific wait time (max 12 hours).
Example:1
emailWaitTimeUnitstring
Unit for email wait time.
Available optionssecondsminuteshours
Example:hours
emailSettingsobject
Email channel formatting settings.
actionsobject[]required
List of actions associated with this agent.
actions[].idstringrequired
Unique identifier for the action.
Example:actionId123
actions[].typestringrequired
type of action.
Available optionstriggerWorkflowupdateContactFieldappointmentBookingstopBothumanHandOveradvancedFollowuptransferBotcustomApi
Example:triggerWorkflow
isPrimarybooleanrequired
Indicates if this agent is a primary agent.
Example:false
autoPilotMaxMessagesnumberrequired
Maximum number of messages in auto-pilot mode before requiring human intervention.
Example:25
goalstring
The goal of the agent.
Example:Assist customers with inquiries
personalitystring
Personality traits of the agent.
Example:Friendly and helpful
instructionsstring
Instructions for the agent.
Example:Provide excellent customer service
fullPromptstring
Complete agent prompt when stored; when set and non-empty, used as the source of truth at generation time.
knowledgeBaseIdsstring[]
Array of knowledge base IDs associated with this agent.
Example:["kb_123","kb_456"]
knowledgeBaseTriggersobject[]
Knowledge base trigger configurations
knowledgeBaseTriggers[].idstringrequired
Unique trigger ID (UUID v4)
Example:550e8400-e29b-41d4-a716-446655440000
knowledgeBaseTriggers[].modestringrequired
"all" matches every query; "custom" is conditional
Free-text condition (empty string for "all" mode, required for "custom")
Example:When the customer asks about pricing or billing
knowledgeBaseTriggers[].prioritynumberrequired
Priority (lower number = higher priority). Custom-mode triggers must use unique values in 1-3; priority 4 is reserved for the all-mode fallback trigger.
Example:2
workingHoursobjectnullable
Working-hours schedule for this agent, or null when not configured. Manage it via the /working-hours routes.
workingHours.enabledbooleanrequired
Master toggle for working hours.
Example:false
workingHours.channelsstring[]required
Channels the gate applies to. Must be non-empty when enabled.
Available optionsSMSEmailWhatsAppIGFBWebChatLive_ChatTIKTOK