When using AI to extract contract custom fields, information is obtained from the contract text based on extraction rules (prompts). This guide provides tips for creating prompts to enhance accuracy.
Getting started
An extraction rule ("prompt") is an instruction that tells the AI what information to extract from a contract. While humans can understand ambiguous expressions, the AI may extract incorrect information if it lacks specific instructions.
For example, simply writing "Please extract the contract start date" might cause the AI to extract different dates depending on the contract, such as the signature date or the effective date.
However, if you specify "Please extract the effective date of the contract in MM/DD/YYYY format. If not explicitly stated in the text, leave it blank," the extraction target and format become clear, leading to more consistent results.
In other words, a prompt is like an "instruction manual for the AI." The clearer the instructions, the higher the accuracy.
Tips for creating prompts
1. Clearly specify the content to extract
Clearly define the target information. Avoid ambiguous expressions and, for best results, specify how to handle cases where the information is not present.
Example:
◯:Please extract the head office address of the business partner. Output in the following format: postal code + state + city/ward/town/village + street number. If there is no address mentioned in the text, leave it blank.
✕:Please extract the business partner's address.
*Note: This leads to incorrect extractions and inconsistent data as it becomes impossible to distinguish between the head office and branch offices. The format is also not standardized.
2. Provide context for contract-specific terms
The same terms can have different meanings in different contracts. Typical examples include signature date and effective date, or contract termination date and renewal deadline.
Specifying which one you are referring to can prevent incorrect extraction.
Example:
◯:Please extract the start date of the effective period of this agreement (the effective date, not the signature date).
✕:Please extract the contract start date.
*Note: If the signature date cannot be distinguished from the effective date, this will result in incorrect extractions.
3. Specify the output format
Specifying the format makes the extracted data easier to manage and use.
Date: MM/DD/YYYY
Amount: Half-width numbers only (no commas or units)
Options: Choose from "Party A," "Party B," or "Both Parties"
If you do not specify a format, variations may occur, such as "September 16, 2025."
Example:
◯:Please output the address in the following format: postal code + state + city/ward/town/village + street number.
✕:Please output the address.
*Note: Since the format is not specified, the notation will be inconsistent, such as "Chiyoda-ku, Tokyo 1-1," or "100-0001 Chiyoda-ku, Tokyo…”
4. Limit instructions to information stated in the contract
Instructions based on information not present in the contract or assumptions about the business transaction can lead to incorrect extraction.
Prompts should only request information that can be determined from what is explicitly stated in the contract.
Example:
◯:Please extract the address of the business partner mentioned in the contract.
✕:Please assess the business scale of the counterparty.
*The contract does not typically state the scale of a business, so the AI might make assumptions and provide incorrect results.
5. Focus on one element at a time
Include only one element in each prompt. Combining multiple conditions may lead to unstable results.
Create multiple fields as needed and assign a separate prompt to each one.
Example:
◯:Please extract the liability cap.
✕:Please extract the liability cap and the payment deadline.
*The results may be unstable because the prompt includes multiple elements.
6. Outline the extraction procedure
Instead of just writing "Please extract...," providing step-by-step instructions on how the AI should search the text will yield more consistent results.
Example:
◯:Please review the text and search for clauses that include terms such as "anti-social forces," "organized crime groups," or "socially condemnable forces." If found, return "Found"; if not found, return "Not Found." In ambiguous cases, return "Not Found."
✕:Please extract the clauses that address anti-social forces exclusion.
*Note: This prompt lacks a search procedure and judgment criteria, which can easily lead to inconsistent interpretations.
7. Always verify in Preview
After setting up a prompt, please click [Preview Extraction Results] to test it.
*For detailed instructions, refer to "Automatically Extracting Contract Custom Fields - 3. [RECOMMENDED] Test the extraction."
Since wording varies between contracts, verifying the results with multiple contracts, not just one sample provides the best results. If you get unexpected results, try the following and rerun the preview:
Make the extraction target more specific
Modify the output format
Clarify the extraction procedure
Examples of actual prompts
Below are examples you can copy and use immediately.
Heading/Category
Payment terms
Description (prompt)
Review the contract and look for sections about payment (e.g., payment, fees, invoices, billing).
Extract:
- Payment deadline (e.g., end of month, 30 days after invoice)
- Payment method (e.g., bank transfer)
- Payment amount or unit price
If any item is not found, return "Not found" for that item.
Only use information clearly stated in the contract.
Result format (recommended)
Payment deadline:
Payment method:
Payment amount:
Anti-social forces exclusion clause
Description (prompt)
Review the contract and look for sections about anti-social forces (e.g., anti-social forces or equivalent concepts such as criminal organizations or illegal groups).
If present, return "Found".
If not present or unclear, return "Not found".
Result format (recommended)
Result: Found / Not found
Subcontracting
Description (prompt)
Review the contract and look for sections about subcontracting or delegation (e.g., subcontracting, outsourcing, assignment).
Determine whether subcontracting is:
- Allowed with prior consent
- Allowed without consent
- Not allowed
If multiple clauses exist, use the one that most clearly defines the conditions.
If not found or unclear, return "Not found".
If available, also extract:
- Article number
- Article title
Result format (recommended)
Result: Allowed with consent / Allowed without consent / Not allowed / Not found
Article:
Title:
Jurisdiction
Description (prompt)
Review the contract and look for sections about jurisdiction or governing court (e.g., jurisdiction, dispute resolution court).
Extract the name of the designated court.
If multiple courts are mentioned, use the one that governs disputes.
If not found, return "Not found".
If available, also extract:
- Article number
- Article title
Result format (recommended)
Court:
Article:
Title:
Early termination
Description (prompt)
Review the contract and look for sections about early or mid-term termination.
Determine whether early termination is:
- Allowed
- Not allowed
If allowed, extract:
- Conditions (summarize in up to 15 words)
- Which party can terminate (if stated)
If multiple clauses exist, use the one that most clearly defines the conditions.
If not found, return "Not found".
If available, also extract:
- Article number
- Article title
Result format (recommended)
Result: Allowed / Not allowed / Not found
Party:
Conditions:
Article:
Title:
Termination notice method
Description (prompt)
Review the contract and look for sections about termination notice (e.g., notice, written notice).
Extract how notice must be given (summarize in up to 15 words).
If not found, return "Not found".
Result format (recommended)
Method:
Confidentiality
Description (prompt)
Review the contract and look for sections about confidentiality (e.g., confidentiality, non-disclosure, confidential information).
If found, extract:
- Scope of confidential information (summarize in up to 15 words)
- Confidentiality period (if stated)
If multiple clauses exist, use the one that most clearly defines the scope.
If not found, return "Not found".
If available, also extract:
- Article number
- Article title
Result format (recommended)
Result: Found / Not found
Scope:
Period:
Article:
Title:
Damages
Description (prompt)
Review the contract and look for sections about damages or liability (e.g., damages, liability, indemnification).
Extract the scope of damages (summarize in up to 15 words, e.g., "direct damages only").
If multiple clauses exist, use the one that most clearly defines the scope.
If not found, return "Not found".
If available, also extract:
- Article number
- Article title
Result format (recommended)
Scope:
Article:
Title:
Intellectual Property (Deliverables)
Description (prompt)
Review the contract and look for sections about intellectual property rights for deliverables.
Extract who owns the intellectual property rights.
Exclude:
- Ownership of deliverables themselves
- Pre-existing intellectual property
If multiple clauses exist, use the one that most clearly defines ownership.
If not found, return "Not found".
If available, also extract:
- Article number
- Article title
Result format (recommended)
Owner:
Article:
Title:
Change of control
Description (prompt)
Review the contract and look for sections about change of control (e.g., merger, acquisition, company split).
If found, summarize the clause in up to 20 words.
If not found, return "Not found".
If available, also extract:
- Article number
- Article title
Result format (recommended)
Result: Found / Not found
Details:
Article:
Title:
Risk Check
Description (prompt)
Review the contract and check the following:
1. No anti-social forces clause
2. A liability cap on damages
3. Payment by promissory note
4. A non-compete clause
Check each item separately.
List all applicable items, then count them and return the level as "LvX" (e.g., Lv1, Lv2).
Use only these labels:
- No anti-social forces clause
- Liability cap present
- Payment by promissory note allowed
- Non-compete clause present
If none apply, return "Lv0".
Result format (recommended)
Level: LvX
Items:
-
Example output:
Level: Lv3
Items:
- No anti-social forces clause
- Liability cap present
- Payment by promissory note allowed
Delivery / Receipt date
Description (prompt)
Review the contract and look for sections about delivery or receipt.
Extract the delivery date or deadline.
If multiple are stated, use the one that most clearly defines the obligation.
If not found, return "Not found".
Result format (recommended)
Result: Found / Not found
Date or deadline:
Acceptance Inspection
Description (prompt)
Review the contract and look for sections about acceptance inspection.
Extract the inspection deadline.
If multiple are stated, use the one that most clearly defines the requirement.
If not found, return "Not found".
Result format (recommended)
Result: Found / Not found
Deadline:
Warranty Period
Description (prompt)
Review the contract and look for sections about warranty or quality guarantee.
Extract the warranty period.
If multiple are stated, use the one that most clearly defines the period.
If not found, return "Not found".
Result format (recommended)
Result: Found / Not found
Period:
Related articles
