| Field | Type | Required | Description |
|---|---|---|---|
projectId | integer | Yes | Unique identifier of the project where the chatbot agent should be created. |
{
"name": "Customer Support Bot",
"description": "AI chatbot for answering customer support questions.",
"type": 2,
"access_type": 0,
"avatar_url": "https://example.com/assets/support-bot.png",
"llm_source": 0,
"language": "en"
}| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Name of the chatbot agent. This is used to identify the agent inside the project. |
description | string | No | Short description of the chatbot agent and its purpose. |
type | integer | No | Type of agent to create. Use the value supported by your Robofy configuration. |
access_type | integer | No | Access level of the chatbot agent. Use the value supported by your Robofy configuration. |
avatar_url | string | No | Public URL of the image used as the chatbot avatar. |
llm_source | integer | No | LLM source or provider used by the chatbot. Use the value supported by your Robofy configuration. |
language | string | Yes | Default language for the chatbot. Example: en. |
{
"message": "Chatbot created successfully",
"data": "agent_12345"
}| Field | Type | Description |
|---|---|---|
message | string | Status message describing the result of the request. |
data | string | Unique identifier of the newly created chatbot agent. |
{
"message": "Bad Request",
"error": {
"code": "BAD_REQUEST",
"detail": "Invalid request body or missing required fields."
}
}{
"message": "Unauthorized",
"error": {
"code": "UNAUTHORIZED",
"detail": "Authentication token is missing or invalid."
}
}{
"message": "Forbidden",
"error": {
"code": "FORBIDDEN",
"detail": "You do not have permission to access this project."
}
}{
"message": "Not Found",
"error": {
"code": "PROJECT_NOT_FOUND",
"detail": "Project not found."
}
}{
"message": "Internal Server Error",
"error": {
"code": "INTERNAL_SERVER_ERROR",
"detail": "Something went wrong. Please try again later."
}
}projectId must belong to an existing project that the authenticated user can access.name field is required and should clearly describe the chatbot’s purpose.avatar_url should be a valid public image URL if the chatbot avatar needs to be displayed in a widget or external interface.data value as the chatbot ID in other APIs such as Retrieve Agent, Add Website, List Linked Assets, Send Message, and Send WhatsApp Message.curl --location 'https://agents.robofy.ai/v1/ai-agent/chatbot/' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "string",
"description": "string",
"type": 0,
"access_type": 0,
"avatar_url": "string",
"llm_source": 0,
"language": "string"
}'{
"message": "Chatbot created successfully",
"data": "DKDvwn..."
}