# Explore Assistant

Source: https://userguide.qualytics.io/explore/deep-dive/explore-assistant/

The **Explore Assistant** is AgentQ docked beside your workspace. It writes and fixes SQL for the workspace you have open, proposes charts of its results, answers questions about the tables you are querying and, when your deployment allows it, about the rows your query returned. It proposes; you decide. Nothing it suggests reaches the editor until you apply it, and nothing runs until you run it.

## The Docked Panel

The assistant opens as a panel on the right of a workspace, on the Explore page and on the **Explore** tab of a datastore or a container. Its chat is titled **Explore Assistant**. On these pages the floating AgentQ window stays out of the way, because the panel takes its place.

| Behavior | What happens |
| --- | --- |
| **When it shows** | Once the open workspace has a datastore. On the Explore page, that means after you pick one. |
| **Resize** | Drag the panel's left edge to widen it. It cannot be made narrower than its starting width. Your browser remembers the width. |
| **Minimize** | **Minimize**  folds the panel into a narrow **AgentQ** bar. Select the bar, or **Expand AgentQ** , to open it again. On the datastore and container tabs the panel starts minimized on smaller screens, so the workspace keeps the room. |
| **Narrow screens** | The panel does not appear on narrow screens, such as phones and small tablets. |
| **No AI provider** | The panel needs AgentQ configured with an AI provider. Without one, it does not appear. See [Add Integration](https://userguide.qualytics.io/agentq/how-tos/integration/add-integration/). |

## One Chat per Workspace

Each workspace has its own Explore Assistant chat. Opening a workspace brings back its conversation, and switching to another workspace switches the chat with it, so what you discussed about one query never mixes with another.

These chats belong to their workspaces. They are kept out of your AgentQ chat history, so they do not appear in the AgentQ chat list. To read one again, open its workspace.

## What the Assistant Knows

What the assistant learns about your workspace depends on the data sharing level your administrator set for AgentQ. See [AgentQ Access Controls](https://userguide.qualytics.io/agentq/deep-dive/access-controls/).

| Data sharing level | What the assistant receives from the workspace |
| --- | --- |
| **Nothing about your data** | Nothing about the workspace: not its SQL, its tables, or its results. It can still answer general questions about SQL and Qualytics. |
| **Metadata shared** | The workspace name, its datastore and SQL mode, the tables the SQL can read with their fields and types, and the SQL with the values in it hidden. After a run, the result's columns, their types, which ones are masked, and the row count. If the run failed, only that it failed: the error message is not shared. |
| **Source data shared** | Everything above, with the SQL as written and the full error of a failed run. It can also read the rows of your last result. |

### Reading Results

The assistant reads result rows only at the **Source data shared** level. It reads them from the result your last run kept, a page at a time, without running the query again. It reads your own result only, and only while the result is still open. Long text values are cut short.

When it reads a result, masked columns come back masked, the same as in the grid, even if you revealed them for yourself.

At the lower levels the assistant can still help with a result's shape (its columns and row count, at **Metadata shared**), but it cannot see the values.

## Proposed Queries

When you ask for a query, the assistant answers with a **Proposed query** card. The card shows the datastore, a short title, a sentence on what the query does, and the SQL. A query in Spark SQL carries a **Spark SQL** tag, whose tooltip reads `Spark SQL over the datastore's containers. Apply switches the workspace to it`. When the assistant proposes a chart with the query, the card adds a **Chart, drawn once the query runs** section with the chart's settings. See [Proposed Charts](https://userguide.qualytics.io/explore/deep-dive/explore-assistant/#proposed-charts).

| Control | What it does |
| --- | --- |
| **Copy** | Copies the proposed SQL. |
| **Apply** | Puts the SQL in the editor of the open workspace, replacing what was there. It does not run it. |
| **Apply & run** | Applies the SQL, then runs it. |
| **Outdated** | Shown on older cards. Only the newest proposal in the chat, a query or a chart, can be applied. |

When you apply a proposal:

- **The changed text is highlighted** until you click in the editor, so you can see what the proposal changed.
- **The SQL mode follows the proposal.** A Spark SQL proposal switches the workspace to Spark SQL, and a proposal in the datastore's own SQL switches it back. See [SQL Modes](https://userguide.qualytics.io/explore/deep-dive/sql-modes/).
- **An Untitled workspace takes the proposal's title.** A workspace still named **Untitled** (or **Untitled 2**, and so on) is renamed after the proposal, and the card says so before you apply it: `Apply renames “Untitled” to “<title>”`. A workspace you named keeps its name.
- **A minimized editor opens**, and any selection is cleared, so the whole proposal is what runs next.
- **A chart that came with the query waits for its run.** Once that query runs and returns rows, the chart is drawn on the result. Opening another workspace first drops the waiting chart.

**Apply & run** runs the query only once it may run. If running is blocked (for example, the query reads a datastore where you do not have the **Author** team permission), the query stays in the editor and a message says why it did not run.

To work through a proposal, see [Apply a Proposed Query](https://userguide.qualytics.io/explore/how-tos/explore-assistant/apply-a-proposed-query/).

### SQL in Replies

The assistant normally delivers queries as cards. When a reply writes SQL in a code block instead, the block gets its own **Apply** and **Apply & run** buttons, which work the same way. A reply that already holds a proposal card does not add them.

## Proposed Charts

When you ask for a chart, or click **Suggest a chart**  in the chart settings, the assistant answers with a **Proposed chart** card. The card shows the chart type's icon, a sentence on why the chart fits, and the chart's settings in the words the chart settings use:

| Row | What it shows |
| --- | --- |
| **Type** | Bar, Line, or Scatter. |
| **X axis** | The X column, with its span for a date, for example `order_date, by month`. |
| **Y axis** | What is plotted, for example `Sum of amount`, or `Rows` when it counts rows. |
| **Sort** | The order, for example `Sum of amount, high to low`. A scatter has no sort. |

**Apply** draws the chart on the workspace's result (its tooltip reads `Draw it on the result's chart`). An older card reads **Outdated**, with the tooltip `A newer proposal replaces this one`.

When you apply a proposed chart:

- **The results open on Chart**, with the proposed settings, and the settings the chart changed are highlighted in purple until you click or move into the settings.
- **With no result yet**, a message says `Run the query, and the chart draws on its result`, and the chart is drawn once a run returns rows.
- **When the result lacks a column the chart names**, nothing changes, and a message says `The chart did not apply` with `The result does not have the columns it names`.

When a chart needs columns the result does not have, the assistant is asked to propose a query that returns them, with the chart on the query's card. A proposed chart changes only the chart: it never changes the SQL or runs the query. See [Charts](https://userguide.qualytics.io/explore/deep-dive/charts/) and [Apply a Proposed Chart](https://userguide.qualytics.io/explore/how-tos/explore-assistant/apply-a-proposed-chart/).

## Fix with AgentQ

When a query fails, its error card offers **Fix with AgentQ** . It sends the assistant a request to fix the query. At the **Source data shared** level the request includes the error message. At lower levels it does not, so the assistant works from the SQL and the tables it knows. The fix comes back as a proposal card to apply like any other.

To fix a failed query step by step, see [Fix a Failed Query](https://userguide.qualytics.io/explore/how-tos/explore-assistant/fix-a-failed-query/).

## On a Container's Explore Tab

On a container's **Explore** tab, the assistant works with the container's custom columns instead of free SQL. When you ask for a derived value, it answers with a **Proposed column** card. Its header reads **Proposed column** with the container's name and the assistant's reason for the column, and the card shows the column's name and its Spark SQL expression.

| Control | What it does |
| --- | --- |
| **Apply & run** | Adds the column to the workspace's custom columns and runs the workspace, so you see its values. A custom column with the same name is replaced. |
| **Save as Computed Field** | Adds the column, runs the workspace, and opens the computed field form filled in with it, ready for you to save. |
| **Outdated** | Shown on older cards. Only the newest proposal can be applied. |

Adding a custom column needs the **Author** team permission or higher on the datastore. Without it, applying the card shows `The column was not added` with `Custom columns need Editor or Author permission.` Saving it as a computed field also needs a profiled container and the permission to create fields. When either is missing, **Save as Computed Field** still adds and runs the column, then shows `The column was added but not saved`. For filters, the assistant suggests a `WHERE` clause in its reply for you to write in the filter. See [Datastore and Container Tabs](https://userguide.qualytics.io/explore/deep-dive/datastore-and-container-tabs/).

## What It Changes

In your workspace, the assistant proposes and you act:

- It never runs your query. A query runs only when you select **Run** or **Apply & run**.
- It never changes the editor until you apply a proposal, and a proposed chart never changes it at all.
- It never saves a proposed column as a computed field. **Save as Computed Field** opens the form for you to save.

The assistant is AgentQ, with the same tools as in the full-page chat. When you ask it to, it can create assets such as a computed table or a quality check, under your own permissions, and a delete or an archive waits for you to confirm it on a card. See [Tool Catalog](https://userguide.qualytics.io/agentq/deep-dive/tool-catalog/).

## The Same Tools Through MCP

The tools behind the assistant (proposing a query, proposing a custom column, and reading the rows of a result) are also on the Qualytics MCP server, so external AI clients can call them. They need a client authorized with the `write` scope. The AgentQ data sharing level does not apply to external clients: what they receive follows your role, your team permissions, and the client's scope. See [MCP](https://userguide.qualytics.io/using-the-platform/mcp/) and [MCP Permissions](https://userguide.qualytics.io/using-the-platform/mcp/deep-dive/permissions/).

---

## See Also

- **Datastore and Container Tabs**

  The Explore tab of a datastore, and the Explore tab of a table or file with its fields, filter, and custom columns.

  [Datastore and Container Tabs](https://userguide.qualytics.io/explore/deep-dive/datastore-and-container-tabs/)
- **Examples**

  Questions people answer with Explore, and the queries and settings that answer them.

  [Examples](https://userguide.qualytics.io/explore/deep-dive/examples/)
- **Best Practices**

  Habits that keep queries fast, results trustworthy, and masked data protected.

  [Best Practices](https://userguide.qualytics.io/explore/deep-dive/best-practices/)
- **Permissions**

  The user roles and team permissions behind running SQL, revealing masked values, and reviewing history.

  [Permissions](https://userguide.qualytics.io/explore/deep-dive/permissions/)
- **How Explore Works**

  What a run is, how rows load as you scroll, how a run ends, and the limits that apply to every result.

  [How Explore Works](https://userguide.qualytics.io/explore/deep-dive/how-it-works/)
- **Workspaces**

  The saved, private places that hold each query, its datastore, and its last result.

  [Workspaces](https://userguide.qualytics.io/explore/deep-dive/workspaces/)
- **SQL Modes**

  Running a query on the datastore in its own SQL, or in Qualytics with Spark SQL, and what each mode can read.

  [SQL Modes](https://userguide.qualytics.io/explore/deep-dive/sql-modes/)
- **Query Editor**

  The editor's controls: the datastore, the SQL badge, autocomplete, running a statement or a selection, formatting, and saving a computed table or file.

  [Query Editor](https://userguide.qualytics.io/explore/deep-dive/query-editor/)
- **Results**

  The results grid, row counts, query details, cell values, masked values, and downloads.

  [Results](https://userguide.qualytics.io/explore/deep-dive/results/)
- **Charts**

  Bar, line, and scatter charts of the rows loaded so far, charts proposed by AgentQ, and their PNG and PDF downloads.

  [Charts](https://userguide.qualytics.io/explore/deep-dive/charts/)
- **History**

  The runs of each workspace, and the History page where Admins review every query run.

  [History](https://userguide.qualytics.io/explore/deep-dive/history/)
- **Assets**

  The datastores, tables, and fields you can drag into your SQL, and why some of them stay locked.

  [Assets](https://userguide.qualytics.io/explore/deep-dive/assets/)

*Last updated: November 24, 2026.*
