> For the complete documentation index, see [llms.txt](https://docs.courtaid.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.courtaid.ai/chat-and-documents/chat-pdf.md).

# Chat PDF

Chat PDF lets you talk directly to a specific judgement or piece of legislation. CourtAid reads the document, answers your questions, and highlights the relevant sections in the PDF.

![Chat PDF with document viewer](https://1143104512-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUoFACnrJdsxVDAKioc81%2Fuploads%2Fgit-blob-9b2459c39605c38a833f81b0aee618a040e217f1%2Fchat-pdf.png?alt=media)

## How to open Chat PDF

From any search result, click **Chat PDF**. You can also open a document from chat citations or from a matter's file list.

CourtAid opens a split view:

* **Left** — chat panel for your questions
* **Right** — the PDF document viewer

## Asking questions

Type your question in the chat input. For example:

```
What was the court's finding on unconscionable conduct?
Which sections of the Fair Work Act were applied?
Summarise the key facts in three bullet points.
```

CourtAid reads the document and responds with an answer grounded in the text.

## Automatic highlighting

When CourtAid references a passage from the document, the relevant section is **automatically highlighted in yellow** in the PDF viewer on the right. Citations in the chat appear as clickable links — click one to jump to that passage in the PDF.

![Chat PDF showing citations linked to highlighted sections in the PDF](https://1143104512-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUoFACnrJdsxVDAKioc81%2Fuploads%2Fgit-blob-49a5d6406333710473fad91713d3cb398822b7fe%2Fchat-pdf-highlights.png?alt=media)

In the example above, citations like *s 67 of the Civil Procedure Act 2005 (NSW)* and *Alexander v Cambridge Credit Corporation Ltd (1985) 2 NSWLR 685* are highlighted in the original document, so you can read the AI's analysis on the left and verify it against the source on the right.

You can also click extract snippets in chat responses to jump to and highlight that section in the PDF.

## Focus mode vs Explore mode

When chatting with a single document, CourtAid uses **Focus mode** — the conversation is scoped to that document only.

Toggle **Explore mode** (via the switch in the chat input) to widen the search to CourtAid's full database of 2M+ documents while keeping the PDF open.

| Mode        | Scope                                     |
| ----------- | ----------------------------------------- |
| **Focus**   | This document only                        |
| **Explore** | This document + CourtAid's court database |

## PDF viewer controls

The document viewer includes standard controls:

* Page navigation and zoom
* Thumbnail sidebar
* Full-screen view
* Download and print

## When to use Chat PDF

| Scenario                       | Example question                                     |
| ------------------------------ | ---------------------------------------------------- |
| Understanding a long judgement | *"What were the key findings?"*                      |
| Finding a specific provision   | *"What did the court say about limitation periods?"* |
| Checking legislative text      | *"What are the requirements under section 12?"*      |
| Preparing for a hearing        | *"What arguments did each party make?"*              |

## Tips

* Start with a broad question, then follow up on specific paragraphs
* Click highlighted sections to read the full context around a citation
* Use **Save** to add the document to a [Matter](https://docs.courtaid.ai/matter-workspaces/matters.md) if you'll need it again
* Switch to **Explore mode** if your question needs cases beyond the current document


---

# 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.courtaid.ai/chat-and-documents/chat-pdf.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.
