Exploring Kibana Custom Panels: Building an AI-Powered Executive Dashboard with Natural Language Prompts
1. Introduction
Effective dashboards are not just about displaying charts and metrics; they are about presenting data in a way that helps teams understand important information and make informed decisions.
Kibana provides several visualization options, including charts, tables, and maps. However, some requirements demand more flexibility, such as custom KPI scorecards, dynamic status boards, executive summaries, and conditional formatting.
In Elastic 9.6, Kibana Custom Panels were introduced, allowing users to create tailored visualizations using HTML, CSS, and Elasticsearch Query Language (ES|QL).
2. Understanding Kibana Custom Panels

Kibana Custom Panels extend dashboard capabilities beyond traditional visualizations. Instead of relying exclusively on predefined chart types, users can create custom visual components using:
- ES|QL: Retrieves and processes data from Elasticsearch.
- HTML/CSS: Defines the layout and appearance of the panel.
- Liquid templates: Inserts query results into the HTML template.
With Elastic AI Agent, users can describe their visualization requirements in natural language. The agent can generate the corresponding ES|QL query and HTML/CSS template.
Examples include:
- Custom KPI scorecards and status indicators.
- Infrastructure and service health boards.
- Conditional formatting tables.
- Data flow visualizations.
- Executive summaries and information panels.
Once saved, Kibana executes the associated query and populates the template with the latest results. AI assists with creating and refining the panel; it does not regenerate the design every time the dashboard loads.
Custom Panels are particularly useful when standard visualizations cannot meet specific presentation requirements.
3. Building an Executive Security Dashboard
To explore this capability, we used an existing FortiGate Firewall Syslog dataset indexed in Elasticsearch.
The dataset contained network activity information, including connection actions, source and destination IP addresses, and firewall events.
Rather than creating another traditional firewall monitoring dashboard, the objective was to generate an executive-level security dashboard using Elastic AI Agent.
The dashboard requirements included:
| Section | Objective |
|---|---|
| Executive Security Overview | Present key security metrics |
| Network Traffic Intelligence | Analyze network traffic patterns |
| Threat Detection | Highlight potentially suspicious activity |
| Network Exposure | Identify frequently targeted endpoints |
| Executive Risk Register | Present observations and recommended actions |
| Intelligence Summary | Communicate important findings |
This structure provided the AI Agent with a clear understanding of the dashboard's purpose and intended audience.
4. Prompt Used to Generate the Dashboard
Instead of requesting individual charts, we provided Elastic AI Agent with a detailed prompt describing the dashboard's audience, structure, analytical requirements, and visual design.
The objective was to evaluate how effectively the agent could translate a complete dashboard requirement into custom visualizations. The prompt given is as follows:
FortiGate Security and Network Intelligence Command Center
Dashboard Objective
Build an enterprise-grade Executive Network Security and Infrastructure Intelligence Dashboard using the available FortiGate Firewall Syslog data in Elasticsearch.
The dashboard should be suitable for CIOs, CTOs, CISOs, and senior IT management. Use custom HTML/CSS panels to create an organized executive experience rather than a basic collection of charts.
1. Executive Overview and KPIs
Display total firewall events, allowed and denied connections, unique source and destination IPs, traffic volume, and the latest event timestamp.
Create KPI cards with values and trend indicators where the available data supports them.
2. Network Traffic Intelligence
Analyze connection patterns, source and destination IPs, ports, protocols, applications, firewall policies, and interfaces.
3. Threat Detection and Risk Analysis
Highlight repeated denied connections, unusual traffic patterns, frequently targeted addresses, IPS detections, and antivirus events where available.
Distinguish denied connections from confirmed malicious activity.
4. Executive Risk Register
Create a table containing security observations, affected assets, supporting evidence, severity, and recommended actions.
5. Intelligence Summary
Provide an overview of security posture, network behavior, significant observations, and recommended management actions.
All insights must be based on actual Elasticsearch query results.
6. Technical Requirements
Inspect available Elasticsearch fields and mappings before generating queries. Use valid ES|QL queries, avoid double-counting, handle missing fields, and respect dashboard filters and time ranges.
Do not fabricate metrics, incidents, or security findings.
The final dashboard should provide management with an immediate understanding of network activity, security observations, and areas requiring attention.
The prompt was intentionally designed to test complete dashboard generation rather than the creation of individual visualizations.
5. The Result: An AI-Generated Executive Dashboard
After submitting the prompt, Elastic AI Agent generated a dashboard containing multiple analytical sections and custom visual components.

