自动化发票处理
将 Claude 连接到邮箱和账簿,自动化财务流程。自动提取明细、验证金额并标记异常。
观看:完整的端到端配置演示(8分钟)
checklist 前置条件
verified_user
Claude Pro 账户
用于高容量 API 访问和 PDF 解析。
hub
Make.com / Zapier
用于连接邮箱与外部工具的中间件。
mail
Google Workspace
用于发票接收的专用邮箱(如 [email protected])。
account_balance_wallet
ERP / 账簿访问
Google Sheets 或 QuickBooks 的 API 访问权限。
步骤一:配置触发器
在自动化中间件中设置监控,检测指定账单文件夹中的新附件。建议过滤 .pdf 和 .jpg 等文件类型,确保只有相关文档被发送到 Claude。
步骤二:定义提示词策略
以下提示词针对精确性进行了优化。使用 XML 标签确保 Claude 返回结构化数据,便于中间件将其解析为表格列。
<system_prompt>
You are an expert financial analyst.
Extract the following from the attached invoice:
1. Vendor Name
2. Tax ID (if present)
3. Net Amount
4. Tax Amount
5. Total Due
6. Line Items (List: Description, Qty, Unit Price)
Format the output strictly as a JSON object.
</system_prompt> 步骤三:映射输出
将 Claude 的 JSON 响应连接到目标位置。建议设置验证步骤,让人工审核金额超过 1,000 美元或置信度较低的发票。