Robofy API
HomeChangelog
HomeChangelog
Visit Website
Sign In
Create an account
  1. Chatbot / Agent
  • 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
        GET
      • Create Agent
        POST
      • Retrieve Agent
        GET
      • Update Agent
        PUT
      • Delete Agent
        DELETE
      • Delink Asset
        DELETE
      • List Linked Assets
        GET
      • Delete Widget Tab
        DELETE
    • 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
      • Get Crawl Status
      • Add Text Content
      • Add File
    • 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. Chatbot / Agent

Create Agent

POST
/v1/ai-agent/chatbot/{projectId}
Create Agent allows you to create a new AI chatbot agent inside a specific project.
This endpoint is used when you want to programmatically create a chatbot that can later be configured, trained with knowledge sources, embedded into a website, connected with WhatsApp, or used through the chat APIs.
The created agent can be used for customer support, lead capture, booking flows, internal knowledge assistants, website chat widgets, and other conversational AI use cases.

Endpoint#


Path Parameters#

FieldTypeRequiredDescription
projectIdintegerYesUnique identifier of the project where the chatbot agent should be created.

Request Body#

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

Request Parameters#

FieldTypeRequiredDescription
namestringYesName of the chatbot agent. This is used to identify the agent inside the project.
descriptionstringNoShort description of the chatbot agent and its purpose.
typeintegerNoType of agent to create. Use the value supported by your Robofy configuration.
access_typeintegerNoAccess level of the chatbot agent. Use the value supported by your Robofy configuration.
avatar_urlstringNoPublic URL of the image used as the chatbot avatar.
llm_sourceintegerNoLLM source or provider used by the chatbot. Use the value supported by your Robofy configuration.
languagestringYesDefault language for the chatbot. Example: en.

Success Response#

{
  "message": "Chatbot created successfully",
  "data": "agent_12345"
}

Response Fields#

FieldTypeDescription
messagestringStatus message describing the result of the request.
datastringUnique identifier of the newly created chatbot agent.

Error Responses#

400 Bad Request#

Returned when the request body is invalid or required fields are missing.
{
  "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 create an agent in the specified project.
{
  "message": "Forbidden",
  "error": {
    "code": "FORBIDDEN",
    "detail": "You do not have permission to access this project."
  }
}

404 Not Found#

Returned when the specified project does not exist.
{
  "message": "Not Found",
  "error": {
    "code": "PROJECT_NOT_FOUND",
    "detail": "Project not found."
  }
}

500 Internal Server Error#

Returned when an unexpected server error occurs.
{
  "message": "Internal Server Error",
  "error": {
    "code": "INTERNAL_SERVER_ERROR",
    "detail": "Something went wrong. Please try again later."
  }
}

Notes#

The projectId must belong to an existing project that the authenticated user can access.
The name field is required and should clearly describe the chatbot’s purpose.
The avatar_url should be a valid public image URL if the chatbot avatar needs to be displayed in a widget or external interface.
After the chatbot is created, you can use the returned data value as the chatbot ID in other APIs such as Retrieve Agent, Add Website, List Linked Assets, Send Message, and Send WhatsApp Message.

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params

Body Params application/json

Responses

🟢200
application/json
OK
Body

đźź 400
đźź 401
đźź 403
đźź 404
đź”´500
Request Request Example
Shell
JavaScript
Java
Swift
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"
}'
Response Response Example
200 - Success
{
    "message": "Chatbot created successfully",
    "data": "DKDvwn..."
}
Modified at 2026-05-04 11:11:37
Previous
List Agents
Next
Retrieve Agent
Built with