# Chats and attachments

Chats are where you talk to Taaweel: before research, to shape a question, and after, to question a finished report. Attachments are how your own material enters the work, always through a declared role. This chapter covers both.

## Chat sessions
[/dashboard/chats](/dashboard/chats) lists all your conversations. The columns are **#**, **Kind**, **Title**, **Linked** (the question or run it belongs to), **Messages** and **Last activity**. Two buttons, **All sessions** and **With messages**, hide empty sessions. The trash icon deletes a chat; the run it led to stays.

Open one to see the **Chat #id** page: the conversation so far, a **Message** box and **Send**. For the design behind it see [The chat loops](/docs/08-chat).

### Chat kinds
| Kind | Used for |
|---|---|
| **refine** | Shaping a question before research; ends in a locked question. |
| **report** | Discussing a finished report; answers come from that report only. |

## Open a refinement chat
1. Click **New research** in the sidebar, or open [/dashboard/chats](/dashboard/chats).
2. In **New chat → Research question** type your question (at least 5 characters) and click **Open chat**. *The Refiner answers once and the chat opens at `/dashboard/chats/<id>`.*
3. Keep talking: type in **Message** and click **Send**. The Refiner asks clarifying questions and proposes better wording.
4. When satisfied, fill **Final research question**, click **Lock this question**, then **Start research run**. *You arrive on the [run page](/docs/21-research-runs#the-run-page).* The same flow lives on the [question workspace](/docs/21-research-runs#refine-and-lock).

## Attach a file to a chat
Inside a chat, open **Attach a file to this chat**:

1. Choose a role: **Chat only — context** (the file stays in the chat) or one of the research roles described under [File roles](#file-roles).
2. Pick the **File**, optionally add a **Source title** and a **Caption**.
3. Click **Attach**. *The file appears in the chat; a research-role file is carried into the run you start.*

## Attachments
On a run page, the **Attachments** card lets you add a file to the research. Files enter the research **only through a role**: the role says what the file is allowed to do.

1. Open the run and find **Attachments**.
2. Under **Role this file enters the research with** choose a role (see below).
3. Pick the **File**. Allowed types are `.txt`, `.md` and `.html`.
4. Optionally type the **Source title if from a document (provenance)** and a **Caption**.
5. Click **Attach**. *The file is listed with a role chip, its provenance, its size in characters and a status (extracted → consumed).* The trash icon removes it.

### File roles
| Role | What the file may do |
|---|---|
| **Evidence** | Count as evidence, and may even falsify a translation. |
| **Claim seed** | Supply a reading to be *tested*, never assumed. Keep the **Source title** so provenance follows every claim. |
| **Method** | Supply a framework for the work to follow. |
| **Research subject** | A document to be [audited](/docs/23-reports-and-audits#document-audits), not trusted. |

Nothing in a file is treated as true merely because you attached it. The guardrails in [Guardrails](/docs/07-guardrails) apply to attached material too.

### Provenance
The **Source title** you give is shown beside every claim the file produces. A claim marked *user-proposed* came from your claim seed; one marked *from-source: …* names the document. In the [pipeline trace](/docs/09-meta#user-files) you can see how each file was used.

## Pasted empirical sources
To let the physical-correspondence checks cite a scientific source:

1. On the run page open the fold **Pasted empirical sources (n)**.
2. Fill **Title**, **URL** and **Key excerpt or finding**.
3. Click **Attach source**. *It becomes available to the correspondence checks and the uṣūl audit.*
4. To make the checks use it, [rebuild](/docs/21-research-runs#rebuild) the answer from *Referent trial*.