6. Key Capabilities of Custom Panels
The experiment demonstrated several useful capabilities of Kibana Custom Panels.
1. AI-Assisted Development:
Users can describe their visualization requirements in natural language, allowing Elastic AI Agent to generate the required query and template. Additional prompts can be used to refine the output.
2. Flexible Visualizations:
HTML/CSS provides greater flexibility for creating custom layouts, KPI cards, status boards, and conditional formatting tables beyond predefined visualization types.
3. Live Elasticsearch Data:
Custom Panels use ES|QL queries to retrieve Elasticsearch data and populate their visual components.
4. Dashboard Filter Integration:
Supported Custom Panels can work with dashboard time pickers, KQL queries, filter pills, and controls, allowing users to explore different subsets of data.
5. Reusable Templates:
The generated HTML/CSS template is saved with the dashboard. Kibana executes its associated query when the dashboard loads, maintaining a consistent visual structure.
6. Natural Language Refinement:
Users can request changes to layouts, KPI cards, severity indicators, spacing, and table formatting through additional prompts.
These capabilities make custom dashboard development more flexible and accessible.
7. Technical Considerations
Although AI simplifies dashboard development, generated panels still require technical validation before production use.
Important considerations include:
- Query accuracy Validate generated ES|QL queries and their results.
- Field availability Confirm that the required fields exist in Elasticsearch.
- Aggregation accuracy Check calculations and prevent duplicate counting.
- Filter compatibility Verify that dashboard filters and time ranges work correctly.
- Visual consistency Review layout, readability, and responsiveness.
- Sandbox restrictions Custom Panels run in a sandbox that blocks JavaScript execution and external resources.
Each Custom Panel supports one ES|QL query, so requirements involving multiple data sources may need separate panels. Liquid templates are used to insert query results into the HTML.
These considerations are essential when moving from experimentation to production deployment.
8. Where Can Custom Panels Be Used?
Custom Panels can support different Elastic use cases depending on the available data and visualization requirements.
- Security Operations: Security posture summaries, threat indicators, and investigation tables.
- Observability: Application health cards, service status boards, and performance summaries.
- Infrastructure Monitoring: Host availability, CPU and memory utilization, and resource monitoring.
- Business Intelligence: Executive scorecards and management reporting.
- Application Monitoring: Request flows, endpoint health, and application performance indicators.
This flexibility allows organizations to build dashboards around the information their teams actually need.
9. Conclusion
Kibana Custom Panels introduce a flexible approach to dashboard development by combining natural language prompting, ES|QL queries, and HTML/CSS templates.
Our experiment demonstrated how Elastic AI Agent could transform a detailed dashboard requirement into an executive security dashboard containing KPI cards, traffic analysis, threat indicators, and risk summaries.
Although AI accelerates initial development, technical knowledge and query validation remain essential for producing accurate and reliable dashboards.
For Qavi Technologies, exploring these capabilities demonstrates how the Elastic Stack can support more tailored visualization and reporting requirements beyond traditional monitoring dashboards.
The real value of Custom Panels lies in giving organizations greater control over how their data is presented, understood, and used for decision-making.
10. Resources
Kibana custom panels: Any dashboard visual from a prompt
More Blogs
Discover the latest insights and trends in technology with the Qavi Tech Blog. Stay updated with expert articles, industry news, and innovative ideas.
Planning an Elastic Deployment? Get the Official Checklist (Free PDF)
Reduce risks, improve performance, accelerate go-live.

