﻿---
title: Chat with Elastic Agent Builder agents
description: Learn how to chat with AI agents in Agent Builder, inspect reasoning steps, and manage conversation history through the UI or API.
url: https://www.elastic.co/elastic/docs-builder/docs/3645/explore-analyze/ai-features/agent-builder/chat
products:
  - Elastic Cloud Serverless
  - Elastic Observability
  - Elastic Security
  - Elasticsearch
  - Kibana
applies_to:
  - Elastic Cloud Serverless: Generally available
  - Elastic Stack: Generally available since 9.3, Preview in 9.2
---

# Chat with Elastic Agent Builder agents
**Agent Chat** is the chat interface for natural language conversations with your [agents](https://www.elastic.co/elastic/docs-builder/docs/3645/explore-analyze/ai-features/agent-builder/agent-builder-agents).
The chat GUI and programmatic interfaces enable real-time communication where you can ask questions, request data analysis, and receive immediate responses from your configured agents.
<note>
  The chat UI is available in both standalone and flyout modes. For more information, refer to [Chat UI modes](https://www.elastic.co/elastic/docs-builder/docs/3645/explore-analyze/ai-features/agent-builder/standalone-and-flyout-modes).
</note>


## Get started

<tip>
  Refer to the [getting started](https://www.elastic.co/elastic/docs-builder/docs/3645/explore-analyze/ai-features/agent-builder/get-started) guide if you need to enable the feature and ingest some data.
</tip>

Find **Agents** in the navigation menu to begin chatting.
You can also search for **Agent Builder** in the [global search bar](https://www.elastic.co/elastic/docs-builder/docs/3645/explore-analyze/find-and-organize/find-apps-and-objects).
This takes you to the chat GUI:
![Annotated screenshot of the Agent Chat GUI with numbered callouts highlighting the chat input (1), agent selector (2), model selector (3), chats panel (4), options menu (5), customize accordion (6), and manage components link (7)](https://www.elastic.co/elastic/docs-builder/docs/3645/explore-analyze/ai-features/agent-builder/images/agent-builder-chat-UI-get-started.png)

1. [Chat input area](#start-a-chat-and-select-an-agent)
2. [Agent selector](#select-a-different-agent)
3. [Model selector](#select-a-different-model)
4. [Chats (conversation history)](#find-conversation-history)
5. [Options menu](#access-key-actions)
6. [Customize accordion](#customize-your-agent)
7. [Manage components link](#manage-components)


## Agent Chat GUI


### Start a chat and select an agent

Use the text input area to chat with an agent in real time. Check the agent selector to see which agent is active. To switch agents, refer to [Select a different agent](#select-a-different-agent).
![Text input area for chatting with agents](https://www.elastic.co/elastic/docs-builder/docs/3645/explore-analyze/ai-features/agent-builder/images/agent-builder-chat-input.png)

<note>
  Conversations with agents consume tokens. To understand how usage is calculated, refer to [Token usage in Elastic Agent Builder](https://www.elastic.co/elastic/docs-builder/docs/3645/explore-analyze/ai-features/agent-builder/monitor-usage).
</note>


#### Select a different agent

<applies-to>
  - Elastic Stack: Generally available since 9.3
</applies-to>

Use the agent selector to switch agents, to navigate to the agent management section, or to create a new agent. An agent's behavior is defined by its custom instructions and available tools. Switch agents when you need different capabilities for your tasks.
![Agent selector dropdown showing available agents with options to create or manage agents](https://www.elastic.co/elastic/docs-builder/docs/3645/explore-analyze/ai-features/agent-builder/images/agent-builder-agent-selector.png)


#### Select a different model

<applies-to>
  - Elastic Stack: Generally available since 9.3
</applies-to>

Use the model selector to switch the underlying [model](https://www.elastic.co/elastic/docs-builder/docs/3645/explore-analyze/ai-features/agent-builder/models) the agent uses to generate responses. Switch models to prioritize faster responses, lower costs, or more complex reasoning, depending on your use case.
![Model selector dropdown showing available models](https://www.elastic.co/elastic/docs-builder/docs/3645/explore-analyze/ai-features/agent-builder/images/model-selector.png)


### Options menu

<applies-to>
  - Elastic Stack: Generally available since 9.3
</applies-to>

Click the three-dot menu icon in the top-right corner to access additional options.
![Three-dot menu icon for additional options](https://www.elastic.co/elastic/docs-builder/docs/3645/explore-analyze/ai-features/agent-builder/images/more-actions.png)

<applies-switch>
  <applies-item title="{ stack: ga 9.4+, serverless: ga }" applies-to="Elastic Cloud Serverless: Generally available, Elastic Stack: Generally available since 9.4">
    The options menu provides access to:
    - **Agent details**: View information about the currently selected agent.
    - **GenAI Settings**: Open the global GenAI settings page to configure default connectors and other AI settings. Refer to [Manage access to AI features](https://www.elastic.co/elastic/docs-builder/docs/3645/explore-analyze/ai-features/manage-access-to-ai-assistant).

    ![Options menu showing Agent details and GenAI Settings](https://www.elastic.co/elastic/docs-builder/docs/3645/explore-analyze/ai-features/agent-builder/images/more-actions-menu-options-9.4.png)

    <tip>
      To manage agents and tools, use the [**Manage components**](#manage-components) link at the bottom of the left sidebar, or the [**Customize**](#customize-your-agent) accordion to configure the current agent.
    </tip>
  </applies-item>

  <applies-item title="{ stack: ga =9.3 }" applies-to="Elastic Stack: Generally available in 9.3">
    This menu provides links to key actions and management pages, including agent management, tool management, agent editing, and duplication.
    ![Options menu showing agent management, tool management, agent editing, and duplication](https://www.elastic.co/elastic/docs-builder/docs/3645/explore-analyze/ai-features/agent-builder/images/more-actions-menu-options.png)
  </applies-item>
</applies-switch>


### Find conversation history

Use the chat history panel to access previous conversations.
![Search chats panel with search field and conversation list](https://www.elastic.co/elastic/docs-builder/docs/3645/explore-analyze/ai-features/agent-builder/images/agent-builder-chat-history.png)


### Track conversation status

<applies-to>
  - Elastic Stack: Planned
</applies-to>

The chat history panel shows the status of each conversation at a glance, so you can keep track of what your agents are doing across conversations:

| Icon                                                                                                                                                                  | Status                  | Meaning                                                                                                                                           |
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------|
| ![In progress spinner](https://www.elastic.co/elastic/docs-builder/docs/3645/explore-analyze/ai-features/agent-builder/images/agent-builder-status-in-progress.svg)   | **In progress**         | The agent is generating a response.                                                                                                               |
| ![Awaiting your input icon](https://www.elastic.co/elastic/docs-builder/docs/3645/explore-analyze/ai-features/agent-builder/images/agent-builder-status-awaiting.svg) | **Awaiting your input** | The agent paused and needs you to respond before it can continue, for example to answer a [human-in-the-loop prompt](#human-in-the-loop-prompts). |
| ![Unread icon](https://www.elastic.co/elastic/docs-builder/docs/3645/explore-analyze/ai-features/agent-builder/images/agent-builder-status-unread.svg)                | **Unread**              | The agent finished responding in a conversation you weren't viewing.                                                                              |
| ![Error icon](https://www.elastic.co/elastic/docs-builder/docs/3645/explore-analyze/ai-features/agent-builder/images/agent-builder-status-error.svg)                  | **Error**               | The agent stopped because of an error.                                                                                                            |

For example, the following chat history panel shows one conversation in progress and another with unread activity:
![Chat history panel showing conversation status indicators, including In progress and Unread](https://www.elastic.co/elastic/docs-builder/docs/3645/explore-analyze/ai-features/agent-builder/images/agent-builder-conversation-status.png)

Conversations run independently, so you can work in several at the same time: start an agent in one conversation, switch to another while the first keeps working, and come back later without interrupting either one. New conversations appear in the panel as soon as you start them, before the agent finishes its first response.

### Inspect tool calls and reasoning

Expand the **Reasoning** section to see how the agent handles your request. This provides a detailed breakdown of the agent's reasoning steps, the tool calls it makes, and the responses it receives. The agent runs tools in a loop until it achieves its goal or [exceeds the maximum conversation length](/elastic/docs-builder/docs/3645/explore-analyze/ai-features/agent-builder/limitations-known-issues#conversation-length-exceeded).
![Reasoning panel showing tool calls and execution steps](https://www.elastic.co/elastic/docs-builder/docs/3645/explore-analyze/ai-features/agent-builder/images/reasoning-steps.png)

Select **Inspect response** to view detailed information about individual tool calls and responses.
Select **View JSON** to view the full raw response data. For more information, refer to [Monitor token usage](https://www.elastic.co/elastic/docs-builder/docs/3645/explore-analyze/ai-features/agent-builder/monitor-usage).

### Human-in-the-loop prompts

<applies-to>
  - Elastic Stack: Generally available since 9.4
</applies-to>

At certain points an agent pauses and hands control back to you before it continues. This pattern is known as human-in-the-loop (HITL). While a conversation is paused this way, it shows an **Awaiting your input** status in the [chat history panel](#track-conversation-status).

#### Confirm a change

You control every write operation an agent performs. Whenever an agent proposes to create, update, or delete a resource, the chat pauses and presents a preview before anything takes effect. The preview format and available actions depend on the skill the agent is using. Review the preview, then confirm it to apply the change or dismiss it to discard it. Nothing is applied until you respond.
For example, when an agent updates a workflow, it shows the proposed change as a diff and waits for you to review it before applying:
![Preview panel showing proposed changes from an agent action before they are applied.](https://www.elastic.co/elastic/docs-builder/docs/3645/explore-analyze/ai-features/agent-builder/images/agent-builder-preview-changes.png)


#### Authorize a connector

<applies-to>
  - Elastic Cloud Serverless: Preview
  - Elastic Stack: Planned
</applies-to>

When an agent uses a [connector](https://www.elastic.co/elastic/docs-builder/docs/3645/explore-analyze/ai-features/agent-builder/connectors) to reach an external service that requires authorization, the chat pauses so you can grant access. Select **Authorize** to complete the sign-in flow for the connector, or **Deny** to decline. After you authorize, the agent retries the tool call and continues.
For example, an agent that needs to read your Notion workspace pauses until you authorize the connector:
![Authorization prompt with Authorize and Deny buttons](https://www.elastic.co/elastic/docs-builder/docs/3645/explore-analyze/ai-features/agent-builder/images/agent-builder-authorization-prompt.png)


#### Answer a clarifying question

<applies-to>
  - Elastic Cloud Serverless: Preview
  - Elastic Stack: Planned
</applies-to>

When your request is ambiguous, an agent can pause and ask you up to five multiple-choice questions instead of guessing. For each question, select one of the options, or choose the custom option and type your own answer. Some questions let you select more than one option. To move on without answering, select **Skip question**.
When there's more than one question, use **Back** and **Continue** to move between them, then select **Submit** on the last question. After you respond, the agent resumes. The agent's questions and your answers stay in the conversation, so you can revisit what was asked and how you responded.
For example, before creating a dashboard the agent might ask which sample data set to use:
![Clarifying question prompt showing multiple-choice options, a custom answer field, and a Skip question button](https://www.elastic.co/elastic/docs-builder/docs/3645/explore-analyze/ai-features/agent-builder/images/agent-builder-clarifying-question.png)


## Customize your agent

<applies-to>
  - Elastic Stack: Generally available since 9.4
</applies-to>

The **Customize** accordion in the left sidebar provides agent-scoped configuration for the currently selected agent. Expand it to access the following pages:
<definitions>
  <definition term="Overview">
    Displays a summary of the selected agent, including the total count of assigned skills and tools. Use the quick links to edit the agent's instructions or settings.
  </definition>
  <definition term="Skills">
    Lists the skills assigned to the current agent. Click a skill to open a read-only detail panel on the right side. To assign new skills, click **Add skill**. To view and manage all skills across the deployment, click **Manage all skills**. Skills you import into the library must be turned on with their toggle in this list before the agent can use them. For how skills work and how to manage them, refer to [Skills in Elastic Agent Builder](https://www.elastic.co/elastic/docs-builder/docs/3645/explore-analyze/ai-features/agent-builder/skills).
  </definition>
  <definition term="Plugins Elastic Stack: Preview since 9.4 Elastic Cloud Serverless: Preview">
    Lists the plugins assigned to the current agent. Each plugin bundles a set of related skills that install together. To assign a plugin, click **Add plugins**. To view and manage all plugins, click **Manage all plugins**.
  </definition>
</definitions>

<note>
  The **Plugins** option is hidden until you turn on the `agentBuilder:experimentalFeatures` [advanced setting](https://docs-v3-preview.elastic.dev/elastic/docs-builder/docs/3645/reference/kibana/advanced-settings#kibana-general-settings) in Kibana.
</note>

<definitions>
  <definition term="Tools">
    Lists the [tools](https://www.elastic.co/elastic/docs-builder/docs/3645/explore-analyze/ai-features/agent-builder/tools) assigned to the current agent. Click a tool to open a read-only detail panel. To assign new tools, click **Add tool**. To view and manage all tools, click **Manage all tools**.
  </definition>
</definitions>

![Customize accordion open](https://www.elastic.co/elastic/docs-builder/docs/3645/explore-analyze/ai-features/agent-builder/images/customize-your-agent-accordion.png)


## Manage components

<applies-to>
  - Elastic Stack: Generally available since 9.4
</applies-to>

The **Manage components** link at the bottom of the left sidebar exits the single-agent view. It provides an overview of all agents, skills, plugins, connectors, and tools available across the deployment.
<definitions>
  <definition term="Agents">
    View all agents in the deployment. The list displays each agent's name, visibility badge (**Public**, **Shared**, or **Read-only**), and any custom labels. From this page, you can create new agents, edit existing ones, or start a chat.
  </definition>
  <definition term="Skills">
    View and manage all skills available in the deployment. Create new skills or edit existing ones.
  </definition>
  <definition term="Plugins Elastic Stack: Preview since 9.4 Elastic Cloud Serverless: Preview">
    View and install plugins across the deployment. Install a plugin from a URL or by uploading a ZIP file. Each plugin bundles related skills that you can assign to agents.
  </definition>
</definitions>

<note>
  The **Plugins** option is hidden until you turn on the `agentBuilder:experimentalFeatures` [advanced setting](https://docs-v3-preview.elastic.dev/elastic/docs-builder/docs/3645/reference/kibana/advanced-settings#kibana-general-settings) in Kibana.
</note>

<definitions>
  <definition term="Connectors Elastic Stack: Preview since 9.4 Elastic Cloud Serverless: Preview">
    View and manage the agent builder connectors library, which gives agents access to external data sources and systems.
  </definition>
</definitions>

<note>
  The **Connectors** option is hidden until you turn on the `agentBuilder:experimentalFeatures` [advanced setting](https://docs-v3-preview.elastic.dev/elastic/docs-builder/docs/3645/reference/kibana/advanced-settings#kibana-general-settings) in Kibana.
</note>

<definitions>
  <definition term="Tools">
    View and manage all tools. The global Tools page includes a search bar, **Labels** filter, **Manage MCP** dropdown, **Manage agents** link, and **+ New tool** button.
  </definition>
</definitions>

![Manage component menu](https://www.elastic.co/elastic/docs-builder/docs/3645/explore-analyze/ai-features/agent-builder/images/manage-components.png)

<tip>
  You can also reach the global agents list from the **Manage agents** button in the [agent selector](#select-a-different-agent) dropdown.
</tip>


## Dashboards and visualizations

Agents can create and manage dashboards and visualizations directly in the conversation. To learn more, refer to [Dashboards and visualizations in chat](https://www.elastic.co/elastic/docs-builder/docs/3645/explore-analyze/ai-features/agent-builder/agent-builder-dashboards-and-visualizations).

## Agent Chat API

The Agent Chat API provides programmatic access to chat functionality through REST endpoints.

### Quick overview

For a quick overview of the REST API for conversations, refer to [Chat and conversations API](/elastic/docs-builder/docs/3645/explore-analyze/ai-features/agent-builder/kibana-api#chat-and-conversations).

### API reference

For the complete API reference, refer to the [Kibana API reference](https://www.elastic.co/docs/api/doc/kibana/operation/operation-get-agent-builder-conversations).