メインコンテンツへスキップ

Parseを使用したAIドキュメントパーサー

このガイドの内容

AIドキュメントパーサー。解析 JSON に変換するダッシュボード設定は ドキュメントスキーマ の中へ AIを活用した構造化PDF抽出. 作成します アナライザ選ぶ 解析 タイプ、そして必要なフィールドの説明 フィールド名、 フィールドタイプ、 そして フィールドの説明AI は文書を意味的に読み取るため、描画されたキャプチャ領域や正規表現は必要ありません。保存後、同じアナライザー ID が実行されます。 REST API、 Make、 Zapier、 Power Automate、 そして n8n。

関連ブログ記事(5)
MakeでAIを使ってあらゆるPDFを抽出・スマートリネーム:PDF4me AI - ドキュメントパーサーを使用した4モジュール構成のDropboxワークフロー
4つのモジュールで構成されるMakeシナリオ:DropboxからベンダーのPDFを取得し、デフォルトの請求書抽出機能を使用してAI - Document Parserを実行し、JSONを解析してvendorNameを抽出し、vendorName.pdfというファイル名で再アップロードします。実際のスクリーンショット、正確なフィールド値、手動データ入力は不要です。
投稿を読む →
ZapierでAIを使って仕入先請求書の名前を変更する:DropboxとPDF4meを使った5ステップのワークフロー
5ステップのZap:Dropboxフォルダ内の新規ファイル → Dropboxファイル検索 → PDF4me AI - ドキュメントパーサー → ZapierによるJavaScript実行コード → Dropboxファイルアップロード。AIで顧客名を抽出し、出力ファイル名として使用します。実際のスクリーンショット、正確なフィールド値、2行のJSON.parse以外のコードは一切不要です。
投稿を読む →
Zapierで仕入先請求書を仕入先名で全てリネームする:Dropbox + PDF4me AIワークフローの5ステップ
経理チーム向けの5ステップのZap。Dropboxが請求書受信フォルダを監視し、PDF4me AI - Document ParserがすべてのPDFから仕入先名を抽出し、Code by Zapierがパーサーの出力をマッピング可能なトークンに変換し、Dropboxが仕入先名をファイル名としてファイルをアップロードします。実際のスクリーンショット、正確なフィールド値、このチュートリアルで使用されているサンプルファイルsample-vendor-invoice.pdfはダウンロード可能です。
投稿を読む →

セットアップの認証​

AIドキュメントパーサーアナライザーは、 PDF4me 開発者ダッシュボード。アカウントでサインインしてから、 API AIパーサーのキー API ここで構築したアナライザーを参照する呼び出し。

このガイドで使用するダッシュボードのURL:

見逃してはならない重要な事実​

抽出データを解析する。ルート文書を分類する。
選ぶ 解析 構造化されたものが必要な場合 JSON 定義されたフィールドごとに1つの値で出力します。 分類する カテゴリラベルだけが必要な場合。2種類のアナライザーは同じ「追加」モーダルを共有しますが、出力形状が異なります。
フィールドの説明が精度を左右する
AIは フィールドの説明 ドキュメント内の各値を検索するための文字列を指定します。具体的に指定し、別名(「販売注文番号、SO No.と表記される場合もあります」など)も含めてください。曖昧な説明は抽出精度を低下させます。
アナライザーIDは安定した生産リファレンスです
追加行に入力する文字列(例: 購入注文解析器) は、すべての API 呼び出しと自動化モジュールの使用例。事前に明確な命名規則を決定してください。後から変更すると、そのモジュールを参照するすべてのワークフローを再配線する必要が生じます。

ステップ1:ダッシュボードでAIドキュメントパーサーを開きます​

  1. サインインはこちら pdf4me.com。
  2. ダッシュボードのサイドバーから、クリックします AIドキュメントパーサー。
  3. リストページには、既存のアナライザーがすべて3つの列で表示されます。 アナライザーID、 分析装置の種類 (解析または分類) 行動。
  4. 青色をクリック +追加 新しいアナライザーを開始するには、このボタンをクリックしてください。
PDF4me AIドキュメントパーサーのダッシュボードページ。サイドバー項目「AIドキュメントパーサー」が赤色で強調表示され、メインパネルには「AIドキュメントパーサー」というタイトル、青色の「追加」ボタン、および「アナライザーID」、「アナライザータイプ」、「アクション」の列ヘッダーを持つ空のリストが表示されます。

AIドキュメントパーサーのリストビューです。[+追加]をクリックして新しいアナライザーを作成します。

ステップ2:アナライザータイプ「解析」を選択し、名前を付けます。​

新しい行が表示され、3つのコントロールが表示されます。

  1. アナライザーID入力覚えておけるような明確な識別子を入力してください。例: purchase order parser、 Invoice Parser v1、 または vendor_statement_parser命名形式に制限はありません。スネークケース、キャメルケース、ケバブケース、スペースを含む通常の単語など、すべて同じように機能します。
  2. アナライザータイプのドロップダウン。 選ぶ 解析 (このガイド)または 分類する (参照) 分類ガイド)
  3. 保存/キャンセル ボタン。保存するとアナライザーが作成され、キャンセルすると行が破棄されます。
PDF4me AIドキュメントパーサーの追加行が開き、アナライザーID入力欄にpurchase_order_parserが入力され、アナライザータイプのドロップダウンにはClassifyとParseのオプションが表示され、Parseが選択されています。右側には保存ボタンとキャンセルボタンがあります。

行を追加するには、アナライザーIDを入力し、「解析」を選択してから「保存」をクリックします。

命名のヒント: 名前に文書ファミリーを含める(請求書解析ツール、 購入注文解析器、 出荷伝票解析ツール) アナライザー ID は、下流の自動化処理で呼び出されるものです。新しいプラットフォームに接続するたびに、明確な名前が役立ちます。大文字小文字や区切り文字のスタイルは問いません。

ステップ3:アナライザーを開き、スキーマを追加します。​

新しい行をクリックすると詳細ページが開きます。URLパターンは次のとおりです。

https://dev.pdf4me.com/ai-document-parser/?id=<your-analyzer-guid>

ダッシュボードは、初回起動時にアナライザーごとにGUIDを発行します。次回以降、同じアナライザーに直接アクセスできるよう、このURLをブックマークしておいてください。

詳細ページには以下が表示されます。

  • 解析情報 (左)ステップ2で入力したアナライザーIDが表示されます。このパネルは読み取り専用です。
  • スキーマ (右)。デフォルトでは空です。 + 右上のボタンをクリックしてスキーマを追加します。
  • 変更を保存 (左上)。このページで行った編集内容はすべて保持されます。
  • 戻る. に戻る アナライザー一覧。
PDF4me AIドキュメントパーサーの詳細ページには、青いヒーローバナーに「AIドキュメントパーサー」と表示され、サブタイトル「AIを使用して請求書データを自動抽出し、高速かつ正確で構造化された出力を実現」、戻るボタン、変更を保存ボタン、アナライザーID「purchase_order_parser」を表示する解析情報パネル、およびスキーマを追加するための青いプラスボタンが付いた空のスキーマセクションがあります。

アナライザーの詳細。青色の「+」ボタンをクリックして、ドキュメントスキーマを追加します。

ステップ4:ドキュメントスキーマを定義する JSON​

クリックした後 +空のスキーマ カードが開きます。 JSON 2つのトップレベルキーを持つオブジェクト:

  • descriptionスキーマが抽出した内容を1文で要約したもの。AIはこの要約を全体的なコンテキストとして使用します。
  • fieldsフィールド定義の配列。各フィールドには以下が含まれます。
    • fieldName機械可読名(スペースなし)、 JSON 応答のキー。
    • fieldType。 string、 number、 または date解析と検証を実行します。
    • fieldDescriptionAIがこのフィールドを見つけるために使用する自然言語によるヒント。具体的に記述してください。
PDF4me AI ドキュメント パーサー スキーマ 1 カードが開き、ドキュメント スキーマ エディタが表示されます。そこには、購入注文と販売注文からデータを抽出するという説明と、SalesOrderNumber 文字列の販売注文番号、AgentName 文字列のエージェント名(通常はエージェント名として指定)、および DeptCode(一部表示)を含むフィールド配列の JSON が表示されます。エディタの下には、請求書と購入注文のクイック フィル ボタンがあります。

請求書および発注書テンプレート用のクイック入力ボタンを備えた文書スキーマエディタ。

例:発注書スキーマ​

{
"description": "Extracting data from purchase orders and sales orders.",
"fields": [
{
"fieldName": "SalesOrderNumber",
"fieldType": "string",
"fieldDescription": "Sales Order Number"
},
{
"fieldName": "AgentName",
"fieldType": "string",
"fieldDescription": "Name of the agent, mostly given as Agent Name."
},
{
"fieldName": "DeptCode",
"fieldType": "string",
"fieldDescription": "Department or cost-centre code printed on the order."
},
{
"fieldName": "OrderDate",
"fieldType": "date",
"fieldDescription": "Date the order was placed. Accept formats like DD/MM/YYYY, MM-DD-YYYY, or written out as 5 June 2026."
},
{
"fieldName": "TotalAmount",
"fieldType": "number",
"fieldDescription": "Grand total of the order in the document's currency, after taxes."
}
]
}

例:請求書スキーマ(請求書クイック入力ボタンを使用)​

{
"description": "Extracting data from supplier invoices.",
"fields": [
{
"fieldName": "InvoiceNumber",
"fieldType": "string",
"fieldDescription": "Unique invoice identifier, sometimes shown as Invoice No. or INV."
},
{
"fieldName": "InvoiceDate",
"fieldType": "date",
"fieldDescription": "Date the invoice was issued."
},
{
"fieldName": "DueDate",
"fieldType": "date",
"fieldDescription": "Date payment is due, sometimes shown as Payment Due or Net Due."
},
{
"fieldName": "VendorName",
"fieldType": "string",
"fieldDescription": "Company name of the supplier or vendor sending the invoice."
},
{
"fieldName": "TotalAmount",
"fieldType": "number",
"fieldDescription": "Grand total in the invoice currency, including taxes."
}
]
}

クイックフィルボタン(請求書、発注書): スキーマカードの一番下にあります。 これらを出発点として活用してください いずれかをクリックすると、その文書ファミリーの標準的なスキーマが読み込まれます。その後、フィールドの名前を変更したり、不要な部分を削除したり、拡張したりして、実際の文書に合わせてください。プリセットはあくまでも骨組みであり、最終的なスキーマではありません。

テーブルフィールド(ネストされた行)を含むスキーマ​

使用 フィールドタイプ: "テーブル" 請求書明細や発注書明細などの繰り返し行を抽出する必要がある場合に使用します。各テーブルフィールドには独自のネストされた フィールド 列を記述する配列。

{
"description": "Invoice data extractor",
"fields": [
{
"fieldName": "invoiceNumber",
"fieldType": "string",
"fieldDescription": "Invoice number / bill number / receipt number"
},
{
"fieldName": "invoiceDate",
"fieldType": "date",
"fieldDescription": "Look for labels: 'Invoice Date', 'Bill Date', 'Date', 'Dated', 'Issue Date', 'Doc Date'. If 4 digit year not found then consider 2 digit year at the end of extracted date.",
"fieldMethod": "generate"
},
{
"fieldName": "lineItems",
"fieldType": "table",
"fieldDescription": "All product / service rows from the invoice table. Be careful, sometimes a row can be part of the next item like when description goes over one line, but it's of a single item.",
"fields": [
{
"fieldName": "itemNumber",
"fieldType": "string",
"fieldDescription": "Product number, product id number or product code"
},
{
"fieldName": "hsnCode",
"fieldType": "string",
"fieldDescription": "HSN / SAC code (4 to 8 digit)"
}
]
}
]
}

フィールド属性​

属性必須?その機能
fieldNameRequiredThe name of the field and how it will appear in the response JSON.
fieldTypeRequiredThe type of data to extract. One of string, number, date, or table.
fieldDescriptionRequiredNatural-language description of what needs to be extracted and where to find it. Include alternate labels and example formats so the AI matches correctly.
fieldMethodOptional (default extract)How the AI fills the value. extract takes the value verbatim from the document. generate tells the AI to derive or normalise it (useful for dates, computed totals, or cleaned-up IDs). Omit for default extract behaviour.
fieldsRequired when fieldType is tableNested array describing the columns of the table. Each entry takes the same attributes as a top-level field (fieldName, fieldType, fieldDescription, fieldMethod). Cannot itself be table.

フィールドタイプの参照​

フィールドタイプ最適サンプルフィールドの説明
stringNames, identifiers, codes, free textCustomer name as printed on the invoice header.
numberAmounts, quantities, tax rates, countsGrand total of the order in the document currency, including taxes.
dateDates, due dates, issue dates, timestampsDate the invoice was issued, accept DD/MM/YYYY and 5 June 2026 formats.
tableRepeated rows (line items, addresses, transactions)All product / service rows from the invoice table. Carries a nested fields array describing the columns.

ステップ5:変更を保存してアナライザーを使用する​

クリック 変更を保存 左上の項目でスキーマを永続化します。これでアナライザーがアクティブになり、アナライザーIDを使用してどのプラットフォームからでも参照できるようになります。

アナライザーを使用する API または自動化呼び出し​

一度保存すれば、同じアナライザーは参照によってどこでも実行できます。各プラットフォームでスキーマを再作成する必要はありません。

分野ソース目的
AnalyzerIdステップ2で入力した文字列AIパーサーがスキーマを特定するために使用する安定した識別子。
docNameソース PDF ファイル名追跡情報やエラーメッセージの表示に使用されます。
docContentソース PDF エンコードされた Base64抽出元の文書。
asyncfalse 同期の場合、 true 世論調査のために応答配信を制御します。

例 REST リクエストボディ:

{
"docName": "purchase_order.pdf",
"docContent": "BASE64_ENCODED_PDF_CONTENT",
"AnalyzerId": "purchase_order_parser",
"async": false
}

レスポンスには、定義した項目ごとに 1 つのフィールドが含まれます。 fields. ルート JSON 下流のシステムに: Google Sheets、 Airtableデータベース、 Excelまたは、ウェブフック。

一般的なワークフロー​

典型的なAIパーサーのパターンHow a saved Analyzer moves from dashboard to production.
発注書受信箱 ERP
  1. 新しい発注書 PDF 監視対象のメールボックスまたはアップロードフォルダに届きます。
  2. Make、 Zapier、 Power Automate、 または n8n AIパーサーを呼び出す AnalyzerId: purchase_order_parser。
  3. 返された JSON (販売注文番号、 エージェント名、 注文日、 合計金額) はあなたの ERP 注文作成 API。
  4. 解析された注文番号を使用して、確認メールが顧客に送信されます。
請求書受信箱から会計スプレッドシートへ
  1. 請求書 PDF ウェブフック、監視フォルダ、または共有受信トレイ経由で届きます。
  2. AIパーサーは次のように呼び出されます AnalyzerId: invoice_parser (請求書クイック入力スキーマ)
  3. 構造化された応答(請求書番号、 合計金額、 期日) は行として追加されます Google Sheets または Excel 経理チーム向け。
分類してから解析するルーター
  1. 監視対象のフォルダには、請求書、発注書、出荷伝票など、さまざまな種類の文書が混在して保存されます。
  2. 分類アナライザーは、各ファイルを適切なカテゴリラベルに振り分けます。
  3. ラベルに基づいて、ワークフローは一致する Parse Analyzer を呼び出します (請求書パーサー、 購入注文解析器、 配送メモ解析器構造化された出力を適切な宛先に書き込みます。

スキーマのベストプラクティス​

  • 記述的 fieldDescription 文字列。実際の文書で見かける別の名称(「販売注文番号。SO No.、注文参照、またはPO参照とも表記される」)を記載してください。
  • 選ぶ fieldType 気をつけて。 date そして number エンジンに解析のヒントを与える。 string 形状が予測できない場合の代替手段です。
  • 保つ fieldName 機械可読形式(キャメルケースまたはパスカルケース、スペースなし)。 JSON 応答のキー。
  • 請求書または発注書のクイック入力機能から始めて、必要に応じて項目を削除したり追加したりしてください。プリセットは良いベースラインとなります。
  • アナライザーに本番環境のトラフィックを投入する前に、オプションフィールドの欠落、2ページ目の文書、OCRで生成されたテキストなどのエッジケースを含め、3つの実際のサンプルでテストを行ってください。
  • 破壊的なスキーマ変更を行う際のバージョンアナライザーID(invoice_parser_v1、 invoice_parser_v2)そのため、ライブオートメーションは独自のペースで移行できます。

関連アクション​

Classifyを使用したAIドキュメントパーサー
同じダッシュボードで、アナライザーごとに複数のスキーマを設定できます。1つのアナライザーでドキュメントのバリアント間(クライアントABCとクライアントXYZなど)のルーティングが必要な場合に使用します。
AI - ドキュメントパーサー Make
保存した Parse Analyzer ID を使用します。 Make シナリオ。あらゆるデータソースおよびストレージモジュールと組み合わせることで、ビジュアルワークフロー内でAIによるデータ抽出を実行できます。
AI - ドキュメントパーサー Power Automate
同じアナライザーを Power Automate 流れ。自然に繋がる SharePoint、 Excel、 Dataverse、 そして Outlook。
AI - ドキュメントパーサー n8n
自社ホスティングまたはクラウド n8n ワークフロー。AIアナライザーIDのドロップダウンメニューは、アカウントに保存されているアナライザーを直接読み込みます。
AI - ドキュメントパーサー Zapier
6,000以上のデータからAI抽出をトリガーする SaaS アプリとウェブフック。保存したアナライザーIDをAIアナライザー名フィールドに入力してください。

よくある質問​

What is the difference between Parse and Classify in AI Document Parser?+
Parse extracts structured field values from documents using a Document Schema. The response is a JSON object with one value per field you defined. Classify routes a document into one of several categories you defined; the response is a label string. Use Parse when you need data, Classify when you need a routing decision.
How is AI Document Parser different from the older Parse Document templates?+
The older Parse Document setup uses Regex Expression or JavaScript Expression applied to drawn capture areas on a sample PDF. AI Document Parser uses a JSON Document Schema with natural-language field descriptions; the AI engine reads the document semantically rather than by fixed positions. No sample PDF is required when defining an AI Analyzer.
What does fieldDescription do?+
It is the natural-language hint the AI uses to find each field in the document. Be specific and include alternate names ("Sales Order Number, sometimes shown as SO No."). Descriptions are the single biggest factor in extraction accuracy.
Can I add more than one Schema to the same Analyzer?+
Yes. The detail page supports multiple Schemas via the + button. Use this when one Analyzer should handle two related document families (purchase orders and sales orders) with slightly different field sets.
Does the Analyzer Id change after Save Changes?+
No. The Analyzer Id is the string you typed in the Add row in Step 2. It stays stable across edits and is the value every API call and automation module uses. Pick a clear naming convention up front.
Do I need to upload a sample PDF when setting up the Analyzer?+
No. Unlike the older Parse Document templates, the AI Analyzer does not need a sample for setup. You define a Document Schema in JSON; the AI engine applies it to whatever document you send at runtime.
How do I call the Analyzer from the REST API?+
Send docName, docContent (the PDF as Base64), AnalyzerId (the string you typed in Step 2), and async (false for immediate response, true for polling). The response contains one JSON property per field you defined in the Document Schema.
Can the AI Parser handle scanned PDFs?+
Yes, when the PDF has been OCR-processed first. Run the source file through the PDF4me OCR endpoint before sending it to the AI Parser. The schema then extracts from the OCR text layer the same way it would from a native PDF.

ヘルプが必要な場合​