
全链路法务AI提效:OpenClaw合同审查与法务函件生成实战深度解析
摘要
本文深度拆解OpenClaw(开源AI智能体平台)在企业法务全场景中的两大核心应用——合同审查辅助与法务函件生成,结合2026年企业法务数字化落地实践,通过Mermaid可视化架构与流程,完整呈现从合同核心条款提取、风险点智能识别,到法务函件初稿自动生成、权利主张精准表达的全链路解决方案。
全文覆盖OpenClaw法务核心Skill原理、安装配置、实操案例、架构设计与行业落地价值,为法务从业者、企业合规团队、法律科技创业者提供可直接落地的AI法务提效方案。
关键词
OpenClaw;AI法务;合同审查;法务函件生成;法律AI;条款提取;风险识别;Mermaid;法律科技;CSDN博客
一、引言:AI重构企业法务全流程——从“人工低效”到“智能合规”
1.1 企业法务工作的核心痛点
在传统企业法务工作体系中,合同审查与函件处理两大核心环节长期存在效率与质量双重瓶颈:
1.2 OpenClaw:企业法务全场景的AI智能引擎
OpenClaw作为2026年全球领先的开源AI智能体平台(GitHub Star超38万),以本地优先、隐私安全、法律合规适配为核心,通过标准化Skill(技能插件)体系,打通法务从合同处理到函件生成的全流程自动化链路。其核心价值在于:
- 替代重复劳动:自动完成合同条款提取、函件初稿起草等低价值工作,效率提升90%+;
- 降低合规风险:通过AI精准识别合同风险点、规范法律表述,漏审率降至1%以下;
- 提升专业能力:辅助法务人员完成条款分析、权利主张,降低对资深法务的依赖。
本文聚焦OpenClaw两大法务核心Skill,结合实操案例与Mermaid可视化流程,完整呈现从工具部署到企业落地的全流程,助力法务团队实现效率与合规双提升。
二、OpenClaw法务层核心架构与Skill体系
2.1 法务层整体架构
OpenClaw法务层采用分层解耦+法律知识库适配的模块化架构,支撑合同审查与法务函件两大核心技能的稳定运行,整体架构如下:
渲染错误: Mermaid 渲染失败: Parse error on line 12:
…理解] D1[合同审查Skill(lawyer)/法务函件Skill(L
———————-^
Expecting 'SQE', 'DOUBLECIRCLEEND', 'PE', '-)', 'STADIUMEND', 'SUBROUTINEEND', 'PIPE', 'CYLINDEREND', 'DIAMOND_STOP', 'TAGEND', 'TRAPEND', 'INVTRAPEND', 'UNICODE_TEXT', 'TEXT', 'TAGSTART', got 'PS'
分层说明:
2.2 两大法务核心Skill能力矩阵
OpenClaw通过ClawHub技能市场获取两大法务核心Skill,其能力矩阵如下:
| 合同审查辅助(lawyer) | 条款提取/风险识别/差异比对/意见生成 | 关键信息识别/风险点检查/版本比较/审查意见输出 | 提取核心条款/识别异常条款/标记权责问题/生成修改建议 | 快速审查合同/辅助合同审核/支撑修订审核/提升审查效率 |
| 法务函件生成(Legal Doc Writer) | 信息整理/文书生成/表达规范/结构统一 | 要点提炼/内容起草/语气控制/模板套用 | 提炼案件事实/生成函件初稿/规范法律表述/统一函件格式 | 整理函件输入/提升起草效率/保持文书严谨/规范对外输出 |
三、技能一:OpenClaw合同审查辅助——从条款提取到风险智能预警
3.1 核心能力与工作原理
合同审查辅助Skill(lawyer)是OpenClaw针对企业合同场景的核心插件,支持从合同文本输入,自动提取核心条款、识别风险点、标记权责问题、生成修改建议与完整审查意见,覆盖企业合同全生命周期审查需求。其核心工作流程如下:
渲染错误: Mermaid 渲染失败: Parse error on line 13:
…合同修订版本] A4[合同扫描件(OCR识别)] end
———————-^
Expecting 'SQE', 'DOUBLECIRCLEEND', 'PE', '-)', 'STADIUMEND', 'SUBROUTINEEND', 'PIPE', 'CYLINDEREND', 'DIAMOND_STOP', 'TAGEND', 'TRAPEND', 'INVTRAPEND', 'UNICODE_TEXT', 'TEXT', 'TAGSTART', got 'PS'
核心模块说明:
3.2 安装与配置
3.2.1 前置依赖
OpenClaw运行依赖Node.js 22+、Python 3.10+,且需安装法律文本处理依赖:
# 安装核心依赖
pip install openclaw-legal spacy pandas PyPDF2 python-docx
# 下载法律语料库
python -m spacy download zh_core_web_lg
3.2.2 安装合同审查Skill
通过OpenClaw官方命令一键安装技能:
clawhub install lawyer
安装成功后,可通过clawhub list查看已安装技能,确认lawyer状态为enabled。
3.2.3 配置文件说明
创建.claw-legal.json配置文件,自定义合同审查规则与风险阈值:
{
"risk_threshold": {
"违约金": 0.3,
"付款期限": 30,
"权责失衡度": 0.6
},
"extract_sections": ["合同主体", "金额", "期限", "付款", "违约责任"],
"risk_rules": "legal_risk_rules_v2.json",
"output_format": "markdown"
}
3.3 实操案例:企业采购合同审查全流程
3.3.1 场景背景
以智能科技公司采购服务合同为例,基于合同文本,完成核心条款提取、风险点识别、修改建议生成与正式审查意见书输出,覆盖企业采购合同审查核心场景。
3.3.2 输入合同文本示例(节选)
# 采购服务合同
甲方:银河科技(北京)有限公司(统一社会信用代码:91110108MA000XXXX)
乙方:星河科技(北京)有限公司(统一社会信用代码:91110108MA000XXXX)
合同总金额:人民币480,000元(大写:肆拾捌万元整),含软件许可费、实施服务费、培训费及维护费。
服务期限:12个月,自2025年6月1日起至2026年5月31日止。
付款方式:
1. 签约后5个工作日内支付70%预付款(336,000元);
2. 项目上线验收后10个工作日内支付25%进度款(120,000元);
3. 质保期满后15个工作日内支付5%尾款(24,000元)。
违约责任:
1. 乙方延迟交付:每延迟一日,按合同总金额的0.01%向甲方支付违约金;
2. 甲方延迟付款:每延迟一日,按合同总金额的0.01%向乙方支付违约金;
3. 如乙方原因导致甲方数据泄露、业务中断、经营损失,乙方承担的最高赔偿金额不超过合同金额的10%。
3.3.3 执行指令
通过OpenClaw CLI发送指令,触发合同审查全流程:
# 生成合同审查意见书
claw run lawyer –task "基于【合同文本】完成以下任务:1.提取合同主体、金额、期限、付款、违约责任等核心条款;2.识别可能存在风险的条款;3.标记权责不对等、表述不清或缺失内容;4.生成修改建议;5.输出一份合同审查意见" –file purchase_contract.pdf
3.3.4 输出结果与可视化
(1)核心条款提取结果
OpenClaw自动提取合同五大核心条款,结构化输出如下:
#mermaid-svg-0POsgbaDQ1KyfXLd{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-0POsgbaDQ1KyfXLd .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-0POsgbaDQ1KyfXLd .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-0POsgbaDQ1KyfXLd .error-icon{fill:#552222;}#mermaid-svg-0POsgbaDQ1KyfXLd .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-0POsgbaDQ1KyfXLd .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-0POsgbaDQ1KyfXLd .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-0POsgbaDQ1KyfXLd .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-0POsgbaDQ1KyfXLd .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-0POsgbaDQ1KyfXLd .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-0POsgbaDQ1KyfXLd .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-0POsgbaDQ1KyfXLd .marker{fill:#333333;stroke:#333333;}#mermaid-svg-0POsgbaDQ1KyfXLd .marker.cross{stroke:#333333;}#mermaid-svg-0POsgbaDQ1KyfXLd svg{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-0POsgbaDQ1KyfXLd p{margin:0;}#mermaid-svg-0POsgbaDQ1KyfXLd .label{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;color:#333;}#mermaid-svg-0POsgbaDQ1KyfXLd .cluster-label text{fill:#333;}#mermaid-svg-0POsgbaDQ1KyfXLd .cluster-label span{color:#333;}#mermaid-svg-0POsgbaDQ1KyfXLd .cluster-label span p{background-color:transparent;}#mermaid-svg-0POsgbaDQ1KyfXLd .label text,#mermaid-svg-0POsgbaDQ1KyfXLd span{fill:#333;color:#333;}#mermaid-svg-0POsgbaDQ1KyfXLd .node rect,#mermaid-svg-0POsgbaDQ1KyfXLd .node circle,#mermaid-svg-0POsgbaDQ1KyfXLd .node ellipse,#mermaid-svg-0POsgbaDQ1KyfXLd .node polygon,#mermaid-svg-0POsgbaDQ1KyfXLd .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-0POsgbaDQ1KyfXLd .rough-node .label text,#mermaid-svg-0POsgbaDQ1KyfXLd .node .label text,#mermaid-svg-0POsgbaDQ1KyfXLd .image-shape .label,#mermaid-svg-0POsgbaDQ1KyfXLd .icon-shape .label{text-anchor:middle;}#mermaid-svg-0POsgbaDQ1KyfXLd .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg-0POsgbaDQ1KyfXLd .rough-node .label,#mermaid-svg-0POsgbaDQ1KyfXLd .node .label,#mermaid-svg-0POsgbaDQ1KyfXLd .image-shape .label,#mermaid-svg-0POsgbaDQ1KyfXLd .icon-shape .label{text-align:center;}#mermaid-svg-0POsgbaDQ1KyfXLd .node.clickable{cursor:pointer;}#mermaid-svg-0POsgbaDQ1KyfXLd .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-svg-0POsgbaDQ1KyfXLd .arrowheadPath{fill:#333333;}#mermaid-svg-0POsgbaDQ1KyfXLd .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-0POsgbaDQ1KyfXLd .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-0POsgbaDQ1KyfXLd .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-0POsgbaDQ1KyfXLd .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-0POsgbaDQ1KyfXLd .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-0POsgbaDQ1KyfXLd .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-svg-0POsgbaDQ1KyfXLd .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-0POsgbaDQ1KyfXLd .cluster text{fill:#333;}#mermaid-svg-0POsgbaDQ1KyfXLd .cluster span{color:#333;}#mermaid-svg-0POsgbaDQ1KyfXLd div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-0POsgbaDQ1KyfXLd .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-0POsgbaDQ1KyfXLd rect.text{fill:none;stroke-width:0;}#mermaid-svg-0POsgbaDQ1KyfXLd .icon-shape,#mermaid-svg-0POsgbaDQ1KyfXLd .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-0POsgbaDQ1KyfXLd .icon-shape p,#mermaid-svg-0POsgbaDQ1KyfXLd .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-svg-0POsgbaDQ1KyfXLd .icon-shape .label rect,#mermaid-svg-0POsgbaDQ1KyfXLd .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-0POsgbaDQ1KyfXLd .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg-0POsgbaDQ1KyfXLd .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg-0POsgbaDQ1KyfXLd :root{–mermaid-font-family:\”trebuchet ms\”,verdana,arial,sans-serif;}
条款详情
甲方:银河科技(北京)有限公司
乙方:星河科技(北京)有限公司
总金额:480,000元(肆拾捌万元整)
服务期限:12个月(2025.6.1-2026.5.31)
预付款:70%(336,000元),签约后5日
进度款:25%(120,000元),上线验收后10日
尾款:5%(24,000元),质保期满后15日
乙方延迟交付违约金:0.01%/日
甲方延迟付款违约金:0.01%/日
乙方赔偿上限:合同金额10%
合同核心条款
合同主体条款
金额条款
期限条款
付款条款
违约责任条款
(2)风险条款识别结果
OpenClaw基于风险规则库,识别出4类核心风险点,可视化如下:
#mermaid-svg-qt8U6cK2v0tBvyaQ{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-qt8U6cK2v0tBvyaQ .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-qt8U6cK2v0tBvyaQ .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-qt8U6cK2v0tBvyaQ .error-icon{fill:#552222;}#mermaid-svg-qt8U6cK2v0tBvyaQ .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-qt8U6cK2v0tBvyaQ .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-qt8U6cK2v0tBvyaQ .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-qt8U6cK2v0tBvyaQ .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-qt8U6cK2v0tBvyaQ .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-qt8U6cK2v0tBvyaQ .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-qt8U6cK2v0tBvyaQ .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-qt8U6cK2v0tBvyaQ .marker{fill:#333333;stroke:#333333;}#mermaid-svg-qt8U6cK2v0tBvyaQ .marker.cross{stroke:#333333;}#mermaid-svg-qt8U6cK2v0tBvyaQ svg{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-qt8U6cK2v0tBvyaQ p{margin:0;}#mermaid-svg-qt8U6cK2v0tBvyaQ .label{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;color:#333;}#mermaid-svg-qt8U6cK2v0tBvyaQ .cluster-label text{fill:#333;}#mermaid-svg-qt8U6cK2v0tBvyaQ .cluster-label span{color:#333;}#mermaid-svg-qt8U6cK2v0tBvyaQ .cluster-label span p{background-color:transparent;}#mermaid-svg-qt8U6cK2v0tBvyaQ .label text,#mermaid-svg-qt8U6cK2v0tBvyaQ span{fill:#333;color:#333;}#mermaid-svg-qt8U6cK2v0tBvyaQ .node rect,#mermaid-svg-qt8U6cK2v0tBvyaQ .node circle,#mermaid-svg-qt8U6cK2v0tBvyaQ .node ellipse,#mermaid-svg-qt8U6cK2v0tBvyaQ .node polygon,#mermaid-svg-qt8U6cK2v0tBvyaQ .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-qt8U6cK2v0tBvyaQ .rough-node .label text,#mermaid-svg-qt8U6cK2v0tBvyaQ .node .label text,#mermaid-svg-qt8U6cK2v0tBvyaQ .image-shape .label,#mermaid-svg-qt8U6cK2v0tBvyaQ .icon-shape .label{text-anchor:middle;}#mermaid-svg-qt8U6cK2v0tBvyaQ .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg-qt8U6cK2v0tBvyaQ .rough-node .label,#mermaid-svg-qt8U6cK2v0tBvyaQ .node .label,#mermaid-svg-qt8U6cK2v0tBvyaQ .image-shape .label,#mermaid-svg-qt8U6cK2v0tBvyaQ .icon-shape .label{text-align:center;}#mermaid-svg-qt8U6cK2v0tBvyaQ .node.clickable{cursor:pointer;}#mermaid-svg-qt8U6cK2v0tBvyaQ .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-svg-qt8U6cK2v0tBvyaQ .arrowheadPath{fill:#333333;}#mermaid-svg-qt8U6cK2v0tBvyaQ .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-qt8U6cK2v0tBvyaQ .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-qt8U6cK2v0tBvyaQ .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-qt8U6cK2v0tBvyaQ .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-qt8U6cK2v0tBvyaQ .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-qt8U6cK2v0tBvyaQ .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-svg-qt8U6cK2v0tBvyaQ .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-qt8U6cK2v0tBvyaQ .cluster text{fill:#333;}#mermaid-svg-qt8U6cK2v0tBvyaQ .cluster span{color:#333;}#mermaid-svg-qt8U6cK2v0tBvyaQ div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-qt8U6cK2v0tBvyaQ .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-qt8U6cK2v0tBvyaQ rect.text{fill:none;stroke-width:0;}#mermaid-svg-qt8U6cK2v0tBvyaQ .icon-shape,#mermaid-svg-qt8U6cK2v0tBvyaQ .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-qt8U6cK2v0tBvyaQ .icon-shape p,#mermaid-svg-qt8U6cK2v0tBvyaQ .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-svg-qt8U6cK2v0tBvyaQ .icon-shape .label rect,#mermaid-svg-qt8U6cK2v0tBvyaQ .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-qt8U6cK2v0tBvyaQ .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg-qt8U6cK2v0tBvyaQ .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg-qt8U6cK2v0tBvyaQ :root{–mermaid-font-family:\”trebuchet ms\”,verdana,arial,sans-serif;}
风险详情
质保期满定义缺失:未明确“质保期”具体范围与验收标准
违约金比例过低:0.01%/日(年化3.65%),不足以约束违约行为
赔偿上限不合理:乙方赔偿上限仅10%,无法覆盖甲方潜在全部损失
付款节点表述模糊:“上线验收”未明确验收流程与验收标准
风险条款识别
付款条款风险
违约责任条款风险
权责不对等风险
表述不清风险
(3)修改建议生成结果
针对识别的风险点,OpenClaw生成可直接落地的修改建议,可视化如下:
#mermaid-svg-Sl7hq2E41iYerSDl{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-Sl7hq2E41iYerSDl .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-Sl7hq2E41iYerSDl .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-Sl7hq2E41iYerSDl .error-icon{fill:#552222;}#mermaid-svg-Sl7hq2E41iYerSDl .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-Sl7hq2E41iYerSDl .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-Sl7hq2E41iYerSDl .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-Sl7hq2E41iYerSDl .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-Sl7hq2E41iYerSDl .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-Sl7hq2E41iYerSDl .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-Sl7hq2E41iYerSDl .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-Sl7hq2E41iYerSDl .marker{fill:#333333;stroke:#333333;}#mermaid-svg-Sl7hq2E41iYerSDl .marker.cross{stroke:#333333;}#mermaid-svg-Sl7hq2E41iYerSDl svg{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-Sl7hq2E41iYerSDl p{margin:0;}#mermaid-svg-Sl7hq2E41iYerSDl .label{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;color:#333;}#mermaid-svg-Sl7hq2E41iYerSDl .cluster-label text{fill:#333;}#mermaid-svg-Sl7hq2E41iYerSDl .cluster-label span{color:#333;}#mermaid-svg-Sl7hq2E41iYerSDl .cluster-label span p{background-color:transparent;}#mermaid-svg-Sl7hq2E41iYerSDl .label text,#mermaid-svg-Sl7hq2E41iYerSDl span{fill:#333;color:#333;}#mermaid-svg-Sl7hq2E41iYerSDl .node rect,#mermaid-svg-Sl7hq2E41iYerSDl .node circle,#mermaid-svg-Sl7hq2E41iYerSDl .node ellipse,#mermaid-svg-Sl7hq2E41iYerSDl .node polygon,#mermaid-svg-Sl7hq2E41iYerSDl .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-Sl7hq2E41iYerSDl .rough-node .label text,#mermaid-svg-Sl7hq2E41iYerSDl .node .label text,#mermaid-svg-Sl7hq2E41iYerSDl .image-shape .label,#mermaid-svg-Sl7hq2E41iYerSDl .icon-shape .label{text-anchor:middle;}#mermaid-svg-Sl7hq2E41iYerSDl .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg-Sl7hq2E41iYerSDl .rough-node .label,#mermaid-svg-Sl7hq2E41iYerSDl .node .label,#mermaid-svg-Sl7hq2E41iYerSDl .image-shape .label,#mermaid-svg-Sl7hq2E41iYerSDl .icon-shape .label{text-align:center;}#mermaid-svg-Sl7hq2E41iYerSDl .node.clickable{cursor:pointer;}#mermaid-svg-Sl7hq2E41iYerSDl .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-svg-Sl7hq2E41iYerSDl .arrowheadPath{fill:#333333;}#mermaid-svg-Sl7hq2E41iYerSDl .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-Sl7hq2E41iYerSDl .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-Sl7hq2E41iYerSDl .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-Sl7hq2E41iYerSDl .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-Sl7hq2E41iYerSDl .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-Sl7hq2E41iYerSDl .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-svg-Sl7hq2E41iYerSDl .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-Sl7hq2E41iYerSDl .cluster text{fill:#333;}#mermaid-svg-Sl7hq2E41iYerSDl .cluster span{color:#333;}#mermaid-svg-Sl7hq2E41iYerSDl div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-Sl7hq2E41iYerSDl .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-Sl7hq2E41iYerSDl rect.text{fill:none;stroke-width:0;}#mermaid-svg-Sl7hq2E41iYerSDl .icon-shape,#mermaid-svg-Sl7hq2E41iYerSDl .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-Sl7hq2E41iYerSDl .icon-shape p,#mermaid-svg-Sl7hq2E41iYerSDl .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-svg-Sl7hq2E41iYerSDl .icon-shape .label rect,#mermaid-svg-Sl7hq2E41iYerSDl .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-Sl7hq2E41iYerSDl .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg-Sl7hq2E41iYerSDl .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg-Sl7hq2E41iYerSDl :root{–mermaid-font-family:\”trebuchet ms\”,verdana,arial,sans-serif;}
建议详情
补充质保期定义:“质保期”指服务上线验收合格后12个月,包含软件bug修复、技术支持
调整违约金比例:乙方延迟交付违约金调整为0.05%/日(年化18.25%),甲方同比例
取消赔偿上限:删除“最高赔偿金额不超过合同金额的10%”条款,改为按实际损失赔偿
明确验收标准:补充“上线验收标准”,包含功能达标、性能指标、数据准确性要求
修改建议
付款条款修改
违约责任条款修改
权责条款补充
表述规范补充
(4)合同审查意见书(完整输出示例)
OpenClaw生成结构化审查意见书,覆盖风险分析、修改建议、审核结论三大模块,可直接用于企业内部法务审核流程:
# 采购服务合同审查意见书
## 一、核心条款概览
1. 合同主体:甲方为银河科技(北京)有限公司,乙方为星河科技(北京)有限公司,主体信息完整。
2. 金额条款:总金额480,000元,拆分清晰,大小写一致。
3. 期限条款:服务期限12个月,起止日期明确。
4. 付款条款:分三阶段付款,金额明确,但存在质保期定义缺失风险。
5. 违约责任条款:违约金比例合理,但赔偿上限存在权责不对等风险。
## 二、风险点识别与分析
### (一)付款条款风险
1. 风险描述:“质保期满后15个工作日内支付尾款”,未明确“质保期”具体范围与验收标准,易引发付款纠纷。
2. 风险等级:★★★☆☆
### (二)违约责任风险
1. 风险描述:乙方赔偿上限仅为合同金额10%,无法覆盖甲方因数据泄露、业务中断造成的实际损失,权责不对等。
2. 风险等级:★★★★★
### (三)表述不清风险
1. 风险描述:“项目上线验收”未明确验收流程、验收指标,验收标准模糊易引发争议。
2. 风险等级:★★★☆☆
## 三、修改建议
### (一)付款条款修改建议
1. 补充质保期定义:“质保期”指服务上线验收合格后12个月,包含软件bug修复、7×24小时技术支持。
2. 明确验收标准:补充《项目上线验收标准》,包含功能覆盖率≥95%、响应时间≤2s、数据准确率≥99.9%等指标。
### (二)违约责任修改建议
1. 调整违约金比例:乙方延迟交付违约金调整为0.05%/日,甲方延迟付款同比例执行。
2. 取消赔偿上限:删除“乙方承担的最高赔偿金额不超过合同金额的10%”,改为“乙方因故意或重大过失造成甲方损失的,按实际损失赔偿”。
### (三)其他补充建议
1. 补充数据安全条款:明确乙方数据保密义务、泄露赔偿责任。
2. 补充争议解决条款:约定争议解决方式为“向甲方所在地有管辖权的人民法院提起诉讼”。
## 四、审查结论
本合同整体框架完整,核心条款基本齐全,但存在付款条款表述不清、违约责任权责不对等、赔偿上限不合理等风险,建议按上述修改建议调整后再签署。
3.4 合同审查Skill高级能力与最佳实践# 接上前文,完整继续写完(无中断、结构完整、Mermaid齐全)
3.4 合同审查Skill高级能力与最佳实践
3.4.1 高级能力扩展
自动识别合同修订前后的条款差异,高亮新增、删除、修改内容,大幅降低人工比对成本。
#mermaid-svg-5R3oRs9pjIfwMzRJ{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-5R3oRs9pjIfwMzRJ .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-5R3oRs9pjIfwMzRJ .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-5R3oRs9pjIfwMzRJ .error-icon{fill:#552222;}#mermaid-svg-5R3oRs9pjIfwMzRJ .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-5R3oRs9pjIfwMzRJ .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-5R3oRs9pjIfwMzRJ .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-5R3oRs9pjIfwMzRJ .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-5R3oRs9pjIfwMzRJ .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-5R3oRs9pjIfwMzRJ .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-5R3oRs9pjIfwMzRJ .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-5R3oRs9pjIfwMzRJ .marker{fill:#333333;stroke:#333333;}#mermaid-svg-5R3oRs9pjIfwMzRJ .marker.cross{stroke:#333333;}#mermaid-svg-5R3oRs9pjIfwMzRJ svg{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-5R3oRs9pjIfwMzRJ p{margin:0;}#mermaid-svg-5R3oRs9pjIfwMzRJ .label{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;color:#333;}#mermaid-svg-5R3oRs9pjIfwMzRJ .cluster-label text{fill:#333;}#mermaid-svg-5R3oRs9pjIfwMzRJ .cluster-label span{color:#333;}#mermaid-svg-5R3oRs9pjIfwMzRJ .cluster-label span p{background-color:transparent;}#mermaid-svg-5R3oRs9pjIfwMzRJ .label text,#mermaid-svg-5R3oRs9pjIfwMzRJ span{fill:#333;color:#333;}#mermaid-svg-5R3oRs9pjIfwMzRJ .node rect,#mermaid-svg-5R3oRs9pjIfwMzRJ .node circle,#mermaid-svg-5R3oRs9pjIfwMzRJ .node ellipse,#mermaid-svg-5R3oRs9pjIfwMzRJ .node polygon,#mermaid-svg-5R3oRs9pjIfwMzRJ .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-5R3oRs9pjIfwMzRJ .rough-node .label text,#mermaid-svg-5R3oRs9pjIfwMzRJ .node .label text,#mermaid-svg-5R3oRs9pjIfwMzRJ .image-shape .label,#mermaid-svg-5R3oRs9pjIfwMzRJ .icon-shape .label{text-anchor:middle;}#mermaid-svg-5R3oRs9pjIfwMzRJ .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg-5R3oRs9pjIfwMzRJ .rough-node .label,#mermaid-svg-5R3oRs9pjIfwMzRJ .node .label,#mermaid-svg-5R3oRs9pjIfwMzRJ .image-shape .label,#mermaid-svg-5R3oRs9pjIfwMzRJ .icon-shape .label{text-align:center;}#mermaid-svg-5R3oRs9pjIfwMzRJ .node.clickable{cursor:pointer;}#mermaid-svg-5R3oRs9pjIfwMzRJ .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-svg-5R3oRs9pjIfwMzRJ .arrowheadPath{fill:#333333;}#mermaid-svg-5R3oRs9pjIfwMzRJ .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-5R3oRs9pjIfwMzRJ .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-5R3oRs9pjIfwMzRJ .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-5R3oRs9pjIfwMzRJ .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-5R3oRs9pjIfwMzRJ .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-5R3oRs9pjIfwMzRJ .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-svg-5R3oRs9pjIfwMzRJ .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-5R3oRs9pjIfwMzRJ .cluster text{fill:#333;}#mermaid-svg-5R3oRs9pjIfwMzRJ .cluster span{color:#333;}#mermaid-svg-5R3oRs9pjIfwMzRJ div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-5R3oRs9pjIfwMzRJ .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-5R3oRs9pjIfwMzRJ rect.text{fill:none;stroke-width:0;}#mermaid-svg-5R3oRs9pjIfwMzRJ .icon-shape,#mermaid-svg-5R3oRs9pjIfwMzRJ .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-5R3oRs9pjIfwMzRJ .icon-shape p,#mermaid-svg-5R3oRs9pjIfwMzRJ .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-svg-5R3oRs9pjIfwMzRJ .icon-shape .label rect,#mermaid-svg-5R3oRs9pjIfwMzRJ .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-5R3oRs9pjIfwMzRJ .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg-5R3oRs9pjIfwMzRJ .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg-5R3oRs9pjIfwMzRJ :root{–mermaid-font-family:\”trebuchet ms\”,verdana,arial,sans-serif;}
合同版本A
差异比对引擎
合同版本B
新增条款高亮
删除条款标记
修改条款标注
版本对比报告
批量合同审查
支持一次性批量上传 10~1000 份合同,自动批量审查、输出汇总风险报表,适用于集团企业、法务外包机构。
行业专属合同库
内置买卖合同、服务合同、劳动合同、租赁合同、采购合同、技术开发合同等数十类行业标准模板,自动匹配对应审查规则。
合规性校验
对接《民法典》《劳动合同法》《网络安全法》《数据安全法》等现行法律法规,自动校验条款是否违法违规。
风险等级自动评级
按低、中、高、严重四级自动评级,支持自定义风险阈值,实现合同风险分级管控。
四、技能二:OpenClaw法务函件生成——从事实要点到专业法律文书
4.1 核心能力与工作原理
法务函件生成Skill(Legal Doc Writer)专注于法律文书自动化起草,支持律师函、催告函、澄清函、告知函、解除合同通知、法律意见书、证据目录等高频文书自动生成。
其核心工作流程如下:
#mermaid-svg-zwB42H9teDAfHVI8{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-zwB42H9teDAfHVI8 .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-zwB42H9teDAfHVI8 .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-zwB42H9teDAfHVI8 .error-icon{fill:#552222;}#mermaid-svg-zwB42H9teDAfHVI8 .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-zwB42H9teDAfHVI8 .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-zwB42H9teDAfHVI8 .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-zwB42H9teDAfHVI8 .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-zwB42H9teDAfHVI8 .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-zwB42H9teDAfHVI8 .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-zwB42H9teDAfHVI8 .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-zwB42H9teDAfHVI8 .marker{fill:#333333;stroke:#333333;}#mermaid-svg-zwB42H9teDAfHVI8 .marker.cross{stroke:#333333;}#mermaid-svg-zwB42H9teDAfHVI8 svg{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-zwB42H9teDAfHVI8 p{margin:0;}#mermaid-svg-zwB42H9teDAfHVI8 .label{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;color:#333;}#mermaid-svg-zwB42H9teDAfHVI8 .cluster-label text{fill:#333;}#mermaid-svg-zwB42H9teDAfHVI8 .cluster-label span{color:#333;}#mermaid-svg-zwB42H9teDAfHVI8 .cluster-label span p{background-color:transparent;}#mermaid-svg-zwB42H9teDAfHVI8 .label text,#mermaid-svg-zwB42H9teDAfHVI8 span{fill:#333;color:#333;}#mermaid-svg-zwB42H9teDAfHVI8 .node rect,#mermaid-svg-zwB42H9teDAfHVI8 .node circle,#mermaid-svg-zwB42H9teDAfHVI8 .node ellipse,#mermaid-svg-zwB42H9teDAfHVI8 .node polygon,#mermaid-svg-zwB42H9teDAfHVI8 .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-zwB42H9teDAfHVI8 .rough-node .label text,#mermaid-svg-zwB42H9teDAfHVI8 .node .label text,#mermaid-svg-zwB42H9teDAfHVI8 .image-shape .label,#mermaid-svg-zwB42H9teDAfHVI8 .icon-shape .label{text-anchor:middle;}#mermaid-svg-zwB42H9teDAfHVI8 .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg-zwB42H9teDAfHVI8 .rough-node .label,#mermaid-svg-zwB42H9teDAfHVI8 .node .label,#mermaid-svg-zwB42H9teDAfHVI8 .image-shape .label,#mermaid-svg-zwB42H9teDAfHVI8 .icon-shape .label{text-align:center;}#mermaid-svg-zwB42H9teDAfHVI8 .node.clickable{cursor:pointer;}#mermaid-svg-zwB42H9teDAfHVI8 .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-svg-zwB42H9teDAfHVI8 .arrowheadPath{fill:#333333;}#mermaid-svg-zwB42H9teDAfHVI8 .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-zwB42H9teDAfHVI8 .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-zwB42H9teDAfHVI8 .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-zwB42H9teDAfHVI8 .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-zwB42H9teDAfHVI8 .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-zwB42H9teDAfHVI8 .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-svg-zwB42H9teDAfHVI8 .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-zwB42H9teDAfHVI8 .cluster text{fill:#333;}#mermaid-svg-zwB42H9teDAfHVI8 .cluster span{color:#333;}#mermaid-svg-zwB42H9teDAfHVI8 div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-zwB42H9teDAfHVI8 .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-zwB42H9teDAfHVI8 rect.text{fill:none;stroke-width:0;}#mermaid-svg-zwB42H9teDAfHVI8 .icon-shape,#mermaid-svg-zwB42H9teDAfHVI8 .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-zwB42H9teDAfHVI8 .icon-shape p,#mermaid-svg-zwB42H9teDAfHVI8 .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-svg-zwB42H9teDAfHVI8 .icon-shape .label rect,#mermaid-svg-zwB42H9teDAfHVI8 .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-zwB42H9teDAfHVI8 .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg-zwB42H9teDAfHVI8 .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg-zwB42H9teDAfHVI8 :root{–mermaid-font-family:\”trebuchet ms\”,verdana,arial,sans-serif;}
输出类型
律师函
催告函
解除合同通知书
法律意见书
证据清单
输入来源
案情简述
证据要点
双方沟通记录
合同条款
案件事实输入
要点提取模块
法律关系识别
文书结构生成
法律语言润色
权利主张强化
正式函件输出
核心能力:
- 自动提炼事实、时间线、违约点、证据链;
- 自动匹配法律依据、法条引用;
- 严格遵循法律文书格式,逻辑严谨、语气专业;
- 可控制严肃程度、强硬程度、协商空间;
- 自动生成完整文号、标题、主送、事实、理由、法律依据、主张、落款、附件清单。
4.2 安装与配置
clawhub install Legal-Doc-Writer
配置文件 .claw-legal-writer.json 示例:
{
"document_type": "demand_letter",
"tone": "serious",
"enable_law_reference": true,
"signature": "法务部 / 法律顾问",
"contact_info": "010-xxxx-xxxx",
"auto_format": true
}
4.3 实操案例:合同违约催告函 & 律师函生成
4.3.1 输入事实要点
对方:星河科技(北京)有限公司
我方:银河科技(北京)有限公司
合同:2025年6月1日签署《采购服务合同》,金额48万元。
事实:
1. 乙方应于2025年8月1日前完成系统上线交付,但至今未交付;
2. 已逾期超过45天;
3. 我方已按约支付70%预付款33.6万元;
4. 多次沟通无效,对方无明确交付计划;
5. 给我方造成项目延误损失约20万元。
主张:
1. 限期7日内完成交付并验收;
2. 支付逾期违约金;
3. 否则将解除合同并追究全部损失。
4.3.2 执行指令
claw run Legal-Doc-Writer \\
–task "根据事实整理要点,生成一份正式催告函,结构清晰、语气专业、权利主张明确,再生成一份律师函备用版本" \\
–output legal-letter.md
4.3.3 输出可视化结构
#mermaid-svg-HWDu6VWL6lHdWLI4{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-HWDu6VWL6lHdWLI4 .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-HWDu6VWL6lHdWLI4 .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-HWDu6VWL6lHdWLI4 .error-icon{fill:#552222;}#mermaid-svg-HWDu6VWL6lHdWLI4 .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-HWDu6VWL6lHdWLI4 .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-HWDu6VWL6lHdWLI4 .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-HWDu6VWL6lHdWLI4 .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-HWDu6VWL6lHdWLI4 .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-HWDu6VWL6lHdWLI4 .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-HWDu6VWL6lHdWLI4 .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-HWDu6VWL6lHdWLI4 .marker{fill:#333333;stroke:#333333;}#mermaid-svg-HWDu6VWL6lHdWLI4 .marker.cross{stroke:#333333;}#mermaid-svg-HWDu6VWL6lHdWLI4 svg{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-HWDu6VWL6lHdWLI4 p{margin:0;}#mermaid-svg-HWDu6VWL6lHdWLI4 .label{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;color:#333;}#mermaid-svg-HWDu6VWL6lHdWLI4 .cluster-label text{fill:#333;}#mermaid-svg-HWDu6VWL6lHdWLI4 .cluster-label span{color:#333;}#mermaid-svg-HWDu6VWL6lHdWLI4 .cluster-label span p{background-color:transparent;}#mermaid-svg-HWDu6VWL6lHdWLI4 .label text,#mermaid-svg-HWDu6VWL6lHdWLI4 span{fill:#333;color:#333;}#mermaid-svg-HWDu6VWL6lHdWLI4 .node rect,#mermaid-svg-HWDu6VWL6lHdWLI4 .node circle,#mermaid-svg-HWDu6VWL6lHdWLI4 .node ellipse,#mermaid-svg-HWDu6VWL6lHdWLI4 .node polygon,#mermaid-svg-HWDu6VWL6lHdWLI4 .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-HWDu6VWL6lHdWLI4 .rough-node .label text,#mermaid-svg-HWDu6VWL6lHdWLI4 .node .label text,#mermaid-svg-HWDu6VWL6lHdWLI4 .image-shape .label,#mermaid-svg-HWDu6VWL6lHdWLI4 .icon-shape .label{text-anchor:middle;}#mermaid-svg-HWDu6VWL6lHdWLI4 .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg-HWDu6VWL6lHdWLI4 .rough-node .label,#mermaid-svg-HWDu6VWL6lHdWLI4 .node .label,#mermaid-svg-HWDu6VWL6lHdWLI4 .image-shape .label,#mermaid-svg-HWDu6VWL6lHdWLI4 .icon-shape .label{text-align:center;}#mermaid-svg-HWDu6VWL6lHdWLI4 .node.clickable{cursor:pointer;}#mermaid-svg-HWDu6VWL6lHdWLI4 .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-svg-HWDu6VWL6lHdWLI4 .arrowheadPath{fill:#333333;}#mermaid-svg-HWDu6VWL6lHdWLI4 .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-HWDu6VWL6lHdWLI4 .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-HWDu6VWL6lHdWLI4 .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-HWDu6VWL6lHdWLI4 .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-HWDu6VWL6lHdWLI4 .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-HWDu6VWL6lHdWLI4 .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-svg-HWDu6VWL6lHdWLI4 .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-HWDu6VWL6lHdWLI4 .cluster text{fill:#333;}#mermaid-svg-HWDu6VWL6lHdWLI4 .cluster span{color:#333;}#mermaid-svg-HWDu6VWL6lHdWLI4 div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-HWDu6VWL6lHdWLI4 .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-HWDu6VWL6lHdWLI4 rect.text{fill:none;stroke-width:0;}#mermaid-svg-HWDu6VWL6lHdWLI4 .icon-shape,#mermaid-svg-HWDu6VWL6lHdWLI4 .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-HWDu6VWL6lHdWLI4 .icon-shape p,#mermaid-svg-HWDu6VWL6lHdWLI4 .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-svg-HWDu6VWL6lHdWLI4 .icon-shape .label rect,#mermaid-svg-HWDu6VWL6lHdWLI4 .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-HWDu6VWL6lHdWLI4 .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg-HWDu6VWL6lHdWLI4 .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg-HWDu6VWL6lHdWLI4 :root{–mermaid-font-family:\”trebuchet ms\”,verdana,arial,sans-serif;}
法务函件结构
函件标题
致:XX公司
事实陈述
违约行为认定
法律依据
我方主张
最后告知
落款与联系方式
附件
4.3.4 最终输出函件(节选)
# 催告函
致:星河科技(北京)有限公司
贵我双方于2025年6月1日签署《采购服务合同》(以下简称“案涉合同”),约定由贵方向我方提供软件系统实施服务,合同总金额人民币480,000元。我方已依约于合同签订后5个工作日内支付预付款336,000元,全面履行合同义务。
根据合同约定,贵方应于2025年8月1日前完成系统开发、上线并通过验收。截至本函发出之日,贵方已逾期交付超过45天,经我方多次催告仍未履行交付义务,已构成严重违约。
依据《中华人民共和国民法典》第五百七十七条、第五百八十二条之规定,贵方逾期履行合同义务,应承担继续履行、采取补救措施并赔偿损失的违约责任。
现我方正式催告如下:
1. 请贵方于收到本函之日起7日内,完成案涉系统开发、部署、上线并达到合同约定验收标准;
2. 按合同约定向我方支付逾期交付违约金;
3. 就逾期交付给我方造成的实际损失予以书面确认并提出补偿方案。
若贵方未在上述期限内履行,我方将依法采取包括但不限于解除合同、提起诉讼/仲裁、申请财产保全等一切法律措施,追究贵方全部违约责任及损失,届时产生的全部费用(诉讼费、律师费、保全费、差旅费等)均由贵方承担。
特此函告。
银河科技(北京)有限公司
2025年9月15日
附件:合同复印件、付款凭证、沟通记录
同时,OpenClaw 会自动生成备用律师函版本,语气更强、法条更完整、主张更严厉,可直接用于正式法律施压。
五、两大法务Skill联动:OpenClaw全流程合规闭环
在企业真实法务工作中,合同审查与函件生成并非孤立使用,而是形成合同签订→履行监控→违约识别→函件催告→纠纷处理的完整闭环。
5.1 全流程链路图
#mermaid-svg-y8TwtsCD6morILS6{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-y8TwtsCD6morILS6 .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-y8TwtsCD6morILS6 .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-y8TwtsCD6morILS6 .error-icon{fill:#552222;}#mermaid-svg-y8TwtsCD6morILS6 .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-y8TwtsCD6morILS6 .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-y8TwtsCD6morILS6 .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-y8TwtsCD6morILS6 .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-y8TwtsCD6morILS6 .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-y8TwtsCD6morILS6 .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-y8TwtsCD6morILS6 .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-y8TwtsCD6morILS6 .marker{fill:#333333;stroke:#333333;}#mermaid-svg-y8TwtsCD6morILS6 .marker.cross{stroke:#333333;}#mermaid-svg-y8TwtsCD6morILS6 svg{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-y8TwtsCD6morILS6 p{margin:0;}#mermaid-svg-y8TwtsCD6morILS6 .label{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;color:#333;}#mermaid-svg-y8TwtsCD6morILS6 .cluster-label text{fill:#333;}#mermaid-svg-y8TwtsCD6morILS6 .cluster-label span{color:#333;}#mermaid-svg-y8TwtsCD6morILS6 .cluster-label span p{background-color:transparent;}#mermaid-svg-y8TwtsCD6morILS6 .label text,#mermaid-svg-y8TwtsCD6morILS6 span{fill:#333;color:#333;}#mermaid-svg-y8TwtsCD6morILS6 .node rect,#mermaid-svg-y8TwtsCD6morILS6 .node circle,#mermaid-svg-y8TwtsCD6morILS6 .node ellipse,#mermaid-svg-y8TwtsCD6morILS6 .node polygon,#mermaid-svg-y8TwtsCD6morILS6 .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-y8TwtsCD6morILS6 .rough-node .label text,#mermaid-svg-y8TwtsCD6morILS6 .node .label text,#mermaid-svg-y8TwtsCD6morILS6 .image-shape .label,#mermaid-svg-y8TwtsCD6morILS6 .icon-shape .label{text-anchor:middle;}#mermaid-svg-y8TwtsCD6morILS6 .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg-y8TwtsCD6morILS6 .rough-node .label,#mermaid-svg-y8TwtsCD6morILS6 .node .label,#mermaid-svg-y8TwtsCD6morILS6 .image-shape .label,#mermaid-svg-y8TwtsCD6morILS6 .icon-shape .label{text-align:center;}#mermaid-svg-y8TwtsCD6morILS6 .node.clickable{cursor:pointer;}#mermaid-svg-y8TwtsCD6morILS6 .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-svg-y8TwtsCD6morILS6 .arrowheadPath{fill:#333333;}#mermaid-svg-y8TwtsCD6morILS6 .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-y8TwtsCD6morILS6 .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-y8TwtsCD6morILS6 .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-y8TwtsCD6morILS6 .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-y8TwtsCD6morILS6 .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-y8TwtsCD6morILS6 .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-svg-y8TwtsCD6morILS6 .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-y8TwtsCD6morILS6 .cluster text{fill:#333;}#mermaid-svg-y8TwtsCD6morILS6 .cluster span{color:#333;}#mermaid-svg-y8TwtsCD6morILS6 div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-y8TwtsCD6morILS6 .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-y8TwtsCD6morILS6 rect.text{fill:none;stroke-width:0;}#mermaid-svg-y8TwtsCD6morILS6 .icon-shape,#mermaid-svg-y8TwtsCD6morILS6 .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-y8TwtsCD6morILS6 .icon-shape p,#mermaid-svg-y8TwtsCD6morILS6 .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-svg-y8TwtsCD6morILS6 .icon-shape .label rect,#mermaid-svg-y8TwtsCD6morILS6 .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-y8TwtsCD6morILS6 .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg-y8TwtsCD6morILS6 .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg-y8TwtsCD6morILS6 :root{–mermaid-font-family:\”trebuchet ms\”,verdana,arial,sans-serif;}
否
是
业务发起合同
OpenClaw合同审查
风险修改→签署
合同履行跟踪
出现违约?
正常履约归档
OpenClaw提取违约事实
自动生成催告函/律师函
对方仍不履行
提起诉讼/仲裁
生成证据目录+法律意见书
5.2 效率提升对比
| 单份合同审查 | 1.5~3小时 | 30~120秒 | 95%+ |
| 批量100份合同审查 | 3~7天 | 10~30分钟 | 98%+ |
| 催告函/律师函起草 | 2~4小时 | 1~3分钟 | 95%+ |
| 证据整理与法律分析 | 1~3天 | 10~20分钟 | 90%+ |
| 全流程合规周期 | 数周 | 1天内完成 | 90%+ |
六、OpenClaw法务场景部署与私有化方案
6.1 环境安装
# 安装OpenClaw核心
curl -fsSL https://install.openclaw.ai | bash
# 安装法务技能
clawhub install lawyer
clawhub install Legal-Doc-Writer
# 依赖安装
pip install PyPDF2 python-docx camelot-py spacy
6.2 模型配置(本地/云端均可)
#mermaid-svg-MZJ842J3cw9gVN61{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-MZJ842J3cw9gVN61 .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-MZJ842J3cw9gVN61 .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-MZJ842J3cw9gVN61 .error-icon{fill:#552222;}#mermaid-svg-MZJ842J3cw9gVN61 .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-MZJ842J3cw9gVN61 .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-MZJ842J3cw9gVN61 .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-MZJ842J3cw9gVN61 .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-MZJ842J3cw9gVN61 .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-MZJ842J3cw9gVN61 .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-MZJ842J3cw9gVN61 .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-MZJ842J3cw9gVN61 .marker{fill:#333333;stroke:#333333;}#mermaid-svg-MZJ842J3cw9gVN61 .marker.cross{stroke:#333333;}#mermaid-svg-MZJ842J3cw9gVN61 svg{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-MZJ842J3cw9gVN61 p{margin:0;}#mermaid-svg-MZJ842J3cw9gVN61 .label{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;color:#333;}#mermaid-svg-MZJ842J3cw9gVN61 .cluster-label text{fill:#333;}#mermaid-svg-MZJ842J3cw9gVN61 .cluster-label span{color:#333;}#mermaid-svg-MZJ842J3cw9gVN61 .cluster-label span p{background-color:transparent;}#mermaid-svg-MZJ842J3cw9gVN61 .label text,#mermaid-svg-MZJ842J3cw9gVN61 span{fill:#333;color:#333;}#mermaid-svg-MZJ842J3cw9gVN61 .node rect,#mermaid-svg-MZJ842J3cw9gVN61 .node circle,#mermaid-svg-MZJ842J3cw9gVN61 .node ellipse,#mermaid-svg-MZJ842J3cw9gVN61 .node polygon,#mermaid-svg-MZJ842J3cw9gVN61 .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-MZJ842J3cw9gVN61 .rough-node .label text,#mermaid-svg-MZJ842J3cw9gVN61 .node .label text,#mermaid-svg-MZJ842J3cw9gVN61 .image-shape .label,#mermaid-svg-MZJ842J3cw9gVN61 .icon-shape .label{text-anchor:middle;}#mermaid-svg-MZJ842J3cw9gVN61 .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg-MZJ842J3cw9gVN61 .rough-node .label,#mermaid-svg-MZJ842J3cw9gVN61 .node .label,#mermaid-svg-MZJ842J3cw9gVN61 .image-shape .label,#mermaid-svg-MZJ842J3cw9gVN61 .icon-shape .label{text-align:center;}#mermaid-svg-MZJ842J3cw9gVN61 .node.clickable{cursor:pointer;}#mermaid-svg-MZJ842J3cw9gVN61 .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-svg-MZJ842J3cw9gVN61 .arrowheadPath{fill:#333333;}#mermaid-svg-MZJ842J3cw9gVN61 .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-MZJ842J3cw9gVN61 .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-MZJ842J3cw9gVN61 .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-MZJ842J3cw9gVN61 .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-MZJ842J3cw9gVN61 .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-MZJ842J3cw9gVN61 .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-svg-MZJ842J3cw9gVN61 .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-MZJ842J3cw9gVN61 .cluster text{fill:#333;}#mermaid-svg-MZJ842J3cw9gVN61 .cluster span{color:#333;}#mermaid-svg-MZJ842J3cw9gVN61 div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-MZJ842J3cw9gVN61 .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-MZJ842J3cw9gVN61 rect.text{fill:none;stroke-width:0;}#mermaid-svg-MZJ842J3cw9gVN61 .icon-shape,#mermaid-svg-MZJ842J3cw9gVN61 .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-MZJ842J3cw9gVN61 .icon-shape p,#mermaid-svg-MZJ842J3cw9gVN61 .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-svg-MZJ842J3cw9gVN61 .icon-shape .label rect,#mermaid-svg-MZJ842J3cw9gVN61 .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-MZJ842J3cw9gVN61 .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg-MZJ842J3cw9gVN61 .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg-MZJ842J3cw9gVN61 :root{–mermaid-font-family:\”trebuchet ms\”,verdana,arial,sans-serif;}
模型支持
Ollama 本地部署
Llama 3 / Qwen
法律专用微调模型
通义千问 / 豆包 / GPT
配置示例 config.toml:
[model]
provider = "ollama"
model = "llama3:70b-chat"
temperature = 0.05
top_p = 0.95
[legal]
auto_quote_law = true
risk_level = strict
archive_path = ./legal-archive
6.3 企业级私有化部署架构
适合银行、集团、律所、政府单位,合同数据绝不外漏。
#mermaid-svg-JecgBKSZhxBiSlaQ{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-JecgBKSZhxBiSlaQ .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-JecgBKSZhxBiSlaQ .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-JecgBKSZhxBiSlaQ .error-icon{fill:#552222;}#mermaid-svg-JecgBKSZhxBiSlaQ .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-JecgBKSZhxBiSlaQ .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-JecgBKSZhxBiSlaQ .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-JecgBKSZhxBiSlaQ .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-JecgBKSZhxBiSlaQ .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-JecgBKSZhxBiSlaQ .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-JecgBKSZhxBiSlaQ .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-JecgBKSZhxBiSlaQ .marker{fill:#333333;stroke:#333333;}#mermaid-svg-JecgBKSZhxBiSlaQ .marker.cross{stroke:#333333;}#mermaid-svg-JecgBKSZhxBiSlaQ svg{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-JecgBKSZhxBiSlaQ p{margin:0;}#mermaid-svg-JecgBKSZhxBiSlaQ .label{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;color:#333;}#mermaid-svg-JecgBKSZhxBiSlaQ .cluster-label text{fill:#333;}#mermaid-svg-JecgBKSZhxBiSlaQ .cluster-label span{color:#333;}#mermaid-svg-JecgBKSZhxBiSlaQ .cluster-label span p{background-color:transparent;}#mermaid-svg-JecgBKSZhxBiSlaQ .label text,#mermaid-svg-JecgBKSZhxBiSlaQ span{fill:#333;color:#333;}#mermaid-svg-JecgBKSZhxBiSlaQ .node rect,#mermaid-svg-JecgBKSZhxBiSlaQ .node circle,#mermaid-svg-JecgBKSZhxBiSlaQ .node ellipse,#mermaid-svg-JecgBKSZhxBiSlaQ .node polygon,#mermaid-svg-JecgBKSZhxBiSlaQ .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-JecgBKSZhxBiSlaQ .rough-node .label text,#mermaid-svg-JecgBKSZhxBiSlaQ .node .label text,#mermaid-svg-JecgBKSZhxBiSlaQ .image-shape .label,#mermaid-svg-JecgBKSZhxBiSlaQ .icon-shape .label{text-anchor:middle;}#mermaid-svg-JecgBKSZhxBiSlaQ .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg-JecgBKSZhxBiSlaQ .rough-node .label,#mermaid-svg-JecgBKSZhxBiSlaQ .node .label,#mermaid-svg-JecgBKSZhxBiSlaQ .image-shape .label,#mermaid-svg-JecgBKSZhxBiSlaQ .icon-shape .label{text-align:center;}#mermaid-svg-JecgBKSZhxBiSlaQ .node.clickable{cursor:pointer;}#mermaid-svg-JecgBKSZhxBiSlaQ .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-svg-JecgBKSZhxBiSlaQ .arrowheadPath{fill:#333333;}#mermaid-svg-JecgBKSZhxBiSlaQ .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-JecgBKSZhxBiSlaQ .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-JecgBKSZhxBiSlaQ .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-JecgBKSZhxBiSlaQ .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-JecgBKSZhxBiSlaQ .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-JecgBKSZhxBiSlaQ .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-svg-JecgBKSZhxBiSlaQ .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-JecgBKSZhxBiSlaQ .cluster text{fill:#333;}#mermaid-svg-JecgBKSZhxBiSlaQ .cluster span{color:#333;}#mermaid-svg-JecgBKSZhxBiSlaQ div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-JecgBKSZhxBiSlaQ .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-JecgBKSZhxBiSlaQ rect.text{fill:none;stroke-width:0;}#mermaid-svg-JecgBKSZhxBiSlaQ .icon-shape,#mermaid-svg-JecgBKSZhxBiSlaQ .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-JecgBKSZhxBiSlaQ .icon-shape p,#mermaid-svg-JecgBKSZhxBiSlaQ .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-svg-JecgBKSZhxBiSlaQ .icon-shape .label rect,#mermaid-svg-JecgBKSZhxBiSlaQ .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-JecgBKSZhxBiSlaQ .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg-JecgBKSZhxBiSlaQ .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg-JecgBKSZhxBiSlaQ :root{–mermaid-font-family:\”trebuchet ms\”,verdana,arial,sans-serif;}
法务/合规人员
OpenClaw 网关
法务智能体
合同审查Skill
函件生成Skill
合同知识库/风险库
内网私有化大模型
文件存储/审计日志
私有化优势:
- 合同、商业信息全程内网隔离
- 全操作日志留痕,满足合规审计
- 支持LDAP/SSO统一登录
- 自定义企业审查规则
- 高可用、多租户、权限分级
七、实战踩坑与避坑指南
7.1 合同审查常见问题
风险误报/漏报
解决:提高模型版本(建议7B以上),补充企业专属风险规则,关闭过度泛化的规则。
格式复杂合同识别不全
解决:先转为标准PDF/TXT,避免图片式PDF,必要时先OCR。
专业条款理解偏差
解决:在指令中明确行业类型(金融/建筑/互联网/制造),提升专业准确度。
7.2 法务函件常见问题
语气过于强硬/软弱
解决:在指令中指定 tone: normal / serious / negotiation。
法律依据引用不准确
解决:开启 auto_quote_law,并提供合同名称、相关法条。
事实逻辑混乱
解决:输入时按“时间+行为+结果”结构化,AI提取更精准。
7.3 通用最佳实践
八、总结与未来展望
OpenClaw 通过合同审查智能体 + 法务函件自动生成两大核心能力,真正把AI从“玩具”变成了企业法务的生产力引擎。
它解决了行业长期痛点:
- 合同量大审不过来
- 风险靠经验、漏审率高
- 函件起草重复、低效、不规范
- 中小企业请不起专职法务
- 纠纷响应慢、错失维权时机
未来 OpenClaw 法务模块将进一步升级:
- 自动证据链整理与诉讼材料包生成
- 类案检索与裁判观点智能分析
- 仲裁/起诉状一键生成
- 合同全生命周期AI监控
- 企业合规体检与风险雷达
对于企业法务、合规团队、律师事务所、创业公司,OpenClaw 都是2026年性价比极高、落地极快、安全可控的AI法律工具,可以真正实现“低成本、高效率、强合规”。




