Skip to content
Proud to collaborate with Microsoft for Startups

agents.agent-config.clone ​

Clone an existing agent configuration

Clone an AgentConfig, copying all fields and M2M links.

Overview ​

PropertyValue
Workflow typeLinear
LibraryApp-agents
Version1.0

Triggers ​

SourceEndpoint / EventDescription
APIPOST /api/agents/configs/{config_uuid}/cloneClone an agent configuration

Input Schema ​

FieldTypeRequiredDefaultDescription
agent_config_uuidstringYes——
organization_uuidstringYes——
new_namestringNo——

Output Schema ​

FieldTypeRequiredDefaultDescription
agent_config_uuidjsonNo——
errorstringNo——
error_typestringNo——
failed_atstringNo——
failed_at_statestringNo——
failed_layerjsonNo——
failed_stepstringNo——
failure_reasonstringNo——
cloned_from_agent_config_uuidjsonNo——
organization_uuidjsonNo——
new_namejsonNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
initiatedYesNo—run—
runNoNo—complete—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
initiatedrunrun—
runcompletecompleted—
* (any state)failfailed—

Outcomes ​

OutcomeTypeDescriptionState Data Keys
clonedSUCCESSAgent configuration clonedagent_config_uuid, cloned_from_agent_config_uuid, organization_uuid, new_name
failedFAILUREAgent configuration cloned failedfailure_reason, error, error_type, failed_at_state, failed_step, failed_layer

Business Errors ​

CodeMessage Template
AGENTS_ORGANIZATION_CONTEXT_INVALIDAuthenticated organization context is missing or does not match the workflow input
AGENTS_CONFIG_NOT_FOUNDAgent configuration {agent_config_uuid} was not found in the organization
AGENTS_SKILL_NOT_FOUNDAgent skill {skill_uuid} was not found in the organization
AGENTS_MCP_SERVER_NOT_FOUNDMCP server {mcp_server_uuid} was not found in the organization
AGENTS_RUNNER_GROUP_NOT_FOUNDRunner group {runner_group_uuid} was not found in the organization
AGENTS_VALIDATION_FAILEDWorkflow input or domain state failed validation:
AGENTS_CONFLICTConflicting agent domain state:

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "agents.agent-config.clone",
  "initial_data": {
    "agent_config_uuid": "value",
    "organization_uuid": "value"
  }
}