Robofy API
HomeChangelog
HomeChangelog
Visit Website
Sign In
Create an account
  1. Content
  • Start Guide
    • Overview
    • Architecture
    • Authentication
    • Changelog
  • Robofy API
    • Chat
      • Generate Client Token (Handshake)
      • Send Message (Streaming)
      • Send Message (Non Streaming)
      • Send WhatsApp Message
    • Chatbot / Agent
      • List Agents
      • Create Agent
      • Retrieve Agent
      • Update Agent
      • Delete Agent
      • Delink Asset
      • List Linked Assets
      • Delete Widget Tab
    • Account
      • Retrieve Account Details
      • Update Account Details
      • Retrieve Account Limit
    • Prompt & Persona
      • Update System Prompt
      • Retrieve Agent Settings
      • Update Persona
      • Retrieve Persona
    • Inbox
      • List Sessions
      • List Session Messages
    • Project
      • Create Project
      • List Projects
      • Update Project
      • Retreive Project
    • Leads
      • List Leads
    • Content
      • Add Website
        POST
      • Get Crawl Status
        GET
      • Add Text Content
        POST
      • Add File
        POST
    • Stats
      • Stats
    • License
      • Create License
      • List License
      • Update License
      • Retrieve License
      • Delete License
      • Update License Limit
    • Partner
      • Onboard
    • Schemas
      • Account
      • AccountDetailDto
      • Address
      • AgentCredentialInsertResponseDto
      • AgentCredentialRequestDto
      • AgentCredentialResponseDto
      • AgentDataPoint
      • AgentLeadCapture
      • AgentLeadReportDto
      • AgentLinkageDto
      • AgentMcpServerDto
      • AgentMcpServerInsertResponseDto
      • AgentMcpServerRequestDto
      • AgentMcpServerUpdateRequestDto
      • AgentPromptVersionDto
      • AgentSessionListDto
      • AgentSessionListItemDto
      • AgentStatsDto
      • AgentThemeDto
      • AgentThemeListDto
      • AgentToolLinkageInsertResponseDto
      • AgentToolLinkageRequestDto
      • AgentWhatappIntrgrationResponse
      • AgentWhatsAppLinkageDto
      • Button
      • CarouselCard
      • CategoryStats
      • ChatBotDetailsDto
      • ChatBotDetailsRequest
      • ChatBotDetailsUpdateRequest
      • ChatbotAISettingsDto
      • ChatbotAISettingsRequest
      • ChatbotAdvanceSettingsDto
      • ChatbotAdvanceSettingsRequest
      • ChatbotAppearanceSettingsDto
      • ChatbotAppearanceSettingsRequest
      • ChatbotAssetDelinkDto
      • ChatbotAssetLinkageDataDto
      • ChatbotAssetLinkageDelinkRequest
      • ChatbotAssetLinkageDetailsDto
      • ChatbotAssetLinkageDto
      • ChatbotAssetLinkageRequest
      • ChatbotTextLinkageRequest
      • ClientData
      • CommonResponse
      • Component
      • Contact
      • ContactName
      • CrawlStatusDto
      • CrawlWebsiteRequest
      • CreateOrUpdateProjectRequest
      • CreatePhoneNumberRequest
      • CreateTemplateRequest
      • CreateWebhookConfigRequest
      • DeLinkWhatsAppRequest
      • Email
      • Error
      • ErrorResponse
      • Example
      • FailureStats
      • FailureStatsDataPoint
      • FormField
      • GoogleSheetDto
      • GoogleSheetIntegrationRequest
      • InboxChatDto
      • InboxDto
      • InboxMessage
      • InboxSession
      • IntelligentMetricsDto
      • Interactive
      • InteractiveAction
      • InteractiveBody
      • InteractiveButton
      • InteractiveFooter
      • InteractiveHeader
      • InteractiveMedia
      • InteractiveProductItem
      • InteractiveProductSection
      • InteractiveReply
      • InteractiveRow
      • InteractiveSection
      • LeadCaptureForm
      • LeadData
      • LeadDataField
      • LeadFormData
      • LeadReport
      • LicenseCreateRequest
      • LicenseDto
      • LicenseLimitRequest
      • LicenseUpdateRequest
      • LimitedTimeOffer
      • LinkWhatsAppRequest
      • LinkedCredentialDto
      • LinkedMcpServerDto
      • Location
      • Media
      • MessageMetaData
      • MessageRequest
      • MessageResponse
      • MessageStats
      • MessageStatsDataPoint
      • MessageTemplate
      • NamedParameter
      • OrgLimitDto
      • Organization
      • PaginatedWebhookLogsResponse
      • Part
      • PartnerClientSession
      • PartnerClientSessionDto
      • Phone
      • PhoneNumberRequest
      • PhoneVerifyCodeRequest
      • PhoneVerifyRequest
      • PlatformStats
      • ProjectDetailDto
      • ProjectWABADetail
      • Reaction
      • ReadTypingIndicatorRequest
      • RecentInsightDto
      • Response
      • SessionInsightItemDto
      • SessionInsightsDto
      • SessionMetaDto
      • SessionMetricsDto
      • SessionSummaryDetailDto
      • StartUrl
      • SubcribedAppsRequest
      • SupportedApp
      • TemplateAction
      • TemplateButtons
      • TemplateCarousel
      • TemplateComponent
      • TemplateCurrency
      • TemplateDateTime
      • TemplateLimitedTimeOffer
      • TemplateMedia
      • TemplateParameter
      • TemplateProductItem
      • TemplateSection
      • TemplateTapTargetConfiguration
      • Text
      • ThemeMetaDto
      • TypingIndicator
      • UpdateOnboardStatusRequest
      • UpdateOnboardStatusResponseDto
      • UploadMedia
      • Url
      • WABADetail
      • WABADto
      • Webhook
      • WebhookConfigDto
      • WebhookConfiguration
      • WebhookLogDto
      • WebsiteDto
      • WhatsAppBusinessApiData
      • WhatsAppBusinessProfile
      • WidgetIntegration
  1. Content

Add Text Content

POST
/v1/ai-agent/link_content/{projectId}
Add Text Content allows you to add custom text content and link it with a chatbot as a knowledge asset.
This endpoint is used when you want to provide manually written content, FAQs, policy text, product details, business information, support instructions, or other plain text knowledge to an AI agent. Once linked, the chatbot can use this content while answering user questions.
This API is useful when the knowledge source is not available as a file or website URL, or when you want to directly pass text content from your application.

Endpoint#


Path Parameters#

FieldTypeRequiredDescription
projectIdintegerYesUnique identifier of the project where the chatbot belongs.

Request Body#

{
  "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"
}

Request Parameters#

FieldTypeRequiredDescription
chatbot_idstringYesUnique chatbot identifier that should be linked with the text content.
contentstringYesText content that should be added to the chatbot knowledge base.
file_namestringNoName used to identify the text content asset. Example: support-policy.txt.
is_webpagebooleanNoIndicates whether the content represents webpage content. Use false for manually added text content.
source_platformstringNoSource from where the content was added. Example values: wordpress.

Success Response#

{
  "linkage_id": 101,
  "llm_source": "document/support-policy.txt",
  "chatbot_id": "DKDvwn...",
  "asset_id": 98765,
  "status": "active"
}

Response Fields#

FieldTypeDescription
linkage_idintegerUnique identifier of the link created between the chatbot and the text content asset.
llm_sourcestringLLM source or provider associated with the chatbot.
chatbot_idstringUnique identifier of the chatbot linked with the content.
asset_idintegerUnique identifier of the created text content asset.
statusstringCurrent status of the linked content. Example values may include linked, processing, active, or failed.

Error Responses#

400 Bad Request#

Returned when the request body is invalid, required fields are missing, or the text content is empty.
{
  "message": "Bad Request",
  "error": {
    "code": "BAD_REQUEST",
    "detail": "Invalid request body or missing required fields."
  }
}

401 Unauthorized#

Returned when the request does not include a valid bearer token.
{
  "message": "Unauthorized",
  "error": {
    "code": "UNAUTHORIZED",
    "detail": "Authentication token is missing or invalid."
  }
}

403 Forbidden#

Returned when the authenticated user does not have permission to add content to the specified chatbot.
{
  "message": "Forbidden",
  "error": {
    "code": "FORBIDDEN",
    "detail": "You do not have permission to update this chatbot."
  }
}

404 Not Found#

Returned when the project or chatbot does not exist.
{
  "message": "Not Found",
  "error": {
    "code": "CHATBOT_NOT_FOUND",
    "detail": "Chatbot not found."
  }
}

500 Internal Server Error#

Returned when an unexpected error occurs while adding or linking the text content.
{
  "message": "Internal Server Error",
  "error": {
    "code": "INTERNAL_SERVER_ERROR",
    "detail": "Something went wrong. Please try again later."
  }
}

Notes#

Use this endpoint when you want to add plain text content directly to a chatbot’s knowledge base.
The chatbot_id and content fields are required.
The projectId in the path must belong to an existing project that the authenticated user can access.
Use file_name to give the text content a meaningful label so it can be identified later in linked assets.
Set is_webpage to false when adding manual text content.
After the content is linked, it may take some time to process and become available for chatbot responses.
You can use the List Linked Assets API to view the linked text content asset after it has been added.

Request

Path Params

Body Params application/jsonRequired

Examples

Responses

🟢200
application/json
OK
Body

đźź 400
đź”´500
Request Request Example
Shell
JavaScript
Java
Swift
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"
}'
Response Response Example
200 - Example 1
{
    "linkage_id": 0,
    "llm_source": "string",
    "chatbot_id": "string",
    "asset_id": 0,
    "status": "string"
}
Modified at 2026-05-04 11:09:50
Previous
Get Crawl Status
Next
Add File
Built with