Create an agent
https://{kibana_url}
- POST /api/agent_builder/agents
- POST /s/{space_id}/api/agent_builder/agents
Refer to Spaces for more information.
Create a new agent. Use this endpoint to define the agent's behavior, appearance, and capabilities through comprehensive configuration options. To learn more about agents, refer to the agents documentation.
[Required authorization] Route required privileges: agentBuilder:manageAgents.
Request
-
access_controlobject -
access_moderequired -
Technical Preview; added in 9.4.0. Access-control mode:
public(any privileged user can read/write),shared(any privileged user can read, only owner can write),private(only owner can read/write). -
Values:
publicsharedprivate -
avatar_colorstring -
Optional hex color code for the agent avatar.
-
avatar_symbolstring -
Optional symbol/initials for the agent avatar.
-
configurationobjectrequired -
Configuration settings for the agent.
-
connector_idsstring · max: 100 -
Array of connector IDs to associate with the agent.
-
enable_elastic_capabilitiesboolean -
When true, enables built-in Elastic capabilities for the agent.
-
instructionsstring -
Optional system instructions that define the agent behavior.
-
plugin_idsstring · max: 100 -
Array of plugin IDs to assign to the agent.
-
skill_idsstring · max: 100 -
Array of skill IDs to be available to the agent.
-
workflow_idsstring · max: 100 -
descriptionstringrequired -
Description of what the agent does.
-
idstringrequired -
Unique identifier for the agent.
-
labelsstring -
Optional labels for categorizing and organizing agents.
-
namestringrequired -
Display name for the agent.
Response
Indicates a successful response