> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getnao.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Overview

> Key features, chat workflow, speak to prompt, mentions, the chat library, and context management

The nao chat combines context-aware analytics with transparent execution.

## Key Features

> [card] Natural Language Queries
>
> Ask questions in plain English and get actionable answers.

> [card] Data Visualization
>
> Automatically generate charts and visual explanations from query results.

> [card] Transparent Reasoning
>
> Inspect the SQL and logic behind each answer.

> [card] Conversation History
>
> Continue previous analyses with full chat history.

> [card] Speak to Prompt
>
> Dictate a question with your microphone and send the transcribed prompt.

> [card] Memory
>
> Preserve user-level preferences across conversations.

## How It Works

When you ask a question, the agent follows this flow:

**1. Context Discovery**

The agent searches and reads your context files to understand your data model, definitions, and rules.

**2. Query Generation**

It composes SQL based on the available context and your question.

**3. Execution**

The query runs against connected data sources and returns results.

**4. Visualization**

If useful, the agent renders charts from the result set.

**5. Response**

The agent summarizes findings in plain language with supporting evidence.

## Speak To Prompt

From the chat input:

1. Click the microphone icon.
2. Grant microphone access when prompted.
3. Speak your request.
4. Review or edit the transcription, then send it.

Only transcribed text is stored in chat history.

> [!WARNING]
>
> Speak to Prompt requires an OpenAI API key, configured by an admin in the project LLM settings or as an environment variable. The microphone button only appears when one is configured. If an OpenAI key is set but transcription is turned off in settings, the button still shows, and clicking it explains that voice input is disabled and how to enable transcription.

## Mentioning stories and tables

Type `@` in the chat input to reference stories, story folders, and tables in your question. The menu opens with quick picks (your most-viewed stories), and you can browse story folders the same way as on the Stories page. Hover an item to see where it lives: its folder path for a story, or `database > schema > table` for a table.

You can also drag and drop stories and folders from the Stories page into the chat input, or onto **New chat** in the sidebar to start a new chat that references them. On the Stories page, selecting stories and clicking **New chat** in the selection bar does the same.

When you reference a story:

* Its content and SQL are added to the agent's context, and the agent re-runs the SQL to work with fresh data.
* The story is read-only from that chat: the agent can reuse it but not edit it.

The agent can also find existing analyses on its own. It can list, read, and search the stories you have access to (read-only), and when an existing story already answers your question it returns a clickable story card instead of starting from scratch.

