在 Zapier 中按供应商名称重命名所有供应商发票:5 步 Dropbox + PDF4me AI 工作流程
· 阅读需 23 分钟
应付账款中最令人头疼的部分不是支付发票,而是…… 三周后才找到正确的供应商发票 当财务部门询问时。每个供应商的文件命名方式都不同。一半是 invoice.pdf另一半是 INV-2089-FINAL-v3.pdf 供应商曾四次更改命名规则。解决方法:让 AI 在每张发票到达时立即读取供应商名称,然后在文件进入长期存储之前重命名该文件。本教程将构建这种精确的模式。 Zapier 和 PDF4me AI - 文档解析器 以及 2 行 Zapier 代码 步骤。五个 Zap 步骤。真实截图。供应商名称即为文件名。符合审计要求的文件夹。搜索功能即刻可用。
Zap概览
1. Dropbox: New File in Folder
Trigger. Polls /MuneerTrigger every 2 min for any new vendor invoice that lands in the intake folder.
2. Dropbox: Find File
Looks up the matching file in /pdf4metest/sample so the AI parser gets a real binary, not just a Dropbox metadata pointer.
3. PDF4me: AI - Document Parser
Runs the default_invoice_extraction Analyzer. Returns Vendor Name, Invoice Number, Total, Dates, Line Items as JSON.
4. Code by Zapier: Run JavaScript
Two lines. JSON.parse the Doc Text into a real object so step 5 can use Vendor Name as a Zapier token.
5. Dropbox: Upload File
Writes the original file back to /pdf4meoutput with Vendor Name as the filename and the original extension preserved.