🤖 AI Assistant

From writing SQL to understanding data — AI is built into querying, diagnosis, analysis, and automation.

You bring your own API key. Works with OpenAI, Anthropic, DeepSeek, and compatible endpoints.

NL2SQL

Natural language → SQL

Describe what you need. DataZen uses the current database schema as context and streams SQL you can run or edit.

  • Schema of the current connection is included automatically
  • Streaming output — stop anytime
  • One-click run, or send to the editor
  • Supports OpenAI, Anthropic, DeepSeek, and custom endpoints
NL2SQL natural language SQL generation
SQL Error Diagnosis

After an error, no more guessing from docs

When a query fails, click "Diagnose". AI combines the error message and schema to pinpoint the cause and suggest corrected SQL — apply it to the editor in one click.

  • Structured display: original error + AI analysis + fix suggestions
  • One-click apply corrected SQL — no manual editing
  • Handles common syntax, column name, and type mismatch issues well
SQL error diagnosis
EXPLAIN Analysis

EXPLAIN insights

See the plan, spot the bottleneck, and get plain-language optimization hints.

  • Visual execution plan — scan type, rows, cost at a glance
  • AI highlights slow nodes and suggests improvements
  • Supported on built-in drivers such as PostgreSQL and MySQL
EXPLAIN analysis
AI Chat Sidebar

AI Chat sidebar

Chat with full context of the current connection — schema-aware answers, not generic guesses. Streaming replies; reasoning models supported where the provider allows.

  • Auto-injects Schema context — no need to paste DDL manually
  • @ references local files (with size and path limits)
  • One-click extract code blocks as SQL into the editor
AI Chat sidebar
Smart Filters

Table filters in plain language

"Amount greater than 1000 and status is shipped" — type natural language in the filter box. AI parses it into structured filter conditions and applies them, with column validation and null operators handled automatically.

  • Natural language → structured filter conditions, viewable and editable anytime
  • Validates against current table column names to avoid typos
  • Works seamlessly with sort, pagination, and virtual scrolling
Natural language filters
More AI Capabilities

Beyond querying

  • Schema documentation: one-click Markdown docs for your database structure
  • Connection troubleshooting: when connections fail, diagnose SSL / SSH / timeout settings
  • Query history analysis: auto-summarize categories and purposes of past queries
  • Configurable prompts: driver-level + user-level overrides; AI responses follow UI language
More AI capabilities

Model support

Provider Notes
OpenAI Official API or compatible gateways
Anthropic Claude models
DeepSeek Including reasoning-capable models
Custom endpoint Any OpenAI-compatible service (e.g. local inference)
Dynamic model list: after you add an API key, available models are listed automatically — no manual model names required. Streaming is supported.

Work with external AI tools

🖥️

Expose DataZen to MCP clients

Expose database query, schema, EXPLAIN, and workflows to MCP-compatible clients — including headless use.

🔌

Extend AI in chat

In chat, connect external MCP servers (files, search, third-party tools) to extend what AI can do.