Dashboards and visualizations in Elastic Agent Builder chat
Agents can create and manage dashboards and visualizations directly in the conversation. Send a message like "create a dashboard to monitor host CPU and memory usage" and the agent builds a dashboard with ES|QL-powered visualization panels.
This functionality is powered by the built-in dashboard-management and visualization-creation skills, along with the dashboard tools and visualization platform tools.
Building dashboards manually requires knowing which indices to query, how to write the right visualizations, and how to arrange panels. Agent-generated dashboards let you skip that process and go from a question to a working dashboard in seconds. This is particularly useful when you need to:
- Get started with dashboards: If you are new to Kibana dashboards, you can learn by asking the agent to create visualizations and exploring the results. This lowers the barrier to entry and helps you understand dashboard capabilities without needing to learn the editor first.
- Investigate ad hoc: During an incident, ask the agent to build a dashboard showing the relevant metrics so you can triage without leaving the conversation.
- Explore unfamiliar data: When you are working with a new data source, ask the agent to visualize key fields so you can understand what is available before building something more permanent.
- Prototype and iterate: Describe the dashboard you want in plain language, refine it through conversation, and save it only when you are satisfied with the result.
The full-screen standalone chat mode provides the best experience for working with dashboards. Dashboards also work in sidebar mode, but the larger canvas area in standalone mode makes it easier to preview and interact with dashboard content.
When an agent creates a dashboard, it describes the contents in the conversation and attaches the dashboard to the message. Dashboards are both inputs and outputs: the agent can reason about the panels in an attached dashboard when answering follow-up questions.
The following example walks through creating a dashboard from a natural language request.
-
Ask the agent to create a dashboard
Describe what you want to visualize. The agent creates the dashboard and responds with a description of the contents and a Preview button.
-
Preview the dashboard
Select Preview to open the dashboard in a canvas alongside the conversation.
-
Save or refine
From here, you can use the buttons in the canvas toolbar:
Select Save to save the dashboard as a Kibana saved object. Select Edit in Dashboards to open the dashboard in the Dashboards app for further editing.
You can also continue chatting to refine the dashboard. For example, ask the agent to add panels, change chart types, update metrics, or rearrange the layout.
Individual visualizations display inline in the conversation when you ask for a single chart or metric.
Agent-created dashboards start as in-memory attachments in the conversation. You can save them as Kibana objects when you are ready, and pull in changes if the saved dashboard is edited outside the conversation.
Dashboards that agents create are in-memory by default. They exist only as conversation attachments and are not saved as Kibana objects until you choose to save them. This means you can iterate on a dashboard through conversation without creating unnecessary saved objects.
To save an agent-created dashboard as a Kibana saved object:
- Select Save on the dashboard preview.
- Review the title and description (pre-filled by the agent), add optional tags, and configure permissions.
- Select Save.
After saving, you can open the dashboard in the Dashboards app for further editing using the full dashboard editor.
Saving a new version of the dashboard from the same conversation overwrites the existing saved dashboard.
If you save a dashboard and then edit it in the Dashboards app, the conversation detects the changes. A notification appears with the message "Some attachments are outdated", and you can select Use updated versions to pull the latest changes back into the conversation.
The agent preserves your external edits when making further updates. You can also go back to any previously generated version of a dashboard in the conversation and save that version instead.
Agents create ES|QL-powered visualizations. If a dashboard contains data view-based visualizations, the agent asks to replace them with ES|QL equivalents when making changes.
Agents can also create markdown panels and collapsible sections.