跳到主要内容

在 Make 中使用 AI 提取和智能重命名任何 PDF:一个包含 4 个模块的 Dropbox 工作流程,借助 PDF4me AI - 文档解析器

· 阅读需 22 分钟
SEO and Content Writer

供应商发票自动化中最难的部分始终是文件命名。一个文件夹里装满了 2030703747 (1).pdfScan_2026-04-12_invoice.pdf 无法搜索、无法排序、也无法审核。 PDF4me AI - 文档解析器 此外,还有一个 Make Parse JSON 模块可以解决这个问题。 4 个模块,零代码人工智能从PDF文件中提取供应商名称,同样的方法也适用于重新上传文件。 Acme Industries.pdf以下截图展示了画布中捕获的确切运行过程。

概况
1. Dropbox Download
Pulls /pdf4metest/sample/2030703747 (1).pdf. Scheduled trigger shown.
2. PDF4me AI - Document Parser
Runs the default_invoice_extraction Analyzer Template. Output: Doc Text JSON.
3. JSON Parse JSON
JSON string mapped to 3. Doc Text. Exposes vendorName, invoiceNumber, totalAmount, etc.
4. Dropbox Upload
Writes to /pdf4meoutput/ with File Name = 6. vendorName + .pdf. Smart-rename complete.
简短版

四个 Make 模块。Dropbox 下载文件 提取原始供应商 PDF 文件(屏幕截图显示) YnooxTestone 连接,路径 /pdf4metest/sample/2030703747 (1).pdfPDF4me AI - 文档解析器 映射上一步中的文件名和文档并运行 默认发票提取 作为 AI 分析器 ID.JSON 解析 JSON 转动 文档文本 输出为可单独映射的标记。Dropbox 上传文件 写信给 /pdf4meoutput/文件名 = 6. 供应商名称 + .pdf数据 = 1. 数据 从原始下载文件生成。结果:相同的 PDF 文件会以有意义的文件名出现在您的输出文件夹中,整个过程无需人工干预。

之所以只有 4 个模块而不是 8 个,是因为它需要 4 个模块。

两项设计选择。首先, 上传模块中的数据绑定到模块 1(原始 Dropbox 数据)。不是模块 3。AI 解析器只需要提取元数据;上传过程会重用原始的未修改文件,因此无需重新编码,不会造成质量损失,而且少了一个步骤。其次, 文件名使用已解析的标记加上字面值 .pdf 扩大 (截图显示) 6. 供应商名称 后面跟着输入的文本 .pdf因此,无论 AI 返回什么结果,重命名后的文件都会保持有效的扩展名。

它解决了一些常见的现实问题

人们会用类似这样的短语搜索这个问题:

  • 如何根据PDF内容自动重命名PDF文件? 这个四模块方案就能实现:人工智能读取供应商名称,上传程序将其用作文件名。无需任何人工操作。
  • “能否从PDF文件中提取供应商名称并将其用于其他地方?” 是的。AI - 文档解析器之后的 JSON 解析 JSON 步骤会将提取的每个字段公开为可单独映射的标记(vendorName、invoiceNumber、totalAmount 等)。
  • Make 中有 AI 文档解析器吗? 是的,是 PDF4me AI 文档解析器模块。它基于模板(分析器模板),因此同一个模块可以处理发票、收据、合同和自定义表单。
  • “如何在不训练模型的情况下从 PDF 中提取结构化 JSON?” 选择一个内置的分析器模板(default_invoice_extraction (适用于 AP)或在 PDF4me 控制面板中构建自定义版本。无需任何培训。
  • “我可以使用提取出的某个字段来重命名输出文件吗?” 是的。解析 JSON 后,将解析后的标记粘贴到“上传文件名”字段中。完成。

你正在构建的

这是一个可复用的 Make 场景,用于应付账款/入库文档自动化。触发条件(手动、按计划触发、文件监视、Webhook)触发后,AI 会解析供应商 PDF 文件,然后根据文件内容生成一个有意义的文件名,并将该文件重新上传。您还可以添加其他 PDF4me 分析器模板(例如收据、合同、采购订单、自定义表单),以相同的流程处理其他文档类型。

创建场景画布:Dropbox 下载文件(带有定时时钟徽章)、PDF4me AI - 文档解析器、JSON 解析 JSON 和 Dropbox 上传文件。四个大型圆形模块图标通过标准的虚线连接线连接。

四个模块构成完整的流程。Dropbox 1 上的时钟图标表示已设置定时触发;生产环境请切换到 webhook 或文件监视。


你需要什么

  • 制作 已创建场景的账户。 创建 Make 帐户 如果你需要的话。
  • PDF4me API密钥获取您的 API 密钥将其添加到第一个 PDF4me 模块中。参见 连接 PDF4me 以创建
  • Dropbox 带有源文件夹(例如 /pdf4metest/sample/包含供应商 PDF 文件和一个输出文件夹(/pdf4meoutput/任何存储设备的工作原理都相同。
  • 供应商发票 PDF该攻略使用 供应商发票示例.pdf下载截图中使用的确切文件 并将其拖放到您的 Dropbox 源文件夹中,以镜像每个步骤。
  • (可选)自定义分析器 如果您的使用场景并非发票,请创建一个发票。 AI文档解析器仪表板分析器详情使用内置的 默认发票提取 适用于AP。

先拿到样品。 下载与屏幕截图相同的供应商发票。将其放入您的 Dropbox 源文件夹(例如)。 /pdf4metest/sample/在运行场景之前,模块 1 会拉取同一个文件,并且 默认发票提取 返回相同结果 供应商名称 您在上传步骤中看到的令牌。

快速参考:每个参数的作用

AI Analyzer Id
Picks the Analyzer Template. default_invoice_extraction for invoices; custom templates for receipts, contracts, purchase orders.
File Name + Document
Both mapped from the prior storage module. Filename (with extension) and binary content of the source.
Doc Text (output)
JSON string with every extracted field. Always wire into a JSON Parse JSON module next.
Parsed tokens
After Parse JSON, every Analyzer Template field becomes an individually mappable token (vendorName, invoiceNumber, etc).
Smart-rename pattern
Drop a parsed token + .pdf into the downstream Upload File Name slot. Output file is renamed automatically.
Connection reuse
One PDF4me connection per Make team is enough. Add it once, reuse across every PDF4me module.

构建场景

模块 1:Dropbox 下载文件

从源文件夹中提取原始供应商 PDF 文件。

场地本次运行中使用的值
ConnectionYnooxTestone (ynoox.test...). your Dropbox connection
Way of selecting filesSelect a file
File/pdf4metest/sample/2030703747 (1).pdf
使用连接 YnooxTestone 配置 Dropbox 下载文件,选择文件的方式为选择文件,文件路径为 /pdf4metest/sample/2030703747 (1).pdf。

模块 2:PDF4me AI - 文档解析器

搜索 PDF4me 在动作选择器和选择器中 AI - 文档解析器

场地本次运行中使用的值
ConnectionMy PDF4me connection (t...)
FileMap
File Name1. File Name (from Module 1)
Document1. Data (from Module 1)
AI Analyzer Iddefault_invoice_extraction (built-in)
PDF4me AI - 文档解析器操作配置为连接我的 PDF4me 连接,文件设置为映射,文件名 1. 文件名,文档 1. 数据,AI 分析器 ID default_invoice_extraction。

默认发票提取 模板已内置。点击 分析器模板 提示中的链接可用于创建收据、合同或任何文档类型的自定义分析器。

模块 3:JSON - 解析 JSON

AI模块以JSON字符串的形式返回其结果。 Doc Text解析它以显示可单独映射的字段。

场地本次运行中使用的值
Data structureMy data structure (or leave blank. Make builds one on first run)
JSON string3. Doc Text (from Module 2)
使用“我的数据结构”作为数据结构,并将 JSON 字符串映射到 AI - 文档解析器模块中的“3. 文档文本”,创建 JSON 解析 JSON 操作。

数据结构保持默认设置。 我的数据结构 Make 会根据第一次场景运行中的实时 AI 输出构建一个模型。

模块 4:Dropbox 上传文件

智能重命名步骤。地图 文件名 解析后的标记加上字面值 .pdf 扩展,以及 数据原来的 模块 1 文件(非 AI 输出)。

场地本次运行中使用的值
ConnectionYnooxTestone (ynoox.test...)
Folder/pdf4meoutput/
FileMap (so File Name and Data come from prior modules)
File Name6. vendorName + .pdf (the parsed vendorName plus a literal .pdf extension)
Data1. Data (re-uses the original Dropbox download. not the AI output)
使用连接 YnooxTestone、文件夹 /pdf4meoutput/、文件设置为映射、文件名设置为 6. vendorName 后跟 .pdf、数据映射到 1. 来自原始 Dropbox 下载的数据,创建 Dropbox 上传文件配置。

智能重命名: 6. 供应商名称 这是模块 3 中解析出的标记,其字面值为 .pdf 紧接着输入。

保存并点击 运行一次供应商 PDF 文件已送达。 /pdf4meoutput/ 以其供应商的名字命名。


故障排除

Parse JSON cannot see Doc Text
The AI module did not run yet. execute the scenario once with Run once. Make builds the data structure from the live output of Module 2 on first execution.
Renamed file has no .pdf extension
Forgot the literal .pdf text after the vendorName token. Click the File Name field, place the cursor after the parsed token, and type .pdf.
Upload writes an empty file
Data is bound to the wrong source. It should be Module 1 (original Dropbox download). 1. Data, not the AI output. The AI module returns metadata, not a binary file.
vendorName comes back as empty or wrong
The Analyzer Template did not match the document layout. Try a different built-in template, or create a custom template at dev.pdf4me.com tuned for the layout of your vendors.
Want to extract more than vendor name
Any field in the Analyzer Template is exposed as a token after Parse JSON. Drop invoiceNumber, totalAmount, lineItems, etc anywhere you would drop a normal Make variable.
AI Analyzer Id dropdown is empty
No analyzer templates exist on your PDF4me account yet. Open dev.pdf4me.com, navigate to the Analyzer Templates section, and either pick the built-in default_invoice_extraction or create a custom template.

何时使用这种模式

Accounts payable automation
Vendor invoices in, structured data into Airtable / NetSuite / Xero, renamed file archived.
Email-to-ERP routing
Inbound email PDFs get parsed and routed to the right department based on extracted fields.
Contract intake (custom template)
Custom Analyzer Template extracts effective_date, parties, governing_law into a legal tracker.
Audit-friendly archives
Renaming by extracted vendor and date makes folders searchable and audit-trail clean.

接下来读什么?


常问问题

What is the difference between AI - Document Parser and AI-Invoice Parser?+
AI-Invoice Parser uses a fixed invoice schema (vendor, line items, totals, dates) and returns confidence scores. AI - Document Parser is template-driven via the AI Analyzer Id, so you can swap the document type by picking a different template. Use AI-Invoice Parser for AP-only workflows; use AI - Document Parser when you handle multiple document types or need a custom field set.
Where do I create a custom Analyzer Template?+
From the AI Analyzer Id dropdown click the Analyzer Template link in the hint, or visit dev.pdf4me.com. Define the fields you want extracted, name the template, save. The new template appears in the AI Analyzer Id dropdown in Make on the next scenario edit.
Why is Data on the Upload module bound to Module 1 instead of Module 2?+
Because the AI module only returns metadata (the extracted JSON on Doc Text), not a binary file. The original PDF lives on Module 1 Data. Re-using it on the upload avoids re-encoding and keeps the output identical to the input.
How do I add the .pdf extension to the renamed file?+
After dropping the parsed vendorName token into File Name, place the cursor right after it and type the literal text .pdf. Make stores File Name as a mixed string (token + literal), and the upload writes the file with the combined name.
Can I trigger this from email, SharePoint, or a webhook instead of a scheduled Dropbox download?+
Yes. Replace Module 1 with any module that produces a binary file and a filename: Gmail Get Attachments, SharePoint Get file content, OneDrive Download a File, Webhooks Custom webhook with file payload. Modules 2, 3, 4 stay identical.
How big can the input PDF be?+
Practical limits are bounded by Make operation timeouts and the PDF4me API payload limit. For multi-hundred-MB documents, downsample first via a PDF4me Compress action then run AI - Document Parser on the result.
Does this work in Power Automate, n8n, or Zapier?+
Yes. The PDF4me AI - Document Parser action is available on all four platforms with the same Analyzer Template concept. See the cross-platform comparison at the bottom of the Make action reference page.
How accurate is the extraction?+
Accuracy depends on document layout consistency and the Analyzer Template fit. Built-in templates like default_invoice_extraction are tuned across thousands of vendor invoices. For custom layouts that the AI mis-reads on, build a custom Analyzer Template in dev.pdf4me.com with examples of your specific format.

开始使用