> For the complete documentation index, see [llms.txt](https://help.chatlyai.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.chatlyai.app/products-and-features/ai-docs/how-to-use-ai-docs.md).

# How to use AI Docs?

**AI Docs** makes creating, editing, and refining documents simple and efficient, whether you’re generating content from scratch, summarizing files, or enhancing existing text.

### Getting Started

1. **Create a new document**
   * Choose your document mode.
   * Start with a **blank document**, choose a **template**, use a **prompt** to generate content, or open any pre-existing project from recent projects!&#x20;

<figure><img src="https://3503370835-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOHDPAn3RzU7mRQrMH1UK%2Fuploads%2FcECmh8xOFyTbndcu7ZBC%2FFrame%202147233189.png?alt=media&amp;token=7a27f0e0-d852-4e0f-8e12-63f6a402b412" alt=""><figcaption></figcaption></figure>

2. **Upload files**

* Attach supported files or images to reference in your document.&#x20;

<figure><img src="https://3503370835-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOHDPAn3RzU7mRQrMH1UK%2Fuploads%2FU7joOHdTeglFNKzwJyTr%2FFrame%202147233188.png?alt=media&amp;token=5ff5bbf6-41f7-416f-b183-a60d246fa04a" alt=""><figcaption></figcaption></figure>

3. **Select AI tools**

* Use features like **Refer in Chat**, **Fix Grammar**, **Shorten**, and **Extend** to improve your text.&#x20;

<figure><img src="https://3503370835-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOHDPAn3RzU7mRQrMH1UK%2Fuploads%2FnaEHxHh1PkSIBjCy8zg9%2FFrame%202147233182.png?alt=media&amp;token=63bbc5e7-dde7-40bc-8fe4-f469354ee5d4" alt=""><figcaption></figcaption></figure>

4. **Edit manually**

* Make changes directly in the editor alongside AI suggestions.&#x20;

### Exporting Documents

* Export documents manually in **PDF** or **HTML** formats.

<figure><img src="https://3503370835-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOHDPAn3RzU7mRQrMH1UK%2Fuploads%2FWsxHCaE1iwQB0TesEsV1%2FFrame%202147233187.png?alt=media&amp;token=89ef6023-bbcd-4928-8e37-26e9db930712" alt=""><figcaption></figcaption></figure>

### History

There are 3 ways to view recent documents:

1. **Search Chats:**
   1. Access past documents and revisions by clicking on the "Search Chats" button in the left nav bar to **review, refine, or continue work**.
   2. Click Select Chats to Delete bulk chats&#x20;

<figure><img src="https://3503370835-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOHDPAn3RzU7mRQrMH1UK%2Fuploads%2FPkCsSOnnvzJyZOZweTvy%2FMenu%20Options.png?alt=media&amp;token=f73599cf-552d-405e-86a8-27435de4f5d8" alt=""><figcaption></figcaption></figure>

2. **Recent Documents:**
   1. Contains a list of your top 20 most recent documents. You can directly open the chats or:
      1. Pin
      2. Rename
      3. Delete
   2. Use "View All" to go to the Search Documents page with all of the AI Doc chats ever

<figure><img src="https://3503370835-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOHDPAn3RzU7mRQrMH1UK%2Fuploads%2FxZU30GL3y69paD4m9H0k%2FFrame%202147233184.png?alt=media&amp;token=72cd3089-b35d-4e3e-85b9-13ae9867ffbd" alt=""><figcaption></figcaption></figure>

3. **Recents:**
   1. Access past documents and revisions by expanding the left nav bar
   2. Either go directly to the chat or:
      1. Pin
      2. Rename
      3. Delete

<figure><img src="https://3503370835-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOHDPAn3RzU7mRQrMH1UK%2Fuploads%2FQD3620KOdQQBih5zvVST%2FFrame%202147233183.png?alt=media&amp;token=1d97815d-a0e1-492e-808b-09c503118f75" alt=""><figcaption></figcaption></figure>

### Usage

* Each operation counts toward your usage limits by consuming credits based on the actions performed&#x20;


---

# 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://help.chatlyai.app/products-and-features/ai-docs/how-to-use-ai-docs.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.
