Templates
Legal Templates

Legal Templates

Pre-built workflow templates for legal document analysis, compliance auditing, and contract management. All legal templates include HITL approval gates on high-stakes analysis steps.

contract-review-v1

Contract Review Pipeline -- Extracts clauses, analyzes risks, checks compliance, and generates an executive report.

PropertyValue
Steps4 (extract, analyze-risk, check-compliance, generate-report)
ModelsSonnet (extract, compliance, report), Opus (risk analysis)
HITLEnabled on analyze-risk (threshold: 0.85)
Est. Cost$0.034 per execution
Est. Duration30-60 seconds

Input Schema

{
  contract: string;         // Required: full contract text
  jurisdiction?: string;    // Default: "United States"
  reviewDepth?: 'quick' | 'standard' | 'comprehensive'; // Default: 'standard'
}

Usage

devteam templates deploy contract-review-v1 \
  --input contract=@./contract.pdf \
  --input jurisdiction="Delaware" \
  --input reviewDepth="comprehensive" \
  --wait

compliance-audit-v1

Regulatory Compliance Audit -- Evaluates documents against GDPR, SOX, HIPAA, and industry-specific regulations.

PropertyValue
Steps5 (classify, gdpr-check, sox-check, industry-check, audit-report)
ModelsSonnet (all steps), Opus (audit-report)
HITLEnabled on audit-report (threshold: 0.90)
Est. Cost$0.051 per execution
Est. Duration45-90 seconds

Input Schema

{
  documents: string[];       // Required: array of document texts
  regulations: string[];     // Required: e.g., ['GDPR', 'SOX', 'HIPAA']
  industry: string;          // Required: e.g., 'healthcare', 'finance'
  companyName?: string;
}

Usage

const result = await client.deployTemplate('compliance-audit-v1', {
  input: {
    documents: [policyDoc, privacyPolicy, dataAgreement],
    regulations: ['GDPR', 'HIPAA'],
    industry: 'healthcare',
    companyName: 'MedTech Corp',
  },
  wait: true,
});

nda-generator-v1

NDA Document Generator -- Generates a customized Non-Disclosure Agreement based on parameters.

PropertyValue
Steps3 (analyze-requirements, draft-nda, review-formatting)
ModelsSonnet (all steps)
HITLEnabled on draft-nda (threshold: 0.80)
Est. Cost$0.022 per execution
Est. Duration20-40 seconds

Input Schema

{
  partyA: { name: string; jurisdiction: string; address: string };
  partyB: { name: string; jurisdiction: string; address: string };
  ndaType: 'mutual' | 'unilateral';
  duration: string;          // e.g., "2 years"
  scope: string;             // Description of confidential information
  governingLaw?: string;     // Default: partyA jurisdiction
  specialClauses?: string[]; // Additional requirements
}

Usage

devteam templates deploy nda-generator-v1 \
  --input '{"partyA":{"name":"Matwal LTD","jurisdiction":"England","address":"London"},"partyB":{"name":"Acme Corp","jurisdiction":"Delaware","address":"Wilmington"},"ndaType":"mutual","duration":"3 years","scope":"AI agent orchestration technology and trade secrets"}' \
  --wait

ip-assessment-v1

Intellectual Property Assessment -- Evaluates IP portfolio strength, identifies risks, and provides valuation guidance.

PropertyValue
Steps6 (classify-ip, patent-analysis, trademark-check, trade-secret-review, risk-assessment, valuation-report)
ModelsSonnet (classify, trademark, trade-secret), Opus (patent, risk, valuation)
HITLEnabled on risk-assessment, valuation-report (threshold: 0.85)
Est. Cost$0.068 per execution
Est. Duration60-120 seconds

Input Schema

{
  ipPortfolio: string;       // Description of IP assets
  patents?: string[];        // Patent numbers or descriptions
  trademarks?: string[];     // Trademark registrations
  tradeName?: string;        // Company/product name
  industry: string;
  jurisdiction: string;
  purpose: 'valuation' | 'due-diligence' | 'litigation-prep' | 'portfolio-review';
}

Legal templates are authored by qualified legal professionals and reviewed quarterly. They are not a substitute for professional legal advice. Always have a qualified attorney review the output before taking action.

Next Steps