---
title: "Text to SQL in Atlas BI: Generate SQL Queries with AI"
description: Turn natural language into SQL with the AI SQL Assistant in Atlas BI. Review the query, save it as a live query and export results to CSV or JSON.
---

[Skip to content](https://support.dataslayer.ai/atlas-bi-text-to-sql-ai#main-content)

- [English](https://support.dataslayer.ai/atlas-bi-text-to-sql-ai)
- [Español](https://support.dataslayer.ai/es/atlas-bi-text-to-sql-ai)

English

Show submenu for translations

[![Dataslayer](https://support.dataslayer.ai/hs-fs/hubfs/Dataslayer_New_Logo.png?height=35&name=Dataslayer_New_Logo.png)](https://www.dataslayer.ai/)

Open main navigation

Close main navigation

- - [English](https://support.dataslayer.ai/atlas-bi-text-to-sql-ai)
    - [Español](https://support.dataslayer.ai/es/atlas-bi-text-to-sql-ai)

  English
  
  Show submenu for translations

 Hello. How can we help you?

- There are no suggestions because the search field is empty.

1. [Knowledge base](https://support.dataslayer.ai/?hsLang=en)
2. [Dataslayer Atlas](https://support.dataslayer.ai/dataslayer-atlas?hsLang=en)

December 1, 2026

# Text to SQL in Atlas BI: Generate SQL Queries with AI

## Ask in natural language, review the generated SQL and save, chart or export the results.

Atlas BI, the all-in-one BI platform by Dataslayer, lets you query your data with SQL or with AI.

In SQL Workbench, in the Data Warehouse tab, the AI SQL Assistant turns natural language into SQL. You describe what you want to analyze, and Atlas generates the query, runs it and returns the results, so you can work with SQL even if you don't write it yourself.

### How do I turn natural language into a SQL query?

1. In SQL Workbench, open a table and create a new SQL query from it. Atlas opens the query with the table already connected, starting with SELECT \* FROM the table.
2. Switch from **SQL** to **AI**.
3. Describe in natural language what you want to analyze.

The AI SQL Assistant works with the open query and the selected table. It generates the query, runs it and shows the results.

For example: "Show me the campaigns with the highest CTR, considering only campaigns with at least 1,000 impressions."

### How do I review and edit an AI-generated query?

Before showing the results, Atlas explains what it did:

- **A summary of the query**, for example: it calculates the CTR, keeps the campaigns with at least 1,000 impressions and orders them from the highest CTR to the lowest.
- **The assumptions it made** while interpreting your request, for example which field it used as the campaign identifier.

![AI SQL Assistant in Atlas BI showing the query summary and the assumptions it made](https://support.dataslayer.ai/hs-fs/hubfs/undefined-Dec-01-2026-10-35-47-2324-AM.png?width=670&height=410&name=undefined-Dec-01-2026-10-35-47-2324-AM.png)

You can also expand the generated SQL to check that the fields, calculations, filters, grouping and sorting match your question.

If you want more control, select **Edit in SQL**. Atlas switches back to the SQL editor, where you can adjust the query and run it again.

### How do I save a query to use it again?

Save the query and give it a clear name that explains its purpose, for example "Top Campaigns by CTR".

Atlas saves it as a **live query**: its results are recalculated every time you use it, so you can come back to the same analysis without rebuilding it. Your saved queries appear in Overview and in the SQL Workbench explorer.

Deleting a saved query is permanent and it can't be recovered.

### What can I do with the query results?

From the results, you can:

- **Visualize them:** switch to **Visualization** and Atlas creates a chart from the current results page. You can change the metric shown in the chart.
- **Materialize them as a table:** keep the result as a separate table in your warehouse for future analysis.
- **Share them:** manage share links to the results.
- **Copy them**.
- **Export them** as CSV or JSON.

### Watch the video

[SQL and AI in Atlas BI | Generate Queries & Analyze Results](https://www.youtube.com/watch?v=veRdLcRN2yE)

<iframe width="256" height="145" src="https://www.youtube.com/embed/veRdLcRN2yE?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen title="SQL and AI in Atlas BI | Generate Queries &amp; Analyze Results" style="position: absolute; top: 0px; left: 0px; width: 100%; height: 100%; border-width: medium; border-style: none; border-color: currentcolor; border-image: none;"></iframe>

 

As always, please contact us via our live chat on [our website](http://dataslayer.ai/) or [via email](mailto:info@dataslayer.ai) if you still have doubts or questions. We are happy to help!

- [General](https://support.dataslayer.ai/general?hsLang=en)
- [Billing & Pricing](https://support.dataslayer.ai/billing-pricing?hsLang=en)
- [Data Sources](https://support.dataslayer.ai/data-sources?hsLang=en)
- [Blended Connectors](https://support.dataslayer.ai/blended-connectors?hsLang=en)
- [Google Sheets](https://support.dataslayer.ai/google-sheets?hsLang=en)
- [Microsoft Excel](https://support.dataslayer.ai/microsoft-excel?hsLang=en)
- [Spreadsheets](https://support.dataslayer.ai/spreadsheets?hsLang=en)
- [Looker Studio](https://support.dataslayer.ai/looker-studio?hsLang=en)
- [Big Query](https://support.dataslayer.ai/big-query?hsLang=en)
- [API Query Manager](https://support.dataslayer.ai/api-query-manager?hsLang=en)
- [Power BI](https://support.dataslayer.ai/power-bi?hsLang=en)
- [Amazon S3](https://support.dataslayer.ai/amazon-s3?hsLang=en)
- [Amazon Redshift](https://support.dataslayer.ai/amazon-redshift?hsLang=en)
- [Snowflake](https://support.dataslayer.ai/snowflake?hsLang=en#main-content)

    - [Marketplace](https://support.dataslayer.ai/snowflake?hsLang=en#marketplace)
- [Google Cloud Storage](https://support.dataslayer.ai/google-cloud-storage?hsLang=en)
- [Database](https://support.dataslayer.ai/database?hsLang=en)
- [Azure SQL](https://support.dataslayer.ai/azure-sql?hsLang=en)
- [Azure Storage](https://support.dataslayer.ai/azure-storage?hsLang=en)
- [Dataslayer Atlas](https://support.dataslayer.ai/dataslayer-atlas?hsLang=en)
- [Morpheus](https://support.dataslayer.ai/morpheus?hsLang=en)
- [AI Looker Studio Analyzer](https://support.dataslayer.ai/ai-looker-studio-analyzer?hsLang=en)
- [Dataslayer MCP](https://support.dataslayer.ai/dataslayer-mcp?hsLang=en)
- [Dataslayer AI Chat](https://support.dataslayer.ai/dataslayer-ai-chat?hsLang=en)

[![Chill listening crop-3](https://support.dataslayer.ai/hs-fs/hubfs/Dataslayer_New_Logo.png?width=142&height=24&name=Dataslayer_New_Logo.png "Chill listening crop-3")](https://dataslayer.ai/)

Dataslayer.ai: Digital Marketing Reporting Made Easy

<https://www.linkedin.com/company/dataslayer/> <https://www.youtube.com/@dataslayers>

Copyright © 2026, DATASLAYER SL