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

ドキュメントを解析 Zapier

このアクションが何をするか

PDF4me ドキュメントを解析する 保存した解析テンプレートを PDF 内部 Zapier Zapを実行すると、次のステップにマッピングできる抽出フィールドが返されます。6,000以上のトリガーから選択できます。 Zapier アプリ(Gmail、Dropbox、Slack、Google Drive、OneDrive、Webhook)では、テンプレートを参照します。 テンプレート名(TemplateId)解析された値をGoogleスプレッドシート、Airtable、HubSpot、Pipedrive、QuickBooks、またはその他の下流アプリに直接ルーティングします。

関連ブログ記事(1)

この操作を実行する前に: 解析テンプレートを作成する PDF4me ダッシュボード。キャプチャキーを定義して選択します。 正規表現 安定したパターンまたは JavaScript 表現 条件付きロジックの場合。 Zapier アクションは、そのテンプレートを参照します。 テンプレートID。 見る ドキュメントの解析情報を準備する 完全なセットアップについては、正規表現の例(INV-\d{6,10}、 \d{2}/\d{2}/\d{4})、そして2人の作業員 JavaScript 表現分類器のサンプル。

認証 API リクエスト​

の PDF4me アクション Zapier 必要とする PDF4me アカウント接続一度ログインしてください API キーをすべての場所で再利用します PDF4me Zap でのアクション。

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

テンプレート名は、TemplateId GUIDを受け入れます。
フィールドラベルに関わらず、ダッシュボードからGUIDテンプレートIDを貼り付けてください。これは名前変更後も安定しており、Zapの再公開時にも安全な本番環境の値となります。
安定したパターンの正規表現、 JavaScript 条件付きロジック
テンプレートにキャプチャルールが記述されています。請求書番号、日付、金額には正規表現を使用します。 JavaScript 表現 文章 分類ルールとフォールバックルールのための変数。各キャプチャキーは、アクションの出力フィールドになります。
どんなものにも対応 Zapier ファイル入力
ファイルフィールドにはバイナリファイルが格納されます。 PDF 上流から Zapier ステップ (Gmail 新規添付ファイル、Dropbox 新規ファイル、Google Drive、Slack、webhook、 Zapier ストレージ) 同じ TemplateId が Make、 n8n、 Power Automate直接 REST。
Zapierの「ドキュメントを解析する」アクション

パラメータ​

パラメータ必須その機能例
FileOptionalBinary PDF from any upstream Zapier step: Gmail New Attachment, Dropbox New File in Folder, Google Drive New File in Folder, OneDrive New File, Slack New File, webhook with file payload. Pick from the prior step output.Attachment from Gmail
File NameOptionalSource filename including .pdf extension. Usually mapped from the same upstream step Filename output.invoice.pdf
Template NameRequiredTemplateId GUID from the PDF4me dashboard. Identifies which parse template (capture keys + extraction rules) the action should apply.12345678-1234-1234-1234-123456789abc
File URL (Either provide File or File URL)OptionalLink to the document to parse, as an alternative to File. Map a file URL from a previous step.
File NameOptionalName of the file, including its extension (for example `invoice.pdf`). If empty, the name is taken from the file or URL.

解析テンプレート内の式タイプ​

正規表現安定したパターン
請求書番号(INV-\d{6,10})、日付(\d{2}/\d{2}/\d{4})、量($?\d{1,3}(?:,\d{3})*(?:.\d{2})?) 生産キャプチャキーの約80%。
JavaScript式条件論理と分類器
キャプチャ領域のテキストは次のように渡されます 文章; 文字列を返します。マルチマーカー分類、フォールバックルール、日付正規化。参照 ドキュメントの解析情報を準備する 2つの作業サンプルについて。

出力​

このアクションは解析されたフィールドデータを次のように返します。 Zapier テンプレート内のキャプチャキーごとに1つのフィールドを持つ出力値を作成します。これらのフィールドは、後続のステップで動的フィールドピッカーから選択できます。

Zapierで解析されたフィールドを表示するパースドキュメントの出力
分野タイプ内容物
parseInfo文章テンプレートを使用して抽出されたデータは、キーと値のペアとして表されます。
parseInfoJson文章同じ抽出データとして、 JSON 弦。
トレースID文章リクエストのトレースID、 PDF4me 1を返します。 PDF4me 問題を報告する際のサポート。

ザップの例​

一般的なZapierのパターンTypical ways to chain Parse Document into a Zap.
Gmailの請求書をGoogleスプレッドシートに転送する
  1. Gmailの新規添付ファイル機能は、「仕入先請求書」などのラベルに基づいてトリガーされます。
  2. このフィルターは、拡張子が.pdfのファイルのみを通過させます。
  3. Parse Documentは、添付ファイルに対して請求書テンプレートを実行します。
  4. Google スプレッドシートの行を作成すると、invoiceNumber、totalAmount、invoiceDate が AP トラッカーに書き込まれます。
Dropboxの領収書をAirtableに送信
  1. Dropbox の「フォルダ内の新しいファイル」は /receipts でトリガーされます。
  2. Parse Documentは領収書テンプレートを実行します。
  3. Airtableの「レコードの作成」機能は、ベンダー、日付、合計、項目を経費ベースに書き込みます。
  4. Slackの「チャンネルメッセージを送信」機能は、#financeチャンネルに要約を投稿します。
HubSpotとのWebhook契約
  1. Webhooksによる Zapier キャッチフック社が新規契約を獲得 PDF。
  2. ドキュメント解析では、当事者、契約金額、開始日、終了日を抽出します。
  3. HubSpotの「取引の作成」または「取引の更新」機能は、契約データを取引レコードに書き込みます。
  4. 送信ウェブフックは取引の所有者に通知します。

よくある質問​

What goes in the Template Name field?+
Paste the TemplateId GUID from the PDF4me dashboard. Despite the field label, the GUID is the safer production value. It is stable across renames and identical to the value used by the REST API and the other platform connectors.
Where does the PDF file come from in a Zap?+
Any upstream Zapier step that exposes a file: Gmail New Attachment, Dropbox New File in Folder, Google Drive New File in Folder, OneDrive New File, Slack New File, Webhooks Catch Hook with file payload, Zapier Storage. Pick the file from the prior step output.
Do I have to build a template, or can the Zap parse any PDF?+
Template-based parsing is the supported production mode. Build the template once in the dashboard, then reference its TemplateId. The same TemplateId works in Make, n8n, Power Automate, and direct REST calls.
Can I extract data using JavaScript at parse time?+
Yes. Inside the template add a JavaScript Expression on a capture key. The capture area text is passed as the variable text and your function returns a string. The returned value appears in your Zap as a regular output field you can map into the next step.
How do I see the extracted fields in the field picker?+
Run the Test step at least once. Zapier reads the live response, learns the capture key names from your template, and surfaces them in the dynamic field picker of every downstream step.
What if my template changes (I add a new capture key)?+
Re-test the Parse Document action. Zapier re-reads the output and adds the new field to the picker. Then map it into downstream steps. The TemplateId stays the same so no other Zap step needs to change.

関連アクション​

他のプラットフォームでも同じタスクを実行​

ヘルプが必要な場合​