Skip to Content

AI Chat

Overview

AI Chat has been added to QueryPie. Users and administrators can perform various tasks in QueryPie through natural language. It is connected to the built-in MCP (Model Context Protocol) server in QueryPie ACP and supports Tool calls. The following are examples of tasks users and administrators can perform through AI Chat by access control area.

Database (DAC)

FeatureDescription
View DB connectionsCheck the list of database connections that I can access
Run SQLRun a single query (up to 1,000 rows)
Session queryRun multiple queries that require large result retrieval or transactions
Workflow requestRequest new DB access, schema permissions, or SQL execution approval
AI PreviewValidate schemas and analyze expected results without actually running SQL

Server (SAC)

FeatureDescription
View servers/rolesCheck accessible servers and assigned roles
Select roleActivate a role for access to a specific server
Shell sessionConnect to a server through SSH/SFTP and start a shell
Run commandsRun Linux/Windows commands in a started shell session
Web terminal integrationSend commands to a terminal session opened by the user in the web UI

Kubernetes (KAC)

FeatureDescription
View clustersCheck the list of accessible K8s clusters
Manage resourcesView/create/update/delete Pods, Deployments, Services, and more
Analyze clustersDiagnose cluster status and report issues
Check events/metricsView node metrics and cluster events

Admin

FeatureDescription
Manage access controlGrant/revoke DB/server/K8s roles, policies, and permissions
Manage connections/clustersRegister and update DB connection information, servers, and K8s clusters
Manage usersView user lists and activate/deactivate users in bulk
Audit logsView SQL execution history, server access history, command audits, and K8s request audits
Data masking/taggingManage sensitive data tags and masking policies

Other supporting features

FeatureDescription
Schema validationCheck actual table column names and types before writing SQL
Chart visualizationConvert query results to bar, line, pie, or area charts
YAML policy validationAutomatically validate YAML formats for SAC and KAC
Usage guideReference official specification documents and run automatic validation

Using AI Chat

To use AI Chat, an administrator must configure it in advance so users can use the feature.

Loading the chat window with the Ask AI button

Loading the chat window with the Ask AI button

  1. Click the Ask AI button on the right side of the top menu in QueryPie to open the chat panel.
  2. The chat panel slides in from the right. You can adjust the panel width by dragging the resize handle at the right edge.
  3. You can use the following features in the header area.
    • Conversation list buttonimage-20260602-031812.png : Opens a dropdown that shows the automatically generated conversation list.
    • New conversation buttonimage-20260602-032008.png : Click the pencil icon button to start a new conversation.
    • Tool listimage-20260602-032112.png : Click the wrench icon button to check the list of MCP Tools that AI can use, such as Database, Server, and User.
    • Full-screen toggle buttonimage-20260602-032232.png : Switches the chat panel to full screen.
    • Settings button image-20260602-032353.png : Click the gear icon to refresh the MCP Tool list.
    • Close image-20260602-032522.png : Click the button to close the chat panel.
  4. Enter a question in the chat input field at the bottom and send it.
image-20260602-032619.png
  • Model selection : Check the currently used LLM model and switch to another model within the same Provider.
  • Context information for the page you are currently viewing is entered automatically, such as a Database detail page or SQL Editor.
  • When you switch pages, the context changes and a warning message is displayed.
  1. AI generates an answer to the question. If needed, it calls MCP Tools and provides answers by referencing QueryPie data.
    • While a response is being generated, a spinning indicator is displayed at the bottom, and you can click the stop button to stop generation.
    • AI responses can include various artifacts, such as SQL code and charts.

AI Preview
When you click the AI preview button in the DAC Web editor toolbar, the AI chat window shows the expected execution result for the query. You can check the target schema structure, expected row count, expected performance, and potential issues without running the query.

Running AI Preview

Running AI Preview

Example AI Preview result

Example AI Preview result

AI responses are for reference only. For important tasks, make sure to verify the results.

Managing Conversation History

You can view and manage previous conversations.

  1. Click the hamburger menu (☰) button in the AI Chat panel header to open the recent conversations dropdown.
  2. In the dropdown, you can view and select up to five recent conversations, and you can start a new conversation with the New Chat button.
  3. The View All button appears at the bottom of the dropdown only when there are six or more conversations. Click it to open the conversation list sidebar.
  4. When the conversation list sidebar is open, you can use the following features.
    • Select conversation : Click a conversation in the list to display its contents.
    • Edit conversation title : When you hover over a conversation item, a more button () appears on the right. Select Rename and edit the title.
    • Favorites : Use the more button () menu that appears when you hover over a conversation item to add it to or remove it from favorites.
    • Delete conversation : Use the more button () menu that appears when you hover over a conversation item and select Delete to remove the conversation.
    • Load more : The Load more button appears at the bottom of the list only when there are additional conversation pages. Click it to load older conversations.

The current version does not provide conversation search.

Last updated on