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

# Ask questions in chat

> Start a chat, choose which data sources and connectors the Matys AI analyst may use, and read its answer.

Chat is where you ask the Matys AI analyst about your data. It writes and runs read-only SQL against your data sources, explains what it found and draws charts inline.

> [!NOTE]
>
> Sending a message uses tokens from your workspace balance. Running SQL needs an active
> subscription. See [Billing](/docs/workspace/billing.md).

## Start a chat

**1. Open a new chat**

Click **New chat** in the sidebar, or press <kbd>C</kbd> anywhere outside a text field. The page
asks *What's on your mind?*

**2. Pick your data sources**

Click the **Data sources** button under the message box. Every source is on by default (**All
datasources**). Turn sources off with their toggles to narrow the question.

**3. Type your question**

Write it in plain words in the **Ask anything** box. Press <kbd>Enter</kbd> to send, or&#x20;
<kbd>Shift</kbd> + <kbd>Enter</kbd> for a new line.

The chat gets a title on its own after your first message. It then appears under **Recents** in the sidebar. See [Navigation](/docs/navigation.md).

### Choose data sources

The **Data sources** menu lists every data source in your workspace. At least one MUST stay on. If you turn them all off, the menu shows *At least 1 datasource required* and you can't send.

Your choice is saved with the chat. When you come back to it, the same sources are selected.

If your workspace has no data source yet, the message box reads *Add a datasource to start chatting...*. Admins see **Add data source** and **Manage data sources** at the bottom of the menu. See [Data sources](/docs/data-sources.md).

### Choose connectors

The **Connectors** button sits next to **Data sources**. It lists the connectors you have connected.

* Use the toggle next to a connector to turn it on or off for this chat only.
* Open a connector to see its accounts, **Connect another account** or **Manage connector**.
* Linear, Notion, Google Drive, Slack and Gmail show **Add** when you haven't connected them yet.
* **Manage connectors** opens the full catalog.

The connectors you turn off stay off for this chat. See [Connectors](/docs/integrations/connectors.md).

## Read the answer

An answer can contain several parts.

> [accordion] Reasoning
>
> While the Matys AI analyst works, a reasoning chain shows each step: thinking, looking up data,
> running a query or calling a connector. Expand a step to see its details, including the SQL it
> ran and the rows that came back. A step that failed shows the error.

> [accordion] Inline charts
>
> When a chart fits the question, it appears in the answer. Its menu (**…**) offers **Export**,
> **Settings**, **Rename**, **Inspect SQL** and **Advanced edit mode**. **Add to** puts the chart
> on a dashboard. See [Work with charts](/docs/charts/edit.md).

> [accordion] SQL
>
> Choose **Inspect SQL** in a chart's menu to flip the card to its query. Use **Copy SQL** to copy
> it. Click the chart title above the query to go back.

> [accordion] Tables
>
> Tables in an answer have **Copy as CSV** and **Download as CSV** buttons.

> [accordion] Links to charts and dashboards
>
> When the answer mentions a chart or a dashboard in your workspace, it shows as a small pill with
> the chart or dashboard name. Click it to open it.

> [accordion] Data exports
>
> For larger result sets, the answer can include a CSV file to download. See [Attach files and
> export data](/docs/chat/files-and-exports.md).

> [accordion] Context updates
>
> The Matys AI analyst can propose a change to your workspace context. The answer then shows a
> **Context update proposed** card. See [Context](/docs/context.md).

Use the copy button under a message to copy its text.

### Approve connector actions

Some connector actions ask for your approval before they run. A card names the action and the connector.

* **Always approve** runs it and stops asking for this action.
* **Approve once**, in the dropdown next to it, runs it this time only.
* **Deny** refuses it.

## Stop a reply

While a reply is running, the send button turns into a stop button. Click it to stop the Matys AI analyst. Anyone who can view the chat can stop its reply.

A chat runs one reply at a time. If you send while a reply is running, Matys tells you *A reply is already running* and keeps your message so you can send it again.

If you reload the page or come back later, the chat picks up a reply that is still running.

## Rename or delete a chat

Click the chat title at the top of the conversation.

* **Edit title** lets you type a new title. Press <kbd>Enter</kbd> to save or <kbd>Esc</kbd> to cancel.
* **Delete chat** asks you to confirm. It permanently deletes the chat and its messages. Charts you created in the chat are not deleted.

You need full access to a chat to delete it. With view access you can read a chat but not send messages in it. See [Permissions](/docs/workspace/permissions.md).

## Chats from other channels

Chats started in Slack, WhatsApp or through the API also show in Matys. You can read them, but you can't reply from the web app. See [Slack](/docs/integrations/slack.md) and [WhatsApp](/docs/integrations/whatsapp.md).

## When chat is paused

> [tab] Out of tokens
>
> Your workspace used its monthly token allowance. The message box reads *Chat is paused — no
> tokens left this cycle*. An admin can top up or upgrade from **Go to billing**. Otherwise, chat
> resumes when the allowance resets.

> [tab] Plan lapsed
>
> Your workspace's plan has lapsed and the workspace is read-only. The message box reads *Chat is
> paused — this workspace is read-only*. An admin can pick a plan from **Choose a plan**. Your
> chat history is kept.


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