AI

Learn how Draxlr AI answers plain-English questions about your database, writes and runs the SQL, picks a chart, and builds dashboards you can save and share.

Draxlr AI is a chat workspace for your data. Ask a question in plain English and Draxlr writes the SQL, runs it on your database, answers in a sentence or two, and picks a chart you can save or add to a dashboard.

Link: https://app.draxlr.com/ai


What is Draxlr AI?

Draxlr AI connects to your SQL database and helps you:

  • Ask questions about your data in plain English
  • Get a short written answer with the key numbers, next to the chart or table it came from
  • See, edit and re-run the SQL behind every answer
  • Refine results with follow-up questions, or pick from suggested ones
  • Reuse the logic of your existing saved queries and dashboard charts
  • Save results, download them, or add them to a dashboard
  • Build a complete dashboard from a single prompt

AI does not replace SQL in Draxlr. It writes the SQL for you and always shows you what it ran.


How Draxlr AI works

You start by asking a question, for example:

  • "Show the number of orders per employee"
  • "Which employees have more than 80 orders?"
  • "Monthly order count by country"

Draxlr AI then:

  1. Reads your database schema, along with any context you have added in Train AI and Fine-tune AI
  2. Picks the tables, fields, joins and aggregations it needs
  3. Writes a read-only SQL query and runs it on your database
  4. Writes a short answer from the actual results, with the key number in bold
  5. Opens the result in the results panel as a chart, table or number card

Here is a short interactive demo:

Step 1

Ask Draxlr AI a question about your data in plain English.

How the result is displayed

Unless you ask for a specific display, Draxlr AI picks one from the shape of the result:

ResultDisplay
A single valueNumber card
A trend over timeLine chart for more than 6 periods, bar chart for 6 or fewer
One or two numbers broken down by up to about 12 categoriesBar chart
Anything else (lists of records, many columns, long results)Table

You can ask for any display type, for example "show this as a pie chart" or "make it a pivot table". When only the display changes, the AI keeps the same query and updates the chart.

Defaults when you leave something out

If a sensible default exists, Draxlr AI uses it instead of asking, and says so in the answer:

  • A total or count with no time range covers all time.
  • A trend with no time range covers the last 12 months.
  • "Top" without a number returns the top 10.
  • "Recent" without a period means the last 30 days.

How answers are written

  • The first sentence answers the question directly, using the real values from your data.
  • Any assumption is stated at the end, for example "This covers the last 12 months." or "This includes cancelled orders."
  • For "top", "most" or "lowest" questions, ties are kept and named, so rows that share the last place are not dropped.
  • When you compare two periods or groups, the answer gives both values, the difference, and the percentage change.
  • If nothing matched, the answer says so and suggests how to broaden the question.

The AI workspace

Chat history

The left sidebar lists your previous chats, grouped by Today, Yesterday, Previous 7 days, Previous 30 days and month. From here you can:

  • Start a New chat
  • Search chats by name
  • Rename or Delete a chat from its options menu (you can also click the chat title at the top)
  • Open View schema to browse your tables and fields while you write a question
  • Open Train AI to improve answers for your business
  • Check how many AI credits you have left

Results panel

Each answer that runs a query adds a result card to the chat. Click a card to open it in the results panel on the right. Use the arrows in the panel header to move between the steps of the conversation, and drag the panel edge to resize it.

The panel has up to three tabs:

  • Visualization: the chart, table or number card. Click a chart to drill down, and click Reset to go back to the full result.
  • Result: the rows behind a chart or number card.
  • SQL: the generated SQL. You can edit it, run it, and copy it. An Edited badge appears once you change it.

From the panel header you can also:

  • Download the result as Excel (xlsx) or CSV
  • Save the result as a saved query
  • Add to dashboard, choosing from a searchable list of your dashboards
  • Open More actions to Copy SQL, Re-run the query, or open it in the Raw SQL editor with Advanced options

Variables

If the SQL uses variables, a variables bar appears above the result. Change a value and run the query to update it. Until you run it, the panel shows which values the current result is based on. Click Reset to go back to the last values you ran. If a variable has no value yet, the panel asks you to set one before the query runs.

You can also set variable values by asking, for example "set the country to Germany".


Follow-up questions

Keep asking in the same chat to refine a result. Follow-ups such as "only for 2025", "group by country" or "sort by revenue" change the current query and keep its joins, filters and display. A new, unrelated question starts a fresh query.

Suggested questions

After an answer, Draxlr AI suggests two or three natural next questions, such as a breakdown by a related field or a comparison with the previous period. Click one to ask it.

When nothing matches a value

If a question filters on a value that does not exist, for example a misspelled customer or product name, Draxlr AI looks up the closest values stored in that field. The answer names the closest match and offers the matching values as suggestions, so you can pick the right one with a click.

Clarifying questions

When guessing would likely give a wrong answer, Draxlr AI asks a short question first and offers options you can click. This happens when:

  • A metric could map to several fields or tables, for example "revenue" when there are several amount fields
  • A business metric depends on which records count, such as whether cancelled orders count towards revenue, and it is not defined in Train AI
  • Nothing in the schema matches what you asked for
  • A follow-up like "compare them" could refer to more than one earlier result

Save definitions to Train AI

When you answer a clarifying question about what a term means, the answer shows the Definition used, for example "Revenue is the sum of orders.total_amount, excluding cancelled orders." Click Save to Train AI next to it to add the definition to your Train AI context. The AI then uses it in every future chat without asking again, and the answer shows Saved to Train AI.

Note:

Saving definitions requires full access and a plan that includes Train AI. Saved definitions count towards your Train AI character limit.


Rewind, edit and retry

  • Rewind to here and edit: hover over one of your messages and click the rewind icon. That message and everything after it are removed from the chat, and your message is put back in the box so you can change it and send it again.
  • Rewind to this step: in the results panel, go back to the selected step and continue the conversation from there.
  • Try again: if an answer fails, retry it without retyping your question.

Use your saved queries and charts

You can point Draxlr AI at one of your existing saved queries, or at a chart on a dashboard, by name. For example:

  • "Use the same logic as my Active Users query, but for last month"
  • "Copy the axes of the Revenue by Month chart on my Sales dashboard"

Draxlr AI searches your saved queries and lists the closest matches. Click Use on the right one, or open it in a new tab first to check. If none of them fit, click None of these and ask again with the exact name. Once a saved query is used, the answer links to it.


Build a dashboard with AI

Ask for a dashboard, or for several separate metrics at once, and Draxlr AI builds a whole dashboard instead of a single query. For example:

  • "Build a sales dashboard"
  • "Create a dashboard with revenue, new customers and top products"

Draxlr AI drafts up to 20 widgets and a layout from your prompt. This can take a minute. When the dashboard is ready, Draxlr takes you to it, or you can click Stay here to remain in the chat and open it later with Open dashboard. If the queries use variables, matching dashboard filters are created for you.

A chat that builds a dashboard is only for that dashboard. Click New chat to keep exploring your data.


Other places to use AI

  • Raw SQL editor: click Get help from AI in the Raw SQL editor to ask the AI to write or change the query you are working on.
  • Dashboards: on a widget that was created with AI, open the widget menu and choose Edit with AI, then describe the change you want, for example "show this as a line chart" or "only include paid orders". This option is hidden while dashboard filters are applied.

Data access and safety

  • Draxlr AI only writes read-only queries. It never changes your data.
  • It only uses the tables and fields you have access to, based on your access level.
  • It never uses tables or fields that are hidden in Fine-tune AI. If a question needs hidden data, the AI says it can't answer instead of working around it.

AI credits

Each question uses AI credits from your plan's monthly allowance. The sidebar shows how many credits you have left, and the question box shows which AI model is answering. When your credits run out, upgrade your plan to keep asking questions and building dashboards.


When to use Draxlr AI

Draxlr AI is ideal when you want to:

  • Quickly explore an unfamiliar database
  • Answer ad-hoc questions without writing SQL
  • Prototype a query before refining it by hand
  • Build charts and dashboards faster
  • Let non-technical teammates work with data safely

For complex or highly customized queries, open the SQL tab or click Advanced options to continue in the Raw SQL editor.

For better answers, teach Draxlr AI about your business with Train AI and Fine-tune AI.