Saltar al contenido principal

Updates an existing assistant agent

PUT 

/api/v2/agent/assistant/:agentCode

Updates an existing assistant agent

Request​

Path Parameters

    agentCode stringrequired

    The code of the conversational agent to update.

Query Parameters

    culture string

    Use this param to override the culture of the response. Options: - en (default) - es

Body

The conversational agent update request containing details.

    general

    object

    required

    name stringrequired

    Possible values: non-empty and <= 64 characters

    description stringnullable

    Possible values: <= 2000 characters

    behaviour

    object

    required

    systemDefinition stringrequired

    Possible values: non-empty and <= 40000 characters

    initialMessage stringrequired

    Possible values: non-empty and <= 2000 characters

    conversationObjective stringnullable

    Possible values: <= 1000 characters

    isRequestUserChoiceEnabled boolean

    Enables the Request User Choice skill, which lets the agent pause and ask the user to pick from a set of options before continuing. Defaults to false.

    isAgentTodosEnabled boolean

    Enables the Agent TODOs skill, which lets the agent keep a TODO list and iterate over it on its own until every item is done. Defaults to false.

    conversationStarters string[]nullable
    isUserInterruptionsEnabled boolean

    Enables User Interruptions, which let users send messages while the agent is still answering so they are merged into the running answer. Defaults to false.

    inputParameters

    object[]

    nullable

    Replaces the whole input parameter list. Parameters referenced from the system definition or the initial message are re-created with their default configuration when they are not sent.

  • Array [

  • name stringrequired

    Possible values: non-empty, Value must match regular expression ^[a-zA-Z0-9_]+$

    The parameter name. Only letters, digits and underscores are allowed.

    description stringnullable

    A description of the parameter.

    type ParameterTypeEnum (string)required

    Possible values: [array, boolean, number, object, string]

    The data type of an input parameter.

    isRequired boolean

    Whether the parameter must be supplied when the agent is executed.

    defaultValue nullable

    Value used when the execution does not supply the parameter. It must match the parameter type.

  • ]

  • model

    object

    required

    main

    object

    required

    id uuidnullable

    The unique identifier of the AI model to be used by the agent. Alias of aiModelId.

    aiModelId uuidnullable

    The unique identifier of the AI model to use. Used instead of Vendor and ModelCode.

    modelCode stringnullable

    The model code associated with the AI model to be used by the agent. Required if Id is not provided.

    vendor stringnullable

    The vendor associated with the AI model to be used by the agent. Required if Id is not provided.

    parameters

    object

    Request DTO for configuring AI model execution parameters.

    frequencyPenalty floatnullable

    A float value between -2 and 2 that penalizes the likelihood of an agent reusing similar completions.

    logitBIAS stringnullable

    A JSON object that maps tokens to an associated bias value from -100 to 100.

    maxTotalTokens int64nullable

    The maximum number of tokens shared between the Prompt and the Output.

    maxOutputTokens int32nullable

    The maximum number of tokens that can be generated by the AI in the response.

    presencePenalty floatnullable

    A float value between -2 and 2 that penalizes the likelihood of an agent reusing phrases already present in the input.

    reasoningEffort stringnullable

    The reasoning level of the agent's response (e.g., "low", "medium", "high").

    reasoningDetail stringnullable

    The level of detail of reasoning events exposed during execution (e.g., "auto", "none", "summary", "full").

    stopSequences string[]nullable

    Defines sequences of tokens upon which the agent should stop generating completions.

    temperature floatnullable

    A float value between 0 and 2 that determines the randomness of the agent's responses.

    topK floatnullable

    A float value that specifies the Top-K sampling parameter.

    topP floatnullable

    A float value between 0 and 1 that specifies the probability cutoff for generating the response (nucleus sampling).

    useVision booleannullable

    Defines if the agent should use Vision capabilities.

    useDirectFileSend booleannullable

    Defines if the agent sends attached PDF files directly to the model provider instead of scanning them first. Only applies to models that support it.

    usePluginEmulator booleannullable

    Defines if the agent should use Plugin Emulator instead of native tools.

    enableThinking booleannullable

    Defines if the agent should use extended thinking (Alibaba Cloud and DeepSeek only).

    thinkingBudgetTokens int32nullable

    Token budget for extended thinking on vendors configured by an explicit token budget (e.g. Anthropic's budget_tokens), where setting a budget is itself the opt-in for extended thinking

    voice stringnullable

    Voice identifier for realtime/audio models (e.g. "shimmer", "alloy"). Null when not applicable.

    knowledge

    object

    knowledgeSources

    object[]

    nullable

    List of files to be integrated

  • Array [

  • id uuidnullable
    currentVersionId uuidnullable
    fileId uuidnullable
    url stringnullable
    active booleannullable

    metadata

    object

    description stringnullable

    Possible values: <= 1000 characters

    tags stringnullable

    Possible values: <= 1021 characters

  • ]

  • datasetSources uuid[]nullable

    List of dataset ids to be integrated as knowledge sources

    advancedSettings

    object

    integrationMode stringnullable

    The mode of knowledge integration, which determines how the knowledge is integrated into the agent's context. If not provided, default values will be set

    embeddingModelId uuidrequired

    The model used to generate the embeddings IF changed, all files will be reprocessed.

    embeddingModelCode stringnullable

    The model code used to generate the embeddings IF changed, all files will be reprocessed. Required if identifier is not provided.

    vendor stringnullable

    The model vendor used to generate the embeddings IF changed, all files will be reprocessed. Required if identifier is not provided.

    relevance doublenullable

    Possible values: <= 1

    The relevance score of the knowledge If not provided, default values will be set

    sectionsToRetrieve int32nullable

    Possible values: >= 1 and <= 100

    Sets a limit on the number of sections to retrieve If not provided, default values will be set

    skills

    object[]

    nullable

    List of skills to be added to the agent.

  • Array [

  • oneOf

    Request model for creating or updating an Agent Executor skill within an agent.

    type stringrequired

    Possible values: non-empty, [AgentExecutor]

    The skill type identifier. Always "AgentExecutor" for agent executor skills.

    settings

    object

    required

    agentCode stringrequired

    Possible values: <= 50 characters, Value must match regular expression ^[a-zA-Z0-9\-]*$

    The code of the agent to execute when this skill is invoked.

    agentVersion int32nullable

    The version of the agent to use for this skill.

    code stringrequired

    Possible values: <= 50 characters, Value must match regular expression ^[a-zA-Z0-9]+$

    The unique code for this skill configuration.

    description stringnullable

    Possible values: <= 4000 characters

    The description of this skill configuration.

    includeInAgentResult boolean

    When set to true, the skill result will be returned within the agent result.

    reuseOutput boolean

    When set to true, the skill results will be cached and reused throughout a conversation as long as the input parameters remain the same.

    requiresApproval boolean

    When set to true, each call the agent makes to this skill must be approved by the user before it runs.

    active boolean

    Only active skills will be imported during agent execution.

  • ]

  • skillsAdvancedSettings

    object

    Settings that apply to the agent's skills as a whole rather than to a single skill.

    selectionOptimization

    object

    Skill selection optimization: before each execution, a decision model picks the skills the execution needs, so the

    agent doesn't load every skill.

    isEnabled boolean

    Whether the decision model selects the skills of each execution.

    aiModelId uuidnullable

    The decision model that selects the skills. When neither this nor ModelCode and Vendor are sent, the platform's default decision model is used.

    modelCode stringnullable

    The code of the decision model. Used together with Vendor when AIModelId is not provided.

    vendor stringnullable

    The vendor of the decision model. Used together with ModelCode when AIModelId is not provided.

    threshold doublenullable

    Possible values: <= 1

    The minimum probability the decision model must give a skill for it to be imported. Higher imports fewer skills. When not sent, the platform's default threshold is used.

    alwaysIncludedSkills string[]nullable

    Possible values: <= 100

    The codes of the agent's skills that are always imported, without the decision model evaluating them. Every tool of an MCP skill is included. When not sent, creating or replacing an agent includes none, and updating a version keeps the current ones.

    aiModelId uuidnullable

    The unique identifier of the AI model to use. Used instead of Vendor and ModelCode.

    modelCode stringnullable

    The model code to use. Used together with Vendor when AIModelId is not provided.

    vendor stringnullable

    The vendor of the model to use. Used together with ModelCode when AIModelId is not provided.

Responses​

Conversational agent updated successfully.

Loading...