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

# AI Assistant Panel

> Chat with the AI assistant to edit, rewrite, or extend your document content — directly from the sidebar.

The **AI Assistant** panel (<Icon icon="sparkles" size={16} />) lets you chat with an AI that has full access to your document. You can ask it to write, rewrite, extend, or restructure content — and it can also modify abbreviations, citations, variables, and styles.

<Frame>
  <img src="https://mintcdn.com/centerbit/xsS3MEtCpKEJ0qMD/images/application/sidebar-chat/sidebar-chat-panel.png?fit=max&auto=format&n=xsS3MEtCpKEJ0qMD&q=85&s=ed86edb9cb95cf46419c2832dbc66b1f" alt="AI Assistant sidebar panel" width="1508" height="1279" data-path="images/application/sidebar-chat/sidebar-chat-panel.png" />
</Frame>

***

## Sending messages

Type your message in the input field and press **Enter** to send (use **Shift + Enter** for a new line). The assistant analyzes your document and responds with text, proposed changes, or both.

Each chat conversation is stored in the **chat history**. You can start a new chat with the <Icon icon="plus" size={16} /> button or browse previous conversations via the <Icon icon="history" size={16} /> button.

***

## File attachments

Click the <Icon icon="paperclip" size={16} /> button to attach a file to your message. The assistant can read and analyze the file content as part of the conversation.

| Format          | Extensions                                                | Max size |
| --------------- | --------------------------------------------------------- | -------- |
| **Images**      | JPG, PNG, GIF, WebP                                       | 10 MB    |
| **PDF**         | PDF                                                       | 20 MB    |
| **Word**        | DOCX                                                      | 15 MB    |
| **Excel**       | XLSX, XLS                                                 | 10 MB    |
| **CSV**         | CSV                                                       | 5 MB     |
| **Text / Code** | TXT, MD, JSON, JS, TS, JSX, TSX, PY, HTML, CSS, XML, YAML | 2 MB     |

***

## Knowledge base

Click the <Icon icon="book-open" size={16} /> **Knowledge** button to enable the knowledge base for your message. When active, the assistant uses your uploaded reference documents and URLs as additional context.

<Note>
  The Knowledge toggle is only available when you have uploaded at least one resource in the [Knowledge Base panel](/getting-started/editor/sidebar-knowledge). If no resources are uploaded, the button is disabled.
</Note>

***

## Editor selection

You can select text in the editor and send it as context to the assistant:

1. **Select text** in the editor — an overlay button appears above the selection.
2. Click <Icon icon="message-square-plus" size={16} /> **Add to Chat** — the sidebar switches to the Assistant panel and the selection is attached to your next message.

<Frame>
  <img src="https://mintcdn.com/centerbit/xsS3MEtCpKEJ0qMD/images/application/sidebar-chat/add-to-chat-editor-overlay-for-selection.png?fit=max&auto=format&n=xsS3MEtCpKEJ0qMD&q=85&s=fb3967fe0f0c854a8b98adeb037c0bb8" alt="Add to Chat button appearing above a text selection in the editor" width="399" height="90" data-path="images/application/sidebar-chat/add-to-chat-editor-overlay-for-selection.png" />
</Frame>

The selection context is shown as a badge above the input field. You can remove it with the <Icon icon="x" size={16} /> button.

<Frame>
  <img src="https://mintcdn.com/centerbit/xsS3MEtCpKEJ0qMD/images/application/sidebar-chat/chat-input-with-attachment-knowledge-selection.png?fit=max&auto=format&n=xsS3MEtCpKEJ0qMD&q=85&s=20a179569f9a77cb3e3974fe03a7e916" alt="Chat input field showing selection context, file attachment, and knowledge toggle" width="336" height="177" data-path="images/application/sidebar-chat/chat-input-with-attachment-knowledge-selection.png" />
</Frame>

***

## Proposed changes

When the assistant modifies your document, it shows a **change preview** below its response. The preview summarizes what was changed — sections added, updated, or deleted, as well as changes to variables, abbreviations, citations, or style defaults.

<Frame>
  <img src="https://mintcdn.com/centerbit/xsS3MEtCpKEJ0qMD/images/application/sidebar-chat/sidebar-chat-with-proposed-changes.png?fit=max&auto=format&n=xsS3MEtCpKEJ0qMD&q=85&s=6b886d2076f9cfcb4fd18fdd4f3db840" alt="Assistant response with proposed changes and Accept/Decline buttons" width="495" height="542" data-path="images/application/sidebar-chat/sidebar-chat-with-proposed-changes.png" />
</Frame>

You can:

* **Accept** — applies the changes to your document
* **Decline** — discards the proposed changes
* **View diff** — expand the change preview to see a detailed before/after comparison
* <Icon icon="maximize-2" size={16} /> **Full diff** — open a full-screen modal showing the complete document diff with all changes highlighted

<Frame>
  <img src="https://mintcdn.com/centerbit/xsS3MEtCpKEJ0qMD/images/application/sidebar-chat/sidebar-chat-with-proposed-changes-open-diff.png?fit=max&auto=format&n=xsS3MEtCpKEJ0qMD&q=85&s=f750fbb274f05eecd15a61b7006d03ad" alt="Expanded diff view showing before and after comparison" width="408" height="518" data-path="images/application/sidebar-chat/sidebar-chat-with-proposed-changes-open-diff.png" />
</Frame>

Click the <Icon icon="maximize-2" size={16} /> expand button to open the full document diff in a modal view:

<Frame>
  <img src="https://mintcdn.com/centerbit/xsS3MEtCpKEJ0qMD/images/application/sidebar-chat/full-document-diff-modal.png?fit=max&auto=format&n=xsS3MEtCpKEJ0qMD&q=85&s=193c7ea2a283f1426abac0d66e38aabd" alt="Full document diff modal showing all changes across the entire document" width="2038" height="1212" data-path="images/application/sidebar-chat/full-document-diff-modal.png" />
</Frame>

<Warning>
  If you send a new message while changes are still pending, the pending changes are automatically declined.
</Warning>

***

## What the assistant can do

The assistant is not limited to editing text content. It can modify multiple areas of your document:

| Area                  | Examples                                                          |
| --------------------- | ----------------------------------------------------------------- |
| **Content**           | Write, rewrite, extend, summarize, or restructure sections        |
| **Variables**         | Add, update, or remove document variables                         |
| **Abbreviations**     | Add or modify abbreviation definitions                            |
| **Citations**         | Add or update bibliography entries                                |
| **Styles**            | Adjust fonts, colors, spacing, captions, and other style defaults |
| **Document settings** | Change page size, orientation, margins                            |

***

## Billing

Each message to the assistant consumes credits from your plan. The credit cost depends on the length of your document, the attached context (selection, knowledge base, files), and the complexity of the response.

<Tip>
  For details on credit pricing and plan limits, see [Pricing](/getting-started/pricing).
</Tip>
