Skip to main content
AgentsVersion: v3

Create an Agent

POST/conversation-ai/agents

Creates a new AI agent for the location. The agent will be created with the specified configuration including name, role, 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

Body

namestringrequired

Name of the agent.

Example:John Doe
businessNamestring

Name of the business the agent represents.

Example:Tech Corp
modestring

Mode of operation - OFF, SUGGESTIVE, or AUTO_PILOT

Available optionsoffsuggestiveauto-pilot
Example:auto-pilot
channelsstring[]

Communication channels the agent can operate on

Available optionsIGFBSMSWebChatWhatsAppLive_ChatEmail
Example:["SMS","Live_Chat","WhatsApp"]
isPrimaryboolean

Indicates if this agent is a primary agent.

Default:false
Example:true
waitTimenumber

Wait time before agent responds (max 5 for minutes, 300 for seconds)

Default:2
Example:2
waitTimeUnitstring

Unit for wait time - SECONDS or MINUTES

Available optionsminutesseconds
Example:seconds
sleepEnabledbooleandeprecated

Indicates if sleep functionality is enabled.

Default:false
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:2
sleepTimeUnitstring

Unit of sleep time - HOURS, MINUTES, or SECONDS (required if sleepEnabled is true). Set to null for indefinite sleep.

Available optionshoursminutesseconds
Example:hours
personalitystringrequired

Personality traits of the agent.

Example:Friendly and helpful
goalstringrequired

The goal of the agent.

Example:Assist customers with inquiries.
instructionsstringrequired

Instructions for the agent.

Example:Provide 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.

autoPilotMaxMessagesnumber

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.