GitLaw How-To guides
Attach a file to chat
You can attach an existing Word or PDF file to a GitLaw chat session. Before making any changes, the Agent reads your prompt to understand your intent and acts accordingly - so the outcome depends on how you phrase your request.
How to attach a file
-
Open a chat session: Start a new chat or open an existing one.
-
Attach your file: Click the attachment button in the chat input and select a DOCX or PDF from your device. The file is saved to your GitLaw files automatically.
-
State your intent clearly: Type your instruction in the same message (or immediately after). The Agent uses your wording to decide what to do with the file - see the table below.
What happens depending on your intent
| Intent | Example prompt | What the Agent does |
|---|---|---|
| Reference (context) | "Here's our company policy - draft an NDA based on it" | Reads the file as background context; creates a new, independent document. The original is untouched and no copy is made. |
| Edit | "Fix the typo in clause 3" or "Update the payment terms" | Edits the file directly. DOCX and PDF files convert to GitLaw's editor format on the first edit; the original is preserved as version 1 in the file's version history. |
| Template | "Fill this MSA for Client X" or "Create a new SOW based on this" | Creates a copy of your file with a link back to the source. The Agent edits the copy; the original stays untouched and remains reusable for future deals. |
Tips for getting the outcome you want
-
Context: Mention what you want drafted, not what you want done to the file. Phrasing like "based on this" or "using this as reference" signals context intent.
-
Edit: Refer directly to content inside the file - clauses, sections, specific wording. The Agent will treat it as a document to modify in place.
-
Template: Use phrases like "fill this for [client]", "create a new [document type] from this", or "use as a template". This triggers a copy so your master template is never overwritten.
Best practices
-
Check the file opened in the editor: After the Agent acts, confirm it has opened the right file - the original or the new copy - before reviewing changes.
-
Use version history: For edited files, open the version history panel on the right to compare against the original if needed.
-
Keep templates clean: If you regularly reuse a contract template, always attach it with template-style phrasing so the original is never consumed.
Related guides: Import a Word or PDF contract · Review a document using Agent · Create a draft document using Agent