> For the complete documentation index, see [llms.txt](https://help.paxton.ai/help/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.paxton.ai/help/paxton-ai/drafting-in-paxton-ai.md).

# Drafting in Paxton AI

Draft documents from your matter files, model them on a prior document, and download them in your formatting.

Paxton drafts from your matter's files and the governing law. You can also give it a writing sample to follow, so the draft matches your style and your firm's formatting.

### Draft from a prompt

You don't need to attach files to a drafting request. Everything in the matter is already in context. Name a document only when you want Paxton to rely on it.

A strong drafting prompt covers five things:

1. **The document**: motion for partial summary judgment, demand letter, discovery responses.
2. **The court or recipient**: so Paxton applies the right rules and tone.
3. **The record to use**: specific files, or "the record in this matter."
4. **The outcome**: what the document has to establish or ask for.
5. **Constraints**: length, required sections, and arguments to keep or leave out.

{% code overflow="wrap" %}

```
Draft a motion for partial summary judgment on the breach-of-contract count. Use the employment agreement, the employee handbook, and the termination letter in this matter. Argue that the incorporated handbook provisions are binding and that notice was less than the required thirty days. Reserve the retaliation claims for trial. Flag every fact that is not supported by a document in this matter.
```

{% endcode %}

{% hint style="success" %}
Ending with "flag every fact not supported by a document" turns the draft into a to-do list.
{% endhint %}

### Use a writing sample

A writing sample is a document you want Paxton to follow in style, tone, and reasoning, such as a prior brief or your firm's standard agreement. Its formatting is applied when you download the draft.

1. In the composer, click **+** and open the **Writing Sample** tab.
2. Choose **Upload file**, or **Add from matter files** to use a document already in the matter.
3. Describe the new document and send.

<figure><img src="https://1404317777-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCY0Bz9NWp8rqtfuqg7ne%2Fuploads%2FYvB6G1NlrEaZy8Z9ilZ1%2Fwriting-sample.png?alt=media&amp;token=8e73cd1a-a009-463c-9dc7-90d9d8782ba2" alt=""><figcaption></figcaption></figure>

You can also point to a model document in your prompt:

{% code overflow="wrap" %}

```
Draft a new brief for this matter that follows the structure, section headings, and organization of Smith_MSJ_2024.docx. Adapt the content to the facts and arguments in this case.
```

{% endcode %}

More prompts to adapt:

* "Draft a new agreement modeled on the attached contract. Keep the section order and defined terms. Update the parties, dates, and commercial terms, and flag any provision that doesn't fit the new deal."
* "Draft an opposition that responds to the attached motion section by section. For each argument, state our response and cite record support from this matter. Mark every point where we have no record support."

{% hint style="info" %}
Treat these drafts as starting points. Review every carried-over provision, since a clause that fit one matter may not fit this one.
{% endhint %}

### Edit and download

Drafts open in Canvas beside the chat, and every draft in the matter is listed on the **Drafts** page. Click the download icon in Canvas to get a Word (.docx) file. See [Editing Drafts with Canvas](https://help.paxton.ai/help/paxton-ai/editing-drafts-with-canvas).

### FAQ

**What if a fact isn't in my matter files?** It won't be in the draft, and shouldn't be added without support. Add the document that establishes it, or ask Paxton to flag the gap.

**Do I need to attach files every time?** No. Every file in the matter is available to every chat in it. Attach a file only to bring in something that isn't part of the matter.

**Can Paxton draft from a document I uploaded months ago?** Yes. Matter files stay in context for as long as they're in the matter.

### Related articles

* [Editing Drafts with Canvas](https://help.paxton.ai/help/paxton-ai/editing-drafts-with-canvas)
* [Using Paxton AI](https://help.paxton.ai/help/paxton-ai/using-paxton-ai)
* [Draft Court Filings & Litigation Work](https://help.paxton.ai/help/prompt-library/draft-court-filings-and-litigation-work)


---

# 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.paxton.ai/help/paxton-ai/drafting-in-paxton-ai.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.
