AI收据解析器 Zapier
AI收据解析器 是一个 Zapier 采取行动 PDF4me 使用机器学习 OCR 交回收据 PDFs 并将图像转换为结构化图像 JSON包括商户名称、交易日期、明细项目和总计。当收到新的 Gmail 附件、云端硬盘上传文件或表单提交时,系统会自动触发此功能,无需手动输入数据即可记录费用。
此操作的作用
此操作的作用: 这 PDF4me AI收据解析器 操作采用机器学习 OCR 转换收据 PDFs 并将图像转换为结构化图像 JSON Zap 中包含的数据。通过 Gmail、Google Drive、OneDrive、Dropbox 发送收据,或上传表单,即可收到回复。 商户名称、交易日期、收据编号、明细项目、小计、税额、总计和付款方式 此外,还包括酒店、燃油、医疗保健、培训和订阅收据等特定类型的字段。下游步骤可以将解析后的数据写入 Google Sheets、QuickBooks、Xero、Airtable 或任何其他平台。 Zapier-一款可实现免手动费用管理的联网应用程序。
验证您的身份 API 要求
每一个 PDF4me 行动 Zapier 需要有效 API 密钥。添加时只需验证一次。 PDF4me 作为关联帐户 - Zapier 安全地存储密钥并在您的所有设备上重复使用。 PDF4me 自动启动。
您不容错过的重要事实
笔记: 不 Zapier目前尚无此操作的具体屏幕截图。以下字段名称匹配。 Zapier's 自身的操作面板命名;底层数据架构与等效项共享并经过确认。 Power Automate AI收据解析器操作。
参数
⚠️ 标有“必填”的参数必须提供 要执行此操作,可选参数会展开返回的数据组——启用下游步骤实际需要的数据组即可。
| 范围 | 必需的 | 它的作用 | 例子 |
|---|---|---|---|
| Receipt File | Required | The source receipt file. Map the file output from a Zapier trigger or previous action - Gmail attachment, Google Drive / OneDrive / Dropbox file, or form upload. Accepts PDF, PNG, JPG, and JPEG. | receipt_2024_03_15.pdf (from Gmail trigger) |
| Receipt Name | Required | File name including the extension. Used by the AI to identify the receipt format and optimise extraction. Can be mapped dynamically from trigger metadata. Must end in .pdf, .png, .jpg, or .jpeg. | office_supplies_receipt.pdf |
| Receipt Type | Optional | Optional category hint for the AI. Supported values: meal · supplies · hotel · fuel and energy · transportation · communication · subscriptions · entertainment · training · healthcare · generic. Leaving this blank triggers automatic type detection. | hotel |
| Analyze Items | Optional | Enable line-item extraction. When true, the analyzeItems array is populated with item name, quantity, unit price, total price, category, description, SKU, brand, size, and colour for each line on the receipt. | true |
| Extract Merchant Info | Optional | Enable merchant information extraction. When true, the output includes merchantName, merchantAddress, merchantPhone, merchantWebsite, storeNumber, and cashierName from the receipt header. | true |
| Calculate Totals | Optional | Enable financial totals extraction. When true, the output includes subtotal, taxAmount, totalAmount, paymentMethod, and cardLastFour. Disable to skip financial parsing when you only need metadata. | true |
| Custom Field Keys | Optional | Optional list of extra field names to extract beyond the standard set. Pass as a JSON array. Useful for domain-specific fields printed on internal or industry receipts not covered by standard extraction. | ["costCenter","projectCode"] |
输出结果包含哪些字段?
此操作会返回结构化的收据数据。请在后续的 Zap 步骤中映射这些字段。
| 场地 | 类型 | 它包含什么 |
|---|---|---|
receiptType | String | Detected or specified receipt category (e.g. supplies, hotel, fuel, healthcare, generic) |
transactionDateStr | String | Transaction date in ISO 8601 format (YYYY-MM-DD) |
transactionTime | String | Transaction time (HH:MM:SS) when printed on the receipt |
receiptNumber | String | Receipt or transaction identifier extracted from the document |
merchantName | String | Name of the merchant - populated when Extract Merchant Info is enabled |
merchantAddress | String | Full merchant address - populated when Extract Merchant Info is enabled |
merchantPhone / merchantWebsite | String | Contact details extracted from the receipt header |
storeNumber / cashierName | String | Store location code and cashier name when visible on the receipt |
subtotal / taxAmount / totalAmount | Number | Financial figures extracted when Calculate Totals is enabled |
paymentMethod / cardLastFour | String | Payment type (Cash, Credit Card, etc.) and last 4 card digits |
analyzeItems[] | Array | Array of line-item objects (name, qty, unitPrice, totalPrice, SKU, brand) - populated when Analyze Items is enabled |
roomNumber / checkInDate / checkOutDate | String | Hotel-specific fields - populated when Receipt Type is hotel |
fuelType / fuelQuantity / fuelUnit / vehicleNumber | String | Fuel-specific fields - populated when Receipt Type is fuel and energy |
healthcareProvider / patientName / insuranceInfo | String | Healthcare-specific fields - populated when Receipt Type is healthcare |
trainingProvider / courseName | String | Training-specific fields - populated when Receipt Type is training |
warnings[] | Array | Array of extraction warning messages - flag these for manual review in your Zap |
fallbackUsed | Boolean | true when a secondary extraction method was used; consider routing to review queue |
rawOcrText | String | Full OCR text from the receipt - useful for keyword search or audit logging |
jobId / success / message | Mixed | Processing job ID, boolean success flag, and descriptive result message |
如何在 AI 收据解析器中设置 AI 收据解析器 Zapier?
- 创建或打开一个 Zap 添加一个触发器,用于提供收据文件——Gmail 新附件、Google Drive 文件夹中的新文件、OneDrive、Dropbox 或 Typeform 文件上传。
- 添加操作步骤 → 搜索 PDF4me → 选择 AI收据解析器。
- 认证 你的 PDF4me API 如果尚未连接,请输入密钥(在密钥中输入密钥)。 Zapier 帐户对话框)。
- 地图收据文件 来自触发输出(二进制文件字段,而不是 URL)。
- 地图收据名称 - 使用触发器中的文件名字段,以便文件扩展名始终正确。
- 设置收据类型 如果您知道类别,请填写;否则请留空,以便自动检测。
- 启用分析项目 如果需要行项目数据,请启用 提取商家信息 和 计算总数 用于费用工作流程。
- 添加自定义字段键 作为一个 JSON 如果您的收据包含非标准字段,则需要使用数组。
- 测试该步骤 - Zapier 将运行一个示例并向您显示所有返回的输出字段。
- 添加下游步骤 将 merchantName、totalAmount、transactionDateStr 和其他字段写入 Google Sheets、QuickBooks、Xero 或您的数据库。
工作流程示例
工作流程示例Common Zapier patterns using AI-Receipt Parser.
从 Gmail 捕获收据附件,并将解析后的费用行自动写入 Google 表格。
- Gmail:新建附件 - 按主题包含“收据”或发件人域进行筛选。
- PDF4me:AI收据解析器 - 映射文件和文件名;启用提取商户信息 + 计算总计。
- Google Sheets:追加行 - map merchantName、transactionDateStr、totalAmount、paymentMethod、receiptType。
- Gmail:发送电子邮件 - 向财务团队发送每张已处理收据的汇总行。
当员工将收据放入共享驱动器文件夹时,解析该收据并自动创建 QuickBooks 费用。
- Google 云端硬盘:在文件夹中新建文件 - 监视共享的“收据”文件夹。
- PDF4me:AI收据解析器 - 启用分析商品 + 计算总额 + 提取商家信息。
- Zapier 筛选条件:仅当 success = true 且 totalAmount > 0 时继续。
- QuickBooks:创建费用 - 映射供应商(merchantName)、日期(transactionDateStr)、总计(totalAmount)。
- Google 云端硬盘:将文件移动到“已处理”子文件夹,以防止重复解析。
自动检测特殊类型的收据,并将酒店和燃油收据路由到单独的跟踪表。
- Dropbox:在文件夹中新建文件 - 团队差旅收据文件夹。
- PDF4me:AI收据解析器 - 将收据类型留空以进行自动检测;启用所有三个开关。
- Zapier 路径:分支 A → 酒店 → Google 表格“旅行”选项卡(房间号、入住日期、总金额);分支 B → 燃油 → “车队”选项卡(燃油类型、燃油数量、车辆编号);分支 C → 所有其他 → “一般费用”选项卡。
- Slack:向 #expenses 发布消息,汇总收据类型、商家和总额。