Elastic Agent Builder: Agents
Serverless Elasticsearch Serverless Observability Serverless Security Stack
Agents are AI models (LLMs) defined with custom instructions and a set of assigned tools. Users chat with agents using natural language, in the Agent Builder UI or programmatically.
An agent parses user requests to define a goal and then runs tools in a loop to achieve that goal. The agent provides responses based on its configured tools, instructions, and behavior settings.
When you ask a question to an agent, it analyzes your request to define a specific goal. It selects the most appropriate tools and determines the right arguments to use. The agent evaluates the information returned after each action and decides whether to use additional tools or formulate a response. This iterative process of tool selection, execution, and analysis continues until the agent can provide a complete answer.
Elastic Agent Builder includes a default agent (named Elastic AI Agent) with access to all built-in tools. You can create specialized agents with custom instructions and selected tools to address specific use cases or workflows.
The default Elastic AI Agent is immutable and cannot be edited. To customize agent behavior, you need to create a custom agent by cloning the default agent or creating a new one from scratch.
The Agents page provides a centralized view of all your agents. From this page you can:
- View all your agents with their names and labels.
- Search for specific agents using the search bar.
- Filter agents by labels using the Labels dropdown.
- Create new agents using the + New agent button.
- Start chatting with an agent or perform other actions:
Follow these steps to create a new agent:
-
Navigate to the Agents page
Navigate to the Agents page to access the agent management interface.
-
Create a new agent
Select the New agent button to being creating a new agent.
-
Configure essential settings
Configure the essential agent settings in the settings tab:
Enter an Agent ID, a unique identifier for reference in code.
Add Custom instructions.
Custom instructions define the agent's personality and determine how it interacts with users and performs tasks.NoteAgent Builder adds your custom instructions to the system prompt to define the agent's behavior. The system prompt enables core features like visualization and citations.
Set the Display name for users.
Add a Display description to explain the agent's purpose.
-
Assign tools
Switch to the Tools tab to assign tools to your agent.
Select the combination of built-in and custom tools available to the agent, based on your use case.
-
Customize appearance (optional)
Optionally customize the agent's appearance and organization:
- Add Labels to organize your agents.
- Select an Avatar color and Avatar symbol to help visually distinguish the agent.
-
Save your changes
Select Save to create your agent, or Save and chat to create the agent and immediately begin a conversation with it.
The Agents API enables programmatic access to agent creation and management actions.
For an overview, refer to Agents API.
For the complete API reference, refer to the Kibana API reference.