AI Agent
  • 18 Sep 2025
  • 5 Minutes to read
  • Dark
    Light

AI Agent

  • Dark
    Light

Article summary

AI Agent

AI Agent JSON Format

AI Agent is represented as simple flat JSON objects with the following keys:

NameTypeDescription
idguidId of the AI agent.
siteIdintegerSite Id.
namestringName of the AI agent.
descriptionstringDescription of the AI agent.
toneenumTone of communication used by the AI agent. Allowed values are: friendly, neutral, professional, humorous.
isCustomAvatarboolWhether to use a custom avatar (true) or a system avatar (false).
customizeAvatarstringURL of the custom avatar image. Required when isCustomAvatar is true.
systemAvatarIdguidID of the system avatar. Required when isCustomAvatar is false.
languagestringPrimary language code for the AI agent (e.g., "en" for English).
channelstringCommunication channel for the AI agent (e.g., "Live Chat").
paymentStatusenumCurrent payment status. Allowed values are: paid, trial.
avatarstringURL of the avatar.
instructionsstringInstructions for the AI agent.

Get the list of AI Agents

GET aiagent/aiAgents

Parameters:

NameTypeinRequiredDescription
siteIdintegerqueryyesSite Id.
pageSizeintegerquerynoNumber of ai agents to return per page.
pageIndexintegerquerynoPage number to retrieve. Default is 1.

Response:

An array of AI Agent

Example

Sample Request:

curl https://api11.comm100.io/aiagent/aiAgents?siteId=10000 \ 
    -X GET \ 
    -H 'Authorization: Bearer {access_token}'

Response:
HTTP/1.1 200 OK

[
    {
        "id": "a12b3828-4417-4075-9426-3c6aa222d676",
        "name": "common_agent",
        "description": "",
        "tone": "friendly",
        "isCustomAvatar": false,
        "systemAvatarId": "aaa40b08-1b98-489b-99f1-f4af129a848c",
        "language": "en",
        "channel": "Live Chat",
        "lastUpdatedTime": "2025-03-03T09:05:43.13Z",
        "paymentStatus": "paid",
        "avatar": "https://api11.comm100.io/aiagent/chatbots/a12b3828-4417-4075-9426-3c6aa222d676/avatar?siteId=10000&version=b07a408a09b7eaeaa740b57fdb4622e3&signature=uIQLEM1ZTEDCie-Nvztj7-pTOuY",
        "instructions": "-   Provide accurate and helpful responses to visitors' questions.\n-   Be friendly, professional, and concise in all interactions.\n-   Avoid answering questions by your own knowledge.\n-   Avoid providing personal opinions or unverified information."
    }
]

Get a single AI Agent

GET aiagent/aiAgents/{id}

Parameters:

NameTypeinRequiredDescription
siteIdintegerqueryyesSite Id.
idguidpathyesId of the AI agent.

Response:

AI Agent

Example

Sample Request:

curl https://api11.comm100.io/aiagent/aiAgents/f9928d68-92e6-4487-a2e8-8234fc9d1f48?siteId=10000 \ 
    -X GET \ 
    -H 'Authorization: Bearer {access_token}'

Response:
HTTP/1.1 200 OK

{
    "id": "a12b3828-4417-4075-9426-3c6aa222d676",
    "name": "common_agent",
    "description": "",
    "tone": "friendly",
    "isCustomAvatar": false,
    "systemAvatarId": "aaa40b08-1b98-489b-99f1-f4af129a848c",
    "language": "en",
    "channel": "Live Chat",
    "lastUpdatedTime": "2025-03-03T09:05:43.13Z",
    "paymentStatus": "paid",
    "avatar": "https://api11.comm100.io/aiagent/chatbots/a12b3828-4417-4075-9426-3c6aa222d676/avatar?siteId=10000&version=b07a408a09b7eaeaa740b57fdb4622e3&signature=uIQLEM1ZTEDCie-Nvztj7-pTOuY",
    "instructions": "-   Provide accurate and helpful responses to visitors' questions.\n-   Be friendly, professional, and concise in all interactions.\n-   Avoid answering questions by your own knowledge.\n-   Avoid providing personal opinions or unverified information."
}

Create a new AI Agent

POST aiagent/aiAgents

Parameters:

NameTypeinRequiredDescription
siteIdintegerqueryyesSite Id.
namestringbodyyesName of the AI agent.
descriptionstringbodynoDescription of the AI agent.
toneenumbodynoTone of communication used by the AI agent. Allowed values are: friendly, neutral, professional, humorous.
isCustomAvatarboolbodynoWhether to use a custom avatar (true) or a system avatar (false).
customizeAvatarstringbodynoRL of the custom avatar image. Required when isCustomAvatar is true.
systemAvatarIdguidbodynoID of the system avatar. Required when isCustomAvatar is false.
languagestringbodynoPrimary language code for the AI agent (e.g., "en" for English).
channelstringbodynoCommunication channel for the AI agent (e.g., "Live Chat").
paymentStatusenumbodynoCurrent payment status. Allowed values are: paid, trial.
instructionsstringbodynoInstructions for the AI agent.

Response:

AI Agent

Example

Sample Request:

curl https://api11.comm100.io/aiagent/aiAgents \ 
    -X POST \ 
    -H 'Authorization: Bearer {access_token}' \ 
    -H 'Content-Type: application/json' \ 
    -D '{"siteId":10000,"name":"common-agent","description":"","tone":"friendly","language":"en","systemAvatarId":"aaa40b08-1b98-489b-99f1-f4af129a848c","channel":"Live Chat","paymentStatus":"paid","instructions":"-   Provide accurate and helpful responses to visitors' questions.\n-   Be friendly, professional, and concise in all interactions.\n-   Avoid answering questions by your own knowledge.\n-   Avoid providing personal opinions or unverified information.","isCustomAvatar":false}'

Response:
HTTP/1.1 201 OK

{
    "id": "ec9f351e-d7d7-45fc-81aa-2fdd9e706f17",
    "name": "common-agent",
    "description": "",
    "tone": "friendly",
    "isCustomAvatar": false,
    "systemAvatarId": "aaa40b08-1b98-489b-99f1-f4af129a848c",
    "language": "en",
    "channel": "Live Chat",
    "lastUpdatedTime": "2025-03-04T06:41:55.1033333Z",
    "paymentStatus": "paid",
    "avatar": "https://api11.comm100.io/aiagent/chatbots/ec9f351e-d7d7-45fc-81aa-2fdd9e706f17/avatar?siteId=10000&version=b07a408a09b7eaeaa740b57fdb4622e3&signature=TRXt8Oq9QQa9Wz8p93l3bTTfvrU",
    "assistantId": "asst_eG0ekZgjRMXZ2At9GTPiwTK8",
    "instructions": "-   Provide accurate and helpful responses to visitors' questions.\n-   Be friendly, professional, and concise in all interactions.\n-   Avoid answering questions by your own knowledge.\n-   Avoid providing personal opinions or unverified information."
}

Update the AI Agent

PUT aiagent/aiAgents/{id}

Parameters:

NameTypeinRequiredDescription
siteIdintegerqueryyes
idguidpathyesID of the AI agent to update.
namestringbodynoUpdated name for the AI agent.
descriptionstringbodynoUpdated description of the AI agent.
toneenumbodynoTone of communication used by the AI agent. Allowed values are: friendly, neutral, professional, humorous.
isCustomAvatarboolbodynoWhether to use a custom avatar (true) or a system avatar (false).
customizeAvatarstringbodynoRL of the custom avatar image. Required when isCustomAvatar is true.
systemAvatarIdguidbodynoID of the system avatar. Required when isCustomAvatar is false.
languagestringbodynoPrimary language code for the AI agent (e.g., "en" for English).
channelstringbodynoCommunication channel for the AI agent (e.g., "Live Chat").
paymentStatusenumbodynoCurrent payment status. Allowed values are: paid, trial.
instructionsstringbodynoInstructions for the AI agent.

Response:

AI Agent

Delete the AI Agent

DELETE aiagent/aiAgents/{id}

Parameters:

NameTypeinRequiredDescription
siteIdintegerqueryyesSite Id.
idguidpathyesID of the AI agent to delete.

Response:

No Content

Get AI Agent Overview

GET aiagent/aiAgents/{id}/overview

Parameters:

NameTypeinRequiredDescription
siteIdintegerqueryyesSite Id.
startTimestringquerynoStart datetime for the overview data.
endTimestringquerynoEnd datetime for the overview data.

Response:

NameTypeDescription
topicsCountintegerNumber of topics configured in this AI agent.
functionsCountintegerNumber of functions available to this AI agent.
learningsCountintegerNumber of learning items added to this AI agent.
collectedLeadsCountintegerNumber of leads collected by this AI agent.
bookedMeetingsCountintegerNumber of meetings booked through this AI agent.

Example

Sample Request:

curl https://api11.comm100.io/aiagent/aiAgents/ec9f351e-d7d7-45fc-81aa-2fdd9e706f17/overview?siteId=10000 \ 
    -X GET \ 
    -H 'Authorization: Bearer { access_token }'

Response:
HTTP/1.1 200 OK

{
    "topicsCount": 1,
    "functionsCount": 0,
    "learningsCount": 0,
    "collectedLeadsCount": 0,
    "bookedMeetingsCount": 0
}

Was this article helpful?