跳到主要内容

1 篇博文 含有标签「Parse schema」

查看所有标签

在 Power Automate 中为您的发票格式构建自定义 AI 分析器:Dropbox 三步工作流程

· 阅读需 27 分钟
SEO and Content Writer

A 自定义 AI 分析器模板 这是一个命名的 JSON 模式,您可以在 PDF4me 开发门户中定义它,用于告知 AI 从特定文档类型中提取哪些字段。本演练将构建一个用于 PDF4me 自有 SaaS 订阅发票(33 个字段:供应商地址块、瑞士 MWST 税率、订阅 ID、行项目、折扣详情)的分析器,然后通过一个三步 Power Automate 流程调用它,该流程从 Dropbox 读取 PDF 文件并返回结构化的 JSON。

内置的 default_invoice_extraction 虽然涵盖了通用发票,但实际的应付账款团队会使用特定供应商的布局、自定义的明细项目列、特定管辖区的税项字段以及通用架构所缺失的订阅元数据。只需构建一次自定义分析器,即可永久获得精确匹配提取,无需逐字段提示,也无需后续逻辑来清理响应。

完整工作流程概览
Setup A. Log in to dev portal
dev.pdf4me.com login. Email plus password or any SSO provider (Microsoft, Google, Facebook, Apple, GitHub).
Setup B. Open AI Document Parser
Dashboard sidebar, AI Document Parser. Lists every Analyzer Template you have already created.
Setup C. Add a Parse Analyzer
Click Add, name it (e.g. Test Invoice), choose Type Parse. The Analyzer Id is what Power Automate references.
Setup D. Paste the JSON schema
Document Schema field. Each schema entry has fieldName, fieldType, fieldDescription. Save Changes.
Flow 1. Manually trigger a flow
Replace later with HTTP / SharePoint / Outlook trigger when ready for production.
Flow 2. Get file content (path)
Dropbox path /pdf4me.pdf, Infer Content Type Yes. Reads the source PDF into the flow.
Flow 3. AI - Document Parser
PDF4me action. File Content from step 2, File Name Test.pdf, Customisation Note Test Invoice (your Analyzer Id). Returns body JSON.