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.
Request
API Version
v3- application/json
- Body
- Example (auto)
Bodyrequired
Name of the agent.
Name of the business the agent represents.
Mode of operation - OFF, SUGGESTIVE, or AUTO_PILOT
offsuggestiveauto-pilotCommunication channels the agent can operate on
IGFBSMSWebChatWhatsAppLive_ChatIndicates if this agent is a primary agent.
falseWait time before agent responds (max 5 for minutes, 300 for seconds)
2Unit for wait time - SECONDS or MINUTES
minutessecondsIndicates if sleep functionality is enabled.
falseDuration 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": "auto-pilot",
"channels": [
"SMS",
"Live_Chat",
"WhatsApp"
],
"isPrimary": true,
"waitTime": 2,
"waitTimeUnit": "seconds",
"sleepTime": 2,
"sleepTimeUnit": "hours",
"personality": "Friendly and helpful",
"goal": "Assist customers with inquiries.",
"instructions": "Provide 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
}