Creates a new BYO agent that delegates conversations to an external AI framework. Use this endpoint to register a BYO (Bring Your Own) agent powered by frameworks like Mastra, CrewAI, or LangGraph.
Validation: All referenced tools and actions are validated before the agent is created.
API Key with fullAccess scope(i.e. Rest API Key from the Dashboard).
Name of the agent
Is the agent active?
ID of the LLM or platform this agent connects to
Type of connection: llm or agent
llm, agent List of actions
List of tools
URL to the icon/avatar of the agent
Required if integrationType is "agent". URL where the agent is deployed
List of CometChat-provided tools
Instruction for the agent
Array of suggestion texts for the agent
Optional metadata object for the agent
Agent created successfully