发票管理:自动化 OCR 与费用管理 - Openclaw Skills
作者:互联网
2026-04-06
什么是 发票管理?
发票技能是专为在 Openclaw Skills 生态系统中管理进项财务单据而设计的强大自动化工具。传统发票工具侧重于开票,而本技能专为收据管理而构建,利用 OCR 技术解析来自邮件、照片和 PDF 的数据。它将杂乱的收件箱转变为结构化、可搜索的数据库,确保每项支出都被记录,并正确归档以用于税务或审计目的。
通过利用此技能,开发人员和企业主可以实现发票从捕获到长期存储的全生命周期自动化。它负责供应商规范化和数学验证等繁重工作,使用户能够通过 Openclaw Skills 以极少的人工干预维护专业级的财务记录。
下载入口:https://github.com/openclaw/skills/tree/main/skills/ivangdavila/invoices
安装与下载
1. ClawHub CLI
从源直接安装技能的最快方式。
npx clawhub@latest install invoices
2. 手动安装
将技能文件夹复制到以下位置之一
全局模式~/.openclaw/skills/
工作区
/skills/
优先级:工作区 > 本地 > 内置
3. 提示词安装
将此提示词复制到 OpenClaw 即可自动安装。
请帮我使用 Clawhub 安装 invoices。如果尚未安装 Clawhub,请先安装(npm i -g clawhub)。
发票管理 应用场景
- 自动将作为邮件附件收到的 PDF 发票整理到按日期排序的档案中。
- 通过照片拍摄和 OCR 提取,将纸质收据和实物发票数字化。
- 维护一个可搜索的业务支出数据库,用于税务筹备和财务报告。
- 监控定期订阅,并标记缺失或异常高额的月度账单。
- 捕获:该技能监控收件箱目录中的新文件,包括 PDF 附件、照片或扫描文档。
- 提取:执行 OCR 并解析特定数据点,如供应商、发票日期、货币、税额和总计。
- 验证:系统运行检查以确保税务计算准确,并搜索来自同一供应商的重复发票号码。
- 整理:文件根据标准命名规范重命名,并移入按时间顺序排列的档案库 (YYYY/MM)。
- 确认:该技能向用户展示提取的数据以供最终核实,获批后更新全局条目索引。
发票管理 配置指南
要在 Openclaw Skills 中初始化此技能的环境,请在本地机器上设置所需的目录结构:
mkdir -p ~/invoices/{inbox,archive,providers}
touch ~/invoices/entries.json ~/invoices/state.json
确保您的智能体具有访问这些目录的权限,并在技能设置中配置您的 OCR 提供商以启用自动文本提取。
发票管理 数据架构与分类体系
该技能维持严格的数据层级,以确保长期可靠性和可搜索性:
| 路径 | 用途 |
|---|---|
~/invoices/inbox/ |
所有新的、未处理发票文件的暂存区。 |
~/invoices/archive/ |
按年和月组织的永久存储(例如 2026/02/)。 |
entries.json |
包含每张发票所有提取字段的核心元数据存储。 |
providers/index.json |
已知供应商及其规范化别名的注册表。 |
state.json |
跟踪当前队列的处理状态。 |
name: Invoices
description: Capture, extract, and organize received invoices with automatic OCR, provider detection, and searchable archive.
Trigger
Use when user receives invoices (email, photo, PDF) and wants them organized automatically.
Key difference: This skill MANAGES received invoices. The invoice skill CREATES invoices to send.
Storage
~/invoices/
├── inbox/ # Unprocessed files awaiting extraction
├── archive/ # Organized by year/month
│ └── 2026/
│ └── 02/
│ └── 2026-02-13_Hetzner_INV-12345_89.50.pdf
├── providers/ # Provider metadata
│ └── index.json
├── entries.json # All invoice metadata (searchable)
└── state.json # Processing state
Quick Reference
| Topic | File |
|---|---|
| Capture and extraction workflow | process.md |
| Fields to extract | extraction.md |
| Search queries and reports | search.md |
| Legal requirements by country | legal.md |
Process Summary
- Capture — Receive invoice (email attachment, photo, direct PDF). Copy to
inbox/. - Extract — OCR if needed, parse fields (provider, date, amounts, tax).
- Validate — Check required fields, detect duplicates.
- Organize — Rename, move to
archive/YYYY/MM/, updateentries.json. - Confirm — Show extracted data, allow corrections.
See process.md for detailed workflow.
Critical Rules
- Never delete originals — Keep PDFs permanently. Legal requirement (4-6 years depending on country).
- Detect duplicates — Same invoice number + provider = duplicate. Alert, don't overwrite.
- Validate tax math — Base + tax should equal total. Flag discrepancies.
- Provider normalization — "HETZNER ONLINE GMBH" = "Hetzner". Maintain provider aliases.
Alerts
- Invoice pending >48h in inbox
- Payment due in <7 days
- Unusual amount (>50% higher than same provider average)
- Missing expected recurring invoice
相关推荐
专题
+ 收藏
+ 收藏
+ 收藏
+ 收藏
+ 收藏
+ 收藏
最新数据
相关文章
代理状态:监控支付意图和交易 - Openclaw Skills
Proxy MCP:AI 智能体支付与虚拟卡 - Openclaw Skills
Apify Ultimate Scraper: AI 网页数据抓取 - Openclaw Skills
加密诈骗检测器:实时欺诈预防 - Openclaw Skills
newsmcp: 实时 AI 新闻聚合与过滤 - Openclaw Skills
Moltbook 优化器:策略与排名精通 - Openclaw 技能
Frigate NVR:智能摄像机管理与自动化 - Openclaw Skills
Markdown 检查器:样式、链接和格式工具 - Openclaw Skills
Venice.ai 至尊路由:私密且无审查的模型路由 - Openclaw Skills
图片优化器:使用 Openclaw Skills 压缩和调整图片尺寸
AI精选
