Skip to main content
Version: 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.

Request

Version stringrequired

API Version

Available optionsv3
application/json

Bodyrequired

    namestringrequired

    Name of the agent.

    businessNamestring

    Name of the business the agent represents.

    modestring

    Mode of operation - OFF, SUGGESTIVE, or AUTO_PILOT

    Available optionsoffsuggestiveauto-pilot
    channelsstring[]

    Communication channels the agent can operate on

    Available optionsIGFBSMSWebChatWhatsAppLive_Chat
    isPrimaryboolean

    Indicates if this agent is a primary agent.

    Default value: false
    waitTimenumber

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

    Default value: 2
    waitTimeUnitstring

    Unit for wait time - SECONDS or MINUTES

    Available optionsminutesseconds
    sleepEnabledbooleandeprecated

    Indicates if sleep functionality is enabled.

    Default value: 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)

    sleepTimeUnitstring

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

    Available optionshoursminutesseconds
    personalitystringrequired

    Personality traits of the agent.

    goalstringrequired

    The goal of the agent.

    instructionsstringrequired

    Instructions for the agent.

    autoPilotMaxMessagesnumber

    Maximum number of messages in auto-pilot mode before requiring human intervention. (max: 100, min: 1)

    Default value: 75
    knowledgeBaseIdsstring[]

    Array of knowledge base IDs associated with this agent.

    respondToImagesboolean

    Allow agent to respond to images

    Default value: false
    respondToAudioboolean

    Allow agent to respond to audio

    Default value: false
    sleepOnManualMessageboolean

    Enable sleep when a manual outbound message is sent.

    sleepOnWorkflowMessageboolean

    Enable sleep when a workflow outbound message is sent.

application/json

Successful response

Schema
    idstringrequired

    Unique identifier for the agent.

    namestringrequired

    Name of the agent.

    businessNamestring

    Name of the business the agent represents.

    modestringrequired

    Current operating mode of the agent.

    Available optionsoffsuggestiveauto-pilot
    channelsstring[]required

    Communication channels the agent operates on.

    Available optionsIGFBSMSWebChatWhatsAppLive_Chat
    waitTimenumberrequired

    Wait time before agent responds.

    waitTimeUnitstringrequired

    Unit for wait time.

    Available optionsminutesseconds
    sleepEnabledbooleanrequireddeprecated

    Indicates if sleep functionality is enabled.

    sleepTimenumber

    Duration of sleep period.

    sleepTimeUnitstring

    Unit of sleep time.

    Available optionshoursminutesseconds
    actionsobject[]required

    List of actions associated with this agent.

    isPrimarybooleanrequired

    Indicates if this agent is a primary agent.

    autoPilotMaxMessagesnumberrequired

    Maximum number of messages in auto-pilot mode before requiring human intervention.

    goalstring

    The goal of the agent.

    personalitystring

    Personality traits of the agent.

    instructionsstring

    Instructions for the agent.

    knowledgeBaseIdsstring[]

    Array of knowledge base IDs associated with this agent.

    sleepOnManualMessageboolean

    Whether the bot sleeps on manual outbound messages.

    sleepOnWorkflowMessageboolean

    Whether the bot sleeps on workflow outbound messages.