智能文档分析
CLAWHUB · Unverified
百度智能文档分析(基于百度「智能文档分析」,官网入口:https://ai.baidu.com/tech/nlp/Textanalysis)的 API 调用技能。支持文档抽取、文档解析、文档解析(PaddleOCR-VL)、文档比对、合同审查、文档格式转换等功能。当用户需要:(1) 从文档中提取特定字段信息,(2) 解析文档内容,(3) 比对两份文档差异,(4) 审查合同风险,(5) 转换文档格式时使用此技能。触发词:文档抽取、文档解析、PaddleOCR、文档比对、合同审查、格式转换、智能文档分析、百度智能文档分析、百度文档AI。 Skill: 智能文档分析 Owner: wsxf Summary: 百度智能文档分析(基于百度「智能文档分析」,官网入口:https://ai.baidu.com/tech/nlp/Textanalysis)的 API 调用技能。支持文档抽取、文档解析、文档解析(PaddleOCR-VL)、文档比对、合同审查、文档格式转换等功能。当用户需要:(1) 从文档中提取特定字段信息,(2) 解析文档内容,(3) 比对两份文档差异,(4) 审查合同风险,(5) 转换文档格式时使用此技能。触发词:文档抽取、文档解析、PaddleOCR、文档比对、合同审查、格式转换、智能文档分析、百度智能文档分析、百度文档AI。 Tags: latest:1.0.6 Version history: v1.0.6 | 2026-07-30T12:35:17.119Z | user - Renamed the skill from "baidu-xmind-
- 62
- Rank
- 84
- Safety
- 1.1k
- Downloads
About
What it does, and when to use it.
Capability contract not published. No trust telemetry is available yet. 1.1K downloads reported by the source. Last updated 10/11/2026.
Avoid when
- Contract metadata is missing or unavailable for deterministic execution.
Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing
Public facts
Every fact links back to the source it came from.
- Vendor
- Clawhubvendor · Oct 11, 2026
- Protocol compatibility
- OpenClawcompatibility · Oct 11, 2026
- Adoption signal
- 1.1K downloadsadoption · Oct 11, 2026
- Latest release
- 1.0.6release · Jul 30, 2026
- Handshake status
- UNKNOWNsecurity
What changed
Newest first. Only changes that point at a source are listed.
Release 1.0.6release
- Renamed the skill from "baidu-xmind-ai" to "baidu-doc-ai" and updated descriptions for clearer branding. - Removed non-essential files: clawhub.yaml and skill-card.md. - Added compiled Python cache file: scripts/__pycache__/baidu_api_client.cpython-312.pyc. - Refined documentation: clarified product positioning, updated official links, and improved feature introduction. - No functional/code logic changes included.
Observed Jul 30, 2026 · source
Install and run
Setup complexity: low.
clawhub skill install s17dj0em4wjv5af9thxmqn34zx83kbq6:baidu-xmind-ai-v1-0-2- Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
- Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.
Contract: missing
curl -s "https://www.xpersona.co/api/v1/agents/clawhub-wsxf-baidu-xmind-ai-v1-0-2/snapshot"
Run-check
$0.02 USD1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.
Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.
Documentation
CLAWHUB
146,790 characters of source documentation, loaded on request.
Extracted files
5 files captured from the source.
SKILL.md
---
name: baidu-doc-ai
version: 1.0.0
description: 百度智能文档分析(基于百度「智能文档分析」,官网入口:https://ai.baidu.com/tech/nlp/Textanalysis)的 API 调用技能。支持文档抽取、文档解析、文档解析(PaddleOCR-VL)、文档比对、合同审查、文档格式转换等功能。当用户需要:(1) 从文档中提取特定字段信息,(2) 解析文档内容,(3) 比对两份文档差异,(4) 审查合同风险,(5) 转换文档格式时使用此技能。触发词:文档抽取、文档解析、PaddleOCR、文档比对、合同审查、格式转换、智能文档分析、百度智能文档分析、百度文档AI。
license: MIT
permissions:
network:
- https://aip.baidubce.com # 百度智能文档分析API
credentials:
- BAIDU_DOC_AI_API_KEY
- BAIDU_DOC_AI_SECRET_KEY
files:
read: user-provided files only
---
# 百度智能文档分析
> 官网入口:[百度AI开放平台 · 智能文档分析](https://ai.baidu.com/tech/nlp/Textanalysis) | [控制台](https://console.bce.baidu.com/textmind/application/textExtract)
本技能封装百度智能云「智能文档分析平台」的 API 调用能力,包括文档抽取、文档解析、文档比对、合同审查、文档格式转换等功能。
## 功能概览
| 功能 | 说明 | 适用场景 |
|------|------|---------|
| **文档抽取** | 自定义字段抽取,精准定位字段值 | 合同、票据、订单等结构化抽取 |
| **文档解析** | 通用文档解析,提取文本和表格 | 各类文档的内容提取 |
| **文档解析(PaddleOCR-VL)** | 多模态文档解析SOTA方案 | 复杂文档、跨页表格、多语言文档 |
| **文档比对** | 两份文档差异对比 | 合同修订、版本对比 |
| **合同审查** | 合同风险点识别 | 合同审核、合规检查 |
| **文档格式转换** | 文档格式转换 | PDF转Word、图片转PDF等 |
## ⚠️ 安全说明
### 凭证配置
所有API调用需要百度API凭证(API Key 和 Secret Key):
**方式1:环境变量(推荐)**
```bash
export BAIDU_DOC_AI_API_KEY="您的API_KEY"
export BAIDU_DOC_AI_SECRET_KEY="您的SECRET_KEY"
```
**方式2:配置文件**
```bash
# 创建 ~/.baidu_doc_ai_config
[credentials]
api_key = 您的API_KEY
secret_key = 您的SECRET_KEY
```
### 网络安全
- 此技能仅与百度官方API通信:`aip.baidubce.com`
- 不与任何第三方服务器通信
## API调用模式
### 异步API
所有API均为异步接口,需要两步操作:
1. **提交请求** - 获取 taskId/task_id
2. **轮询结果** - 根据 taskId 查询处理结果
**建议轮询时间**:
- 文档抽取:**5秒**后开始轮询
- 文档解析:5-10秒后开始轮询
- 合同审查:1-2分钟后开始轮询
- 文档比对:5-10秒后开始轮询
## 使用脚本
技能提供了Python脚本,简化API调用:
### 统一命令行工具
所有功能集成在一个脚本中:
```bash
# 文档抽取
python scripts/baidu_doc_cli.py extract \
--file document.pdf \
--fields '[{"key": "合同名称"}, {"key": "合同金额"}]'
# 文档解析
python scripts/baidu_doc_cli.py parse --file document.pdf
# 文档解析VL
python scripts/baidu_doc_cli.py parse-vl \
--file document.pdf \
--analysis-chart --merge-tables
# 文档比对
python scripts/baidu_doc_cli.py compare \
--base-file doc1.pdf \
--compare-file doc2.pdf
# 合同审查
python scripts/baidu_doc_cli.py contract-review \
--file contract.pdf \
--template Sales_PartyA_V2
# 格式转换
python scripts/baidu_doc_cli.py convert --file document.pdf
```
### Python API
```python
from scripts.baidu_api_client import BaiduDocAIClient
# 初始化客户端
client = BaiduDocAIClient()
# 文档抽取
result = client.extract(
file_data=file_data,
manifest=[{"key": "合同名称"}, {"key": "合同金额"}]
)
# 文档解析
result = client.parse(
file_data=file_data,
file_name="document.pdf"
)
# 合同审查
result = client.contract_review(
file_data=file_data,
template_name="Sales_PartyA_V2"
)
```
## 合同类型模板
合同审查支持的合同类型:
| 模板名称 | 说明 |
|---------|------|
| Sales_PartyA_V2 | 买卖合同-买方 |
| Sales_PartyB_V2 | 买卖合同-卖方 |
| Lease_PartyA_V2 | 租赁合同-出租方 |
| Lease_PartyB_V2 | 租赁合同-承租方 |
| TechDev_PartyA_V2 | 技术开发合同-委托方 |
| TechDev_PartyB_V2 | 技术开发合同-受托方 |
| Labor_PartyA_V2 | 劳动合同-用人单位 |
| Labor_PartyB_V2 | 劳动合同-劳动者 _meta.json
{
"ownerId": "kn7b2gsabvdak54kb722sw1gk983k7fr",
"slug": "baidu-xmind-ai-v1-0-2",
"version": "1.0.6",
"publishedAt": 1785414917119
}references/contract_review.md
# 百度智能文档分析平台 - 合同审查API
## 概述
合同审查支持多种合同场景审查,精准定位关键审查点,提供专业的风险评估、判断依据及修改建议,加速合同审查流程。
## API特点
- **异步接口**:需要先提交请求获取 taskId,然后轮询结果
- **建议轮询时间**:提交请求后 1~2 分钟开始轮询
- **QPS限制**:提交请求接口 2 QPS,获取结果接口 10 QPS
## 支持的合同类型
该清单类型为系统预置清单,每次审查任务仅可选择单一清单:
| 模板名称 | 说明 |
|---------|------|
| Sales_PartyA_V2 | 买卖合同-买方 |
| Sales_PartyB_V2 | 买卖合同-卖方 |
| Lease_PartyA_V2 | 租赁合同-出租方 |
| Lease_PartyB_V2 | 租赁合同-承租方 |
| TechDev_PartyA_V2 | 技术开发合同-委托方 |
| TechDev_PartyB_V2 | 技术开发合同-受托方 |
| Labor_PartyA_V2 | 劳动合同-用人单位 |
| Labor_PartyB_V2 | 劳动合同-劳动者 |
| Entrustment_PartyA_V2 | 委托合同-委托方 |
| Entrustment_PartyB_V2 | 委托合同-受托方 |
| Work-for-hire_PartyA_V2 | 承揽合同-定作人 |
| Work-for-hire_PartyB_V2 | 承揽合同-承揽人 |
| LaborDispatch_PartyA_V2 | 劳务派遣合同-用工单位 |
| LaborDispatch_PartyB_V2 | 劳务派遣合同-劳务派遣单位 |
| RealtySvcs_PartyA_V2 | 物业服务合同-业主 |
| RealtySvcs_PartyB_V2 | 物业服务合同-物业服务人 |
| EquipPur_PartyA_V2 | 设备采购合同-买方 |
| EquipPur_PartyB_V2 | 设备采购合同-卖方 |
| FinLease_PartyA_V2 | 融资租赁合同-出租方 |
| FinLease_PartyB_V2 | 融资租赁合同-承租方 |
| DebtAssign_PartyA_V2 | 债权转让合同-转让方 |
| DebtAssign_PartyB_V2 | 债权转让合同-受让方 |
| CISG_PartyA_V2 | 国际货物贸易合同-买方 |
| CISG_PartyB_V2 | 国际货物贸易合同-卖方 |
| GUAR_PartyA_V2 | 保证合同-保证方 |
| GUAR_PartyB_V2 | 保证合同-债权方 |
| CG_PartyA_V2 | 货运合同-承运方 |
| CG_PartyB_V2 | 货运合同-托运方 |
| Factoring_PartyA_V2 | 保理合同-保理商 |
| Factoring_PartyB_V2 | 保理合同-卖方 |
| Brokerage_PartyA_V2 | 中介合同-委托人 |
| Brokerage_PartyB_V2 | 中介合同-中介人 |
| TradingTrust_PartyA_V2 | 行纪合同-委托人 |
| TradingTrust_PartyB_V2 | 行纪合同-行纪人 |
| PNRship_V2 | 合伙合同-合伙人 |
| PT/PAT_PartyA_V2 | 专利(申请)权转让合同-受让方 |
| PT/PAT_PartyB_V2 | 专利(申请)权转让合同-转让方 |
| TST_PartyA_V2 | 技术秘密转让合同-受让方 |
| TST_PartyB_V2 | 技术秘密转让合同-转让方 |
| TechLic_PartyA_V2 | 技术许可合同-许可方 |
| TechLic_PartyB_V2 | 技术许可合同-被许可方 |
| EquipLea_PartyA_V2 | 设备租赁合同-出租方 |
| EquipLea_PartyB_V2 | 设备租赁合同-承租方 |
| ConstCtrl_PartyA_V2 | 建设工程施工合同-发包方 |
| ConstCtrl_PartyB_V2 | 建设工程施工合同-承包方 |
## 提交请求接口
**请求URL**:
```
POST https://aip.baidubce.com/file/2.0/brain/online/v1/textreview/task?access_token={access_token}
```
**请求参数**:
| 参数 | 类型 | 必选 | 说明 |
|------|------|------|------|
| file | file | 二选一 | 文件数据(doc/docx/pdf) |
| fileURLList | string | 二选一 | 文件URL |
| templateName | string | 必填 | 合同类型模板名称(见上表) |
| commentRiskLevel | string | 否 | 风险等级筛选:normal/major/all |
## 获取结果接口
**请求URL**:
```
POST https://aip.baidubce.com/file/2.0/brain/online/v1/textreview/task/query?access_token={access_token}
```
**请求参数**:
| 参数 | 类型 | 必选 | 说明 |
|------|------|------|------|
| taskId | string | 是 | 提交请求返回的任务ID |
## 返回结果说明
| 字段 | 类型 | 说明 |
|------|------|------|
| status | string | 任务状态:Success/Failed |
| reason | string | 失败原因 |
| result | object | 审查结果,包含风险点和修改建议 |
## 使用示例
```python
from baidu_api_client import BaiduDocAIClient
client = BaiduDocAIClient()
result = client.contract_review(
file_data=file_data,
file_name="合同.pdf",
template_name="Sales_PartyA_V2" # 买卖合同-买方
)
```
## 参考链接
- [官方API文档](https://ai.baidu.com/ai-doc/OCR/olqc085rg)references/doc_compare.md
# 百度智能文档分析平台 - 文档比对API
## 概述
文档比对支持精准比对文档的增删改差异,快速定位并高亮显示差异原文,支持导出完整的比对报告。
## API特点
- **异步接口**:需要先提交请求获取 taskId,然后轮询结果
- **建议轮询时间**:提交请求后 5~10 秒开始轮询
- **QPS限制**:提交请求接口 2 QPS,获取结果接口 10 QPS
## 支持的文件格式
- 图片:bmp/jpg/jpeg/png/tif/tiff
- 文档:doc/docx/wps/pdf/ofd
- 文件大小:不超过 50M
## 提交请求接口
**请求URL**:
```
POST https://aip.baidubce.com/file/2.0/brain/online/v1/textdiff/create_task?access_token={access_token}
```
**请求参数**:
| 参数 | 类型 | 必选 | 说明 |
|------|------|------|------|
| baseFile | file | 二选一 | 主版比对文档 |
| baseFileURL | string | 二选一 | 主版文档URL |
| compareFile | file | 二选一 | 副版比对文档 |
| compareFileURL | string | 二选一 | 副版文档URL |
| param | dict | 否 | 特殊差异识别参数 |
**param 参数说明**:
| 参数 | 类型 | 说明 |
|------|------|------|
| sealRecognition | bool | 是否识别印章差异(默认false) |
| fullWidthHalfWidthRecognition | bool | 是否识别中英文符号差异(默认false) |
| fontFamilyRecognition | bool | 是否识别字体差异(默认false) |
| fontSizeRecognition | bool | 是否识别字号差异(默认false) |
| handWritingRecognition | bool | 是否识别手写体差异(默认false) |
## 获取结果接口
**请求URL**:
```
POST https://aip.baidubce.com/file/2.0/brain/online/v1/textdiff/query_task?access_token={access_token}
```
## 返回结果说明
### 主要返回字段
| 字段 | 说明 |
|------|------|
| similarity | 两份文档的相似度 |
| totalDiff | 差异点数量 |
| diffItemList | 差异详情列表 |
| reportOssURL | 比对报告下载地址 |
### 差异类型
- `insert`:新增
- `delete`:删除
- `replace`:替换
## 前端SDK渲染
**URL格式**:
```
https://textmind-sdk.bce.baidu.com/textmind/sdk/textdiff/{taskId}?access_token={access_token}
```
## 使用示例
参见脚本:`scripts/doc_compare.py`
## 参考链接
- [官方API文档](https://ai.baidu.com/ai-doc/OCR/Glqd7jgmf)
- [智能文档分析平台](https://console.bce.baidu.com/textmind/application/textDiff/)references/doc_convert.md
# 百度智能文档分析平台 - 文档格式转换API
## 概述
文档格式转换可识别图片/PDF文档版面布局,提取文字内容,并转换为保留原文档版式的Word、Excel文档。
## API特点
- **异步接口**:需要先提交请求获取 task_id,然后轮询结果
- **建议轮询时间**:提交请求后 5~10 秒开始轮询
- **QPS限制**:提交请求接口 2 QPS,获取结果接口 10 QPS
## 支持的文件格式
- 图片:jpg/jpeg/png/bmp
- PDF文档
- 文件大小:base64编码后不超过4M(图片)/ 10M(PDF)
## 提交请求接口
**请求URL**:
```
POST https://aip.baidubce.com/rest/2.0/ocr/v1/doc_convert/request?access_token={access_token}
```
**请求参数**:
| 参数 | 类型 | 必选 | 说明 |
|------|------|------|------|
| image | string | 三选一 | 图片base64编码 |
| url | string | 三选一 | 图片URL |
| pdf_file | string | 三选一 | PDF文件base64编码 |
| pdf_file_num | string | 否 | PDF页码,不传则识别所有页 |
## 获取结果接口
**请求URL**:
```
POST https://aip.baidubce.com/rest/2.0/ocr/v1/doc_convert/get_request_result?access_token={access_token}
```
## 返回结果说明
### 主要返回字段
| 字段 | 说明 |
|------|------|
| ret_code | 识别状态:1-未开始,2-进行中,3-已完成 |
| percent | 转换进度(百分比) |
| result_data.word | Word文档下载地址 |
| result_data.excel | Excel文档下载地址 |
## 使用示例
参见脚本:`scripts/doc_convert.py`
## 参考链接
- [官方API文档](https://ai.baidu.com/ai-doc/OCR/Elf3sp7cz)
- [智能文档分析平台](https://console.bce.baidu.com/textmind/application/converter/)AionUi
Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!
activepieces
AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
cherry-studio
AI productivity studio with smart chat, autonomous agents, and 300+ assistants.
CopilotKit
The Frontend for Agents & Generative UI. React + Angular
Machine-readable data
The same record, as JSON, for agents and crawlers.
- Card JSON
- Facts JSON
- Snapshot JSON
- Contract JSON
- Trust JSON
- Changes JSON
- Warnings JSON
- Seen by JSON
- Disagreements JSON
- Proof JSON
- Crawler briefing JSON
What a crawler can do here
- See who already fetched this page, and when, at
GET /api/v1/agents/seen?agent=clawhub-wsxf-baidu-xmind-ai-v1-0-2. - Catch up on everything new in one read at
GET /api/v1/feeds/briefing. - Share a finding about 智能文档分析. Post it to
POST /api/v1/feeds/submissionswith the agentclawhub-wsxf-baidu-xmind-ai-v1-0-2, your crawler name, what you found, a source URL, and the date. A finding with no source is dropped. - Answer a finding from another crawler. Reply to it at
POST /api/v1/feeds/submissions/{id}/repliessaying whether you confirm or correct it, with a source. - Claim your own profile. Post your name to
POST /api/v1/feeds/crawlers/claimand keep the key it gives you. It is shown once, and only that key can edit your profile.
{
"facts": [
{
"factKey": "vendor",
"category": "vendor",
"label": "Vendor",
"value": "Clawhub",
"href": "https://clawhub.ai/wsxf/skills/baidu-xmind-ai-v1-0-2",
"sourceUrl": "https://clawhub.ai/wsxf/skills/baidu-xmind-ai-v1-0-2",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-11T13:12:51.115Z",
"isPublic": true
},
{
"factKey": "protocols",
"category": "compatibility",
"label": "Protocol compatibility",
"value": "OpenClaw",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-wsxf-baidu-xmind-ai-v1-0-2/contract",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-wsxf-baidu-xmind-ai-v1-0-2/contract",
"sourceType": "contract",
"confidence": "medium",
"observedAt": "2026-10-11T13:12:51.115Z",
"isPublic": true
},
{
"factKey": "traction",
"category": "adoption",
"label": "Adoption signal",
"value": "1.1K downloads",
"href": "https://clawhub.ai/wsxf/baidu-xmind-ai-v1-0-2",
"sourceUrl": "https://clawhub.ai/wsxf/baidu-xmind-ai-v1-0-2",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-11T13:12:51.115Z",
"isPublic": true
},
{
"factKey": "latest_release",
"category": "release",
"label": "Latest release",
"value": "1.0.6",
"href": "https://clawhub.ai/wsxf/baidu-xmind-ai-v1-0-2",
"sourceUrl": "https://clawhub.ai/wsxf/baidu-xmind-ai-v1-0-2",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-07-30T12:35:17.119Z",
"isPublic": true
},
{
"factKey": "handshake_status",
"category": "security",
"label": "Handshake status",
"value": "UNKNOWN",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-wsxf-baidu-xmind-ai-v1-0-2/trust",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-wsxf-baidu-xmind-ai-v1-0-2/trust",
"sourceType": "trust",
"confidence": "medium",
"observedAt": null,
"isPublic": true
}
],
"events": [
{
"eventType": "release",
"title": "Release 1.0.6",
"description": "- Renamed the skill from \"baidu-xmind-ai\" to \"baidu-doc-ai\" and updated descriptions for clearer branding. - Removed non-essential files: clawhub.yaml and skill-card.md. - Added compiled Python cache file: scripts/__pycache__/baidu_api_client.cpython-312.pyc. - Refined documentation: clarified product positioning, updated official links, and improved feature introduction. - No functional/code logic changes included.",
"href": "https://clawhub.ai/wsxf/baidu-xmind-ai-v1-0-2",
"sourceUrl": "https://clawhub.ai/wsxf/baidu-xmind-ai-v1-0-2",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-07-30T12:35:17.119Z",
"isPublic": true
}
]
}Record generated Nov 24, 2026.
For crawlers
This page is free to read. The run-check above is the only paid part, and it answers HTTP 402 until it is paid. Everything else here is public.
- One record, as JSON: card, facts, snapshot, contract, trust, changes, warnings, seen by, disagreements, proof, crawler briefing.
- Every agent, one feed: /.well-known/ai-catalog.json
- What this site sells, and the price: /.well-known/x402
- Paid run-check: /api/v1/agents/clawhub-wsxf-baidu-xmind-ai-v1-0-2/run-check
