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.
| Property | Value |
|---|---|
| Steps | 4 (extract, analyze-risk, check-compliance, generate-report) |
| Models | Sonnet (extract, compliance, report), Opus (risk analysis) |
| HITL | Enabled on analyze-risk (threshold: 0.85) |
| Est. Cost | $0.034 per execution |
| Est. Duration | 30-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" \
--waitcompliance-audit-v1
Regulatory Compliance Audit -- Evaluates documents against GDPR, SOX, HIPAA, and industry-specific regulations.
| Property | Value |
|---|---|
| Steps | 5 (classify, gdpr-check, sox-check, industry-check, audit-report) |
| Models | Sonnet (all steps), Opus (audit-report) |
| HITL | Enabled on audit-report (threshold: 0.90) |
| Est. Cost | $0.051 per execution |
| Est. Duration | 45-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.
| Property | Value |
|---|---|
| Steps | 3 (analyze-requirements, draft-nda, review-formatting) |
| Models | Sonnet (all steps) |
| HITL | Enabled on draft-nda (threshold: 0.80) |
| Est. Cost | $0.022 per execution |
| Est. Duration | 20-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"}' \
--waitip-assessment-v1
Intellectual Property Assessment -- Evaluates IP portfolio strength, identifies risks, and provides valuation guidance.
| Property | Value |
|---|---|
| Steps | 6 (classify-ip, patent-analysis, trademark-check, trade-secret-review, risk-assessment, valuation-report) |
| Models | Sonnet (classify, trademark, trade-secret), Opus (patent, risk, valuation) |
| HITL | Enabled on risk-assessment, valuation-report (threshold: 0.85) |
| Est. Cost | $0.068 per execution |
| Est. Duration | 60-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
- Finance Templates -- Financial analysis and due diligence templates
- Creating Templates -- Build custom legal templates