Skip to main content
AgentsVersion: v3

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.

Authorizations

Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your access token.

Scope:conversation-ai.write
Auth methods:OAuthPrivate Integration
Token type:Sub-Account Token

Request​

Headers

Versionstringrequired

API Version

Available optionsv3
Example:v3

Path Parameters

agentIdstringrequired

Conversations AI agent id

Example:ve9EPM428h8vShlRW1KT

Body

namestring

Name of the agent.

Example:John Doe
businessNamestring

Name of the business the agent represents.

Example:Tech Corp
modestring

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

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.

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

workingHoursobjectnullable

Working-hours schedule for this agent, or null when not configured. Manage it via the /working-hours routes.