Prompt Writing Techniques
Tips and best practices for achieving the most accurate results with Harvey.
Last updated: Nov 23, 2026
Overview
To get the most detailed and tailored output from Harvey, it’s essential to include the right mix of “request,” “context,” and “output” in your prompt. This article provides tips and best practices to help you use Harvey effectively.
How Prompts Work
Harvey performs best when given clear, task-specific instructions in natural language. Think of Harvey as a junior colleague who needs precise directions and relevant context.
A successful prompt includes three key components:
- Request: Use clear, specific language to phrase your prompt as a question or request.
- Example: Summarize the interim covenants…
- Example: Analyze the assignment clause…
- Example: Draft a memo…
- Context: Provide background to help Harvey understand your request.
- What document have you uploaded?
- Who is your intended audience?
- What key issues should be addressed?
- Output: Specify the desired format and style of the response.
- Example: …in a table
- Example: …as a bulleted or numbered list
- Example: …as a memo

How to Craft Your Prompt
- Ask Harvey to Improve Your Prompt: Enter a rough version of your prompt and select the
icon in the prompt box. Harvey rewrites your prompt with more structure and detail, and can add instructions for how to use the sources you’ve selected. Review the rewrite and fill in any placeholders before you send it.
- Upload Supporting Documents: Uploading documents helps ground Harvey and reduces the risk of hallucinations (AI-generated incorrect or misleading information). Be aware that Harvey may not always provide citations, especially when:
- Multiple sources are referenced
- There are too many valid sources
- The information is inferred as a general concept from the document
- Avoid Referencing Pages or Document Numbers: Harvey may not interpret documents and pages as you do. Instead, refer to sections or document names.
- Include Sufficient Information in Your Prompt: Be specific and detailed, specifying the desired output format (e.g., structure the response as a memo with subheadings).
- Consider Breaking Up Complex Prompts: Simpler queries often yield better responses. When dealing with large datasets or complex questions, break your prompt into multiple parts to allow Harvey to focus on one task at a time.
- Use follow-up questions instead of multi-part prompts.
- While drafting break up complex prompts into multiple queries, or revisions, to ensure thorough responses. Think of it as marking up the document with a pen. Revisions should be tethered to the first draft.
- Be Mindful of Output Length: Harvey cannot generate a specified number of pages. Instead of asking for a “10-page summary,” guide Harvey by requesting a “thorough” or “detailed” output for longer responses, and use “brief” or “concise” for shorter ones.
Craft Prompts for Multi-Source Queries
When using multiple sources, give Harvey clear instructions on how to use each one. This ensures accurate, relevant, and well-structured results.
Sources | Less Effective | Better Prompt |
|---|---|---|
Docs + Web | “Are there any blog posts about this case?” | “Search the web for blog posts discussing the attached case.” |
Web + EDGAR | “See if there’s any ongoing litigation for Plug Power Inc.” | “Review Plug Power Inc.’s recent 10-K and 8-K filings on EDGAR for litigation updates, then search the web for related press coverage.” |
Tip: When referencing regional or jurisdiction-specific sources, explicitly name the location. For example:
- Instead of: “Compare laws on vehicle safety standards.”
- Try: “Compare the vehicle safety laws in Colombia and Mexico.”
Example Prompts
- Less Effective: Can you make me a detailed summary of the ruling?
- This prompt lacks detail on what the format of the summary should look like → Harvey guesses
- Better: Summarize this ruling in a clear and well-organized memorandum, with subheadings, and discuss potential implications for other companies.
- This prompt lays out the format for the summary and indicates exactly how Harvey should present the summary.
- Best: I am an antitrust lawyer advising my client, Microsoft, on its arrangement to bring ChatGPT as the exclusive AI provider to Siri searches on Apple's iPhone. Review this court ruling and thoroughly summarize the anticompetitive effects of Google's agreement with Apple and explain how I could argue against those for Microsoft's agreement with Apple. Also, summarize the pro-competitive justifications raised by Google and why the court rejected those, and explain how I could strengthen those arguments for Microsoft. The output should be in paragraph format with clear subheadings for each effect and justification.
- This is a great prompt when you have some baseline familiarity with the document. Harvey will focus its summary and provide more in-depth, targeted analysis.
Two types of revisions: Targeted vs. Global
Global:
- Example 1:
- Prompt: Draft an email to a counterparty asking when we should expect comments to the merger agreement.
- Revision: Make this more concise and passive aggressive.
- Example 2:
- Prompt: Draft a law firm client alert summarizing this court ruling. Ensure the client alert is broken into different subheadings. End the client alert with a bulleted list of key implications and takeaways.
- Revision: This should have a more academic tone.
Targeted:
- Prompt: Draft a non-solicit provision for an NDA restricting buyers from soliciting the target company's employees.
- Highlight: “For purposes of this provision, "employee" means any person who is or was employed by Target or any of its affiliates at any time during the six (6) months prior to the date of this Agreement or at any time thereafter while this provision is in effect. This provision shall not prohibit Buyer from hiring any employee of Target or any of its affiliates who (a) initiates contact with Buyer without any solicitation or encouragement by Buyer or any of its representatives, (b) responds to a general advertisement or solicitation that is not specifically targeted at employees of Target or any of its affiliates, or (c) is no longer employed by Target or any of its affiliates at the time of hiring.”
- Revision: Remove the defined term for employee and add a carve-out (d) for employees terminated in the last 6 months.
- Less Effective: Draft a customary definition of "Indebtedness" for a Merger Agreement governed by Delaware law in which both parties are public companies. [No document upload]
- When should this be avoided? This prompt is great when drafting from scratch, but grounding Harvey in a source of truth will ensure the definition is tailored to your use case, precedent and what is market to your practice area.
- Better: Draft a definition of "Indebtedness" using these precedents. Create new paragraphs for each subsection and, for each subsection, explain in brackets the purpose for including the subsection and which precedent it is from.
- Why is this better? Providing Harvey with precedent grounds Harey in a source of truth, but Harvey is still constructing the clause from scratch.
- Best: Suggest ways to revise the below definition of "Indebtedness" to align more closely with these precedent merger agreements and explain the changes made. [Insert text definition or upload agreement]
- When is a prompt like this helpful? The precedent plus the supplied language establishes confines within which Harvey should provide feedback. Also, it’s always a great idea to ask Harvey to explain its work!
- Less Effective: In part one, please generate a detailed chronological summary of events from these documents. In part two, please identify any conflicts, gaps, contradictions or ambiguities in these documents. In part three, generate discovery requests to resolve the issues identified in part two.
- Better: Initial Prompt: In a table, generate a detailed chronology of the main events in these documents. In the first column, specify the date of the event. In the second column, name the event. In the third column, provide a description of the event.
- Follow-up: Identify any conflicts, gaps, contradictions or ambiguities in these documents.
- Follow-up: Generate discovery requests to resolve the issues identified above.
- Less Effective: Draft Purchaser's closing officer's certificate.
- Harvey’s compute power is first focused on analyzing the document to understand who the Purchaser is and then focused on what an officer’s certificate is and what it should include. In many instances, Harvey may include non-essential information.
- Better: Draft Purchaser's closing officer's certificate pursuant to Section 8.3(d) of the agreement.
- Harvey understands exactly where to look when drafting the officer’s certificate, so its full compute power is dedicated to the task at hand.
- Less Effective: Check this email for spelling and grammar errors.
- Generative AI, while likely able to identify your spelling and grammar mistakes, is much more than a word processor that does routine, repeatable tasks like a spell check. Rethink how you interact with this kind of software!
- Better: Is there anything in this email that someone might find confusing or unclear? List ten questions that a recipient might have after reading this email.
- Think of Harvey like a second brain living in your computer that you can instantly bounce ideas off of and generate content you might not have otherwise thought of.
Craft Prompts for Better Table Outputs
Harvey is great at generating structured tables, but large language models can sometimes produce errors—like misaligned formatting, missing rows, or extra text.
We generally advise using simple prompts in plain language to produce your desired table output first. When that fails, you can try incrementally incorporating the techniques described in this section to make table outputs more reliable.
Follow these techniques in order. Start simple, then add more structure only if needed.
- Establish Context
- What to do: Begin by describing the source or domain of the content.
- Example: “I have attached a lease document.”
- Why it helps: Anchors Harvey in the subject matter before formatting instructions.
- Define the Task Clearly
- What to do: State the exact goal.
- Example: “Generate a valid markdown table with 3 columns titled ‘Summary.’”
- Why it helps: Reduces ambiguity and ensures Harvey knows exactly what format to use.
Note: Markdown is a simple way of writing text that can be easily turned into clean, formatted documents (like web pages or PDFs) without needing complicated software. A Markdown table is just a grid made with plain text characters (like | and -) that neatly organizes information into rows and columns.
- Pre-Specify Rows or Categories
- What to do: List the items that must appear in the first column.
- Example: “Row 1: Item A, Row 2: Item B.”
- Why it helps: Prevents Harvey from skipping or rearranging rows.
Tip: to view a more practical example of how this applies to a prompt, view the full example prompt at the bottom of this article, specifically under ## task.
- Provide Fallback Rules
- What to do: Tell Harvey what to do if information is missing.
- Example: “If a value is not found, enter N/A.”
- Why it helps: Avoids made-up content (i.e. hallucinations) and keeps tables consistent.
- Enforce Strict Formatting with a Checklist
- What to do: Add a checklist of formatting rules.
- Example:
- Output only the table
- Use pipes (
|) consistently - Include a header row and separator row
- No text before [specify where]
- Exactly 5 columns
- Why it helps: Prevents extra text and enforces valid markdown structure.
- Show a Positive Example
- What to do: Provide a sample markdown table in the exact format you want.
- Example:
…[your prompt written here]...
### Format:
| [Column 1 Header] | [Column 2 Header] | [Column 3 Header, if any] |
|---|---|---|
| [Row item 1] | [Details] | [Details] |
| [Row item 2] | [Details] | [Details] |
| [Row item 3] | [Details] | [Details] |
- Why it helps: Examples strongly guide Harvey to reproduce the structure.
Tip: to view a more practical example of how this template can be filled, view the full example prompt at the bottom of this article.
- Repeat Critical Rules
- What to do: Restate important constraints (for example, “exactly 2 columns”) in multiple places.
- Why it helps: Reinforces key requirements and reduces the chance of errors.
Tip: Don’t overload prompts with too many examples or rules at once. Conflicting instructions often cause poor quality outputs. Start simple, then layer on complexity only if needed.
Key Takeaways and Full Example Prompt
### Context:
I have attached a lease (@lease).
### Task:
Your task is to generate a valid markdown table with two columns. The table will be titled "Insurance."
Each of the following lease terms should be included as a separate row in the first column of the table:
1. Landlord's insurance obligation
2. Tenant's insurance obligation
3. Insured risks
4. Reinstatement and rent suspension
In the second column, provide a detailed summary of each term based on the lease. If a term is not found in the lease, simply output N/A.
### Guidelines:
If a term has a specific definition in the lease (@lease), include that definition in your response verbatim.
### Checklist:
1. Output only a markdown table
2. Use | pipes consistently
3. Header row + --- row required
4. No text before/after
5. Exactly 2 columns
### Format:
Return your output as a valid markdown table in the following format.
| Insurance Obligation | Detailed Summary |
|----------------------|------------------|
| Landlord's insurance obligation | [summary here] |
| Tenant's insurance obligation | [summary here] |
| Insured risks | [summary here] |
| Reinstatement and rent suspension | [summary here] |
Key Takeaways:
- Anchor with context to reduce hallucination.
- Define the task precisely (columns, rows, titles).
- Specify fallback rules for missing info.
- Use a checklist to enforce strict formatting.
- Add examples and repeat critical rules if problems persist.
Was this article helpful?