> For the complete documentation index, see [llms.txt](https://docs.riff.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.riff.ai/reference/riff-agent/chat-panel.md). Agents can also search and read this documentation through its [MCP server](https://docs.riff.ai/~gitbook/mcp).

# Chat panel

The controls, toggles, and input options in the Riff agent chat panel — the same in the App builder, Agent builder, and Ask Riff.

The Riff agent chat panel is the interface you use to communicate with the Riff agent while building. It appears on the right side of the App builder, in the Chat tab of the Agent builder, and in Ask Riff. The controls are the same in all three places.

## Thread navigation (top)

* **New Chat** (`+` icon) — starts a fresh conversation thread
* **Thread Selector** — a dropdown listing all threads for this project. Each entry shows a description and a timestamp (e.g. "Mon 12/05/2025 · 3 hours ago"). Click to switch threads.

## Chat input (bottom)

**Attachments** Click the attachment icon or drag a file into the chat. Supported formats: images (PNG, JPG, etc.) and documents (PDF, Word, Excel, CSV, plain text).

**Agent dropdown** Adjust how the Riff agent behaves for this conversation:

| Setting             | Options                              |
| ------------------- | ------------------------------------ |
| **Model**           | Best · Standard · Fast               |
| **Context Window**  | Small · Medium · Large · Extra Large |
| **Tone of Voice**   | Neutral · Friendly · Professional    |
| **Response Style**  | Concise · Normal · Explanatory       |
| **Technical Level** | Beginner · Intermediate · Advanced   |

Tone, Response Style, and Technical Level are saved to your profile and carry across sessions.

**Text input** Grows as you type. Press Shift+Enter for a new line without sending.

Type `/` to open the skill picker — a searchable list of available skills, each showing its name and description. Select one to load its content into your message.

**Send / Stop**

* Arrow up (↑) — sends your message (or press Enter)
* Square — stops the Riff agent's current response mid-stream

## Chat history (middle)

* Messages from you and the Riff agent, with markdown and code syntax highlighting
* Tool use shown inline: tool name · progress indicator · elapsed time
* HTML visualisations rendered live in the panel
* Older messages load as you scroll up (200 messages per batch)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.riff.ai/reference/riff-agent/chat-panel.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