From a story, the chat button in the story header lets you start a chat about it or reopen past ones. See [Asking questions from a story](https://docs.getnao.io/nao-agent/chat/capabilities/stories.md#asking-questions-from-a-story).

## Library

The **Library** button in the chat header (also in the mobile header) shows a count and lists what the chat has produced or used:

* **Stories** - stories created or mentioned in the chat. Click one to open it in the side panel.
* **Files** - attachments added to the chat, deduplicated by path. Click one to open the attachment viewer.
* **Queries** - each query with its title or ID and its size (rows × columns), collapsed by default. Click one to scroll to its tool call in the conversation. Only the latest run of each query is kept. Queries are hidden when [tool call density](#tool-call-density) is set to **Compact**.

The button is hidden when there is nothing to list. When the chat has stories and the window is wide enough, the panel stays docked beside the chat.

## Context Management

The agent grounds answers in project context, including:

* Context files and business definitions synced into your project.
* Rules and instructions that shape generation behavior.
* Data source metadata and available schema information.

For details on configuring context, see [Context Builder](https://docs.getnao.io/nao-agent/context-builder/overview.md).

## Visualizations and Image Input

The chat UI can render agent query results as charts (bar, line, area, pie, donut, KPI card, scatter, radar, and stacked variants) or as tables with conditional formatting. Both can be edited after the fact, and every chart exposes the SQL query and rows behind it.

For the full list of chart types, the chart edit dialog, table formatting rules, and the project date format setting, see [Visualizations](https://docs.getnao.io/nao-agent/chat/capabilities/visualizations.md).

### Image input

You can attach images directly in the chat input when you want the agent to inspect a screenshot, dashboard, chart, or UI state. The agent treats images as part of the conversation - it can describe them, transcribe text out of them, compare them to data, or use them to disambiguate a question ("the spike in *this* chart").

**How to attach an image**

There are three ways to add images to a message:

* Click the `+` menu in the chat input and pick **Attach file**.
* Drag an image file from your desktop into the chat input - the input shows a highlighted drop zone while you drag.
* Paste an image directly from your clipboard (e.g. after `cmd+shift+4` on macOS or a snipping tool on Windows). The paste handler is scoped to the chat input so pasting elsewhere on the page still works normally.

Selected images appear as thumbnails above the input. Click the small `X` on any thumbnail to remove it before sending.

**Supported formats and limits**

* Formats: `image/png`, `image/jpeg`, `image/gif`, `image/webp`.
* Up to **5 attachments** per message, images and documents combined.
* Up to **5 MB** per image.

Files outside these formats or above the size cap are rejected client-side before upload.

### Document input

The same input takes documents - PDFs, spreadsheets, CSVs, Parquet files, and more. Unlike images, a document is handed to the agent as a path in permanent storage rather than inlined into the request, so a large file costs nothing until the agent opens it. nao can also query tabular files directly with SQL and join them against your warehouse.

See [Files and Storage](https://docs.getnao.io/nao-agent/chat/capabilities/files-and-storage.md) for the full list of formats, what the agent can do with each, and how an admin configures storage.

**Viewing images in the conversation**

Images you've sent stay attached to the message and re-display when the chat is reloaded or shared. Click any image in the conversation to open it in a full-size lightbox - close it with `Esc`, the X button, or by clicking outside.

Images are stored against your project and served from a stable URL, so they keep rendering inside the chat history and any story or shared link the conversation feeds into.

## Editing, resending, and message versions

Hover over any of your sent messages to reveal a toolbar with actions and a relative timestamp (e.g. `8m ago`, with the full date and time in a tooltip).

* **Resend** - the resend button (circular-arrow icon) re-runs the same prompt as-is, superseding the conversation from that turn onward.
* **Edit** - change the prompt text and resend it to branch the conversation from that point.

When a message turn has been edited or resent, a `‹ i/n ›` control appears next to the action icons. Use it to navigate the history of superseded versions and restore any of them as the active branch - the message and the answer below it update together.

## Sharing and forking chats

Every chat can be shared with your project or with specific people from the share icon in the chat header. Admins can restrict who members of a [user group](https://docs.getnao.io/nao-agent/chat/admin/user-groups.md) can share with: members who can't share project-wide can only share with their own custom groups and the members of those groups.

Recipients can:

* **Continue chat** - open a new forked chat that contains the full shared history. Each fork is independent, so the original is never modified.
* **Quick questions** - ask a follow-up from the **Ask a question about this chat** bar without leaving the shared chat. The **Quick questions** button lists your past quick-question chats.
* **Ask about a selection** - highlight any text in the chat and click the **Ask** button that appears above the selection. The quoted text becomes a pending citation in the input, and once sent, the answer keeps a **Go to original selection** link back to the source passage.

Selection-based asks also work on your own chats and stories, not just shared ones, and in the admin **Chats replay** view. For the story-specific flow (**Discuss story** and version handling), see [Stories](https://docs.getnao.io/nao-agent/chat/capabilities/stories.md#sharing-forking-and-text-selection).

## Managing Your Chat History

Your chat list lives in the left sidebar, sorted by most recent activity (last updated first). The list shows the 10 most recent chats by default; click **Show more** to expand the full list and **Show less** to collapse it again.

**Group and filter**

Use the filter menu at the top of the chat list to organize conversations:

* **Group by** stars, date, project, ownership, or none.
* **Filter** the visible chats with the search box to narrow the list to matching titles.

When a chat starts from a text selection or **Ask about a selection** action, nao automatically regenerates its title using the quoted context, so the sidebar entry reflects the question rather than a generic placeholder.

**Pruning the list**

To keep the sidebar tidy, nao gives you two ways to remove conversations:

* **Star** the chats you want to keep so they're always preserved.
* Open **Settings** from your profile, find **Danger Zone** on the **Account** page, and click **Delete all non-starred chats** to bulk-clear everything you haven't starred.

The action is destructive but recoverable internally: chats are soft-deleted (hidden from your sidebar, search, and history), not erased. Starred chats are never affected.

## Tool call density

Control how much detail the chat shows for the agent's tool calls (SQL queries, sandbox runs, and similar steps). Open **Settings** from your profile and use **Tool Call Density** on the **Account** page:

* **Detailed** - tool calls are expanded inline so you can read the SQL and intermediate steps as the agent works.
* **Compact** - tool calls are collapsed into a compact group, keeping the conversation focused on the answer. Expand any step when you want the detail.

The preference is stored against your account, so it follows you across devices and sessions.

## Query Guardrails

For BigQuery connections, nao can enforce a maximum query size in GB before the agent runs SQL.

When configured, nao performs a dry run first:

* Queries under the limit execute normally
* Queries over the limit are blocked before BigQuery scans the data


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.