| Field | Type | Required | Description |
|---|---|---|---|
projectId | integer | Yes | Unique identifier of the project where the chatbot belongs. |
{
"chatbot_id": "DKDvwn...",
"content": "Our support team is available Monday to Friday from 9 AM to 6 PM. Customers can contact us through live chat, email, or WhatsApp.",
"file_name": "support-policy.txt",
"is_webpage": false,
"source_platform": "manual"
}| Field | Type | Required | Description |
|---|---|---|---|
chatbot_id | string | Yes | Unique chatbot identifier that should be linked with the text content. |
content | string | Yes | Text content that should be added to the chatbot knowledge base. |
file_name | string | No | Name used to identify the text content asset. Example: support-policy.txt. |
is_webpage | boolean | No | Indicates whether the content represents webpage content. Use false for manually added text content. |
source_platform | string | No | Source from where the content was added. Example values: wordpress. |
{
"linkage_id": 101,
"llm_source": "document/support-policy.txt",
"chatbot_id": "DKDvwn...",
"asset_id": 98765,
"status": "active"
}| Field | Type | Description |
|---|---|---|
linkage_id | integer | Unique identifier of the link created between the chatbot and the text content asset. |
llm_source | string | LLM source or provider associated with the chatbot. |
chatbot_id | string | Unique identifier of the chatbot linked with the content. |
asset_id | integer | Unique identifier of the created text content asset. |
status | string | Current status of the linked content. Example values may include linked, processing, active, or failed. |
{
"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 update this chatbot."
}
}{
"message": "Not Found",
"error": {
"code": "CHATBOT_NOT_FOUND",
"detail": "Chatbot not found."
}
}{
"message": "Internal Server Error",
"error": {
"code": "INTERNAL_SERVER_ERROR",
"detail": "Something went wrong. Please try again later."
}
}chatbot_id and content fields are required.projectId in the path must belong to an existing project that the authenticated user can access.file_name to give the text content a meaningful label so it can be identified later in linked assets.is_webpage to false when adding manual text content.curl --location 'https://agents.robofy.ai/v1/ai-agent/link_content/' \
--header 'Content-Type: application/json' \
--data '{
"chatbot_id": "string",
"content": "string",
"file_name": "string",
"is_webpage": false,
"source_platform": "string"
}'{
"linkage_id": 0,
"llm_source": "string",
"chatbot_id": "string",
"asset_id": 0,
"status": "string"
}