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

AIレシートパーサー Power Automate

AIレシートパーサー は Power Automate アクション PDF4me レシートを読む PDF または画像と、加盟店の詳細、明細項目、財務合計、および支払い方法を構造化データとして返します。これを使用して経費の記録を自動化し、フィードします。 Excel または Power BI 経費追跡、またはトランザクションを直接投稿 Dynamics 手動入力なしで365日間。

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

PDF4me AIレシートパーサー レシートを読む(PDF、 PNG、 JPG、 または JPEG)そして返します 販売者情報、 明細項目、 財務総額、 そして 支払方法 構造化された JSONまた、専門分野も認識しています。 ホテル、 燃料とエネルギー、 健康管理、 そして トレーニング 領収書、さらに追加情報を抽出できます カスタムフィールド 標準的なスキーマを超えている。

関連ブログ記事(1)

認証方法 Power Automate 流れ?​

電話するには PDF4me を通して Power Automateフローには有効な PDF4me API 鍵となるのは PDF4me 接続する コネクタ。認証により安全な通信が保証され、正規ユーザーとしての身元が確認されます。

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

実際のフィールド名は「ファイルコンテンツ」と「本文/ドキュメント/名前」です。
コネクタのUIには2つの主要なフィールドのラベルが表示されます ファイルの内容 そして 本文/文書/名前「領収書ファイルの内容」や「領収書名」ではありません。領収書のバイトをマッピングします。 ファイルの内容。
オプションフィールド5つはすべて「詳細設定」の下にあります。
本文/レシートタイプ、 本文/項目分析、 本文/販売者情報抽出、 本文/合計を計算、 そして 本文/カスタムフィールドキー これらはすべて「詳細設定」の下にあり、スクリーンショットで「5件中5件を表示」と表示されていることが確認できます。
警告とフォールバックを確認する。信頼性の低い読み取りを信頼する前に使用する。
ぼやけた写真や変わったレイアウトでも、 成功: true 人口の多い 警告 配列または fallbackUsed: trueこれらの項目は、自動転記合計ではなく、手動レビューに振り分けます。
Power Automate の AI-Receipt Parser アクションで、ファイル コンテンツと本文/ドキュメント/名前のフィールドが表示され、詳細パラメーター セクションでは、Body/receiptType、Body/analyzeItems、Body/extractMerchantInfo、Body/calculateTotals が Yes に設定され、Body/customFieldKeys を含む 5 件中 5 件が表示されています。

メインパネルには、 ファイルの内容 そして 本文/文書/名前抽出の切り替えはすべて詳細設定パラメータです。

パラメータ​

アクションに必要な要件: ファイルの内容 そして 本文/文書/名前その他のフィールドはすべて、デフォルト値が設定されているオプションの詳細パラメータです。

パラメータ必須その機能例
File ContentOptionalContent of the receipt file to process. Map it from the file content returned by a previous action, such as SharePoint or OneDrive Get file content.@{body('Get_file_content')?['$content']}
File NameOptionalName of the receipt file, including its extension (for example `receipt.jpg`). Map it from the file name returned by a previous action.receipt.jpg
ReceiptTypeOptionalOptional receipt type for improved parsing accuracy. Supported values: meal, supplies, hotel, fuel and energy, transportation, communication, subscriptions, entertainment, training, healthcare, generic.your value
analyzeItemsOptionalWhether to analyze individual items on the receipt. Defaults to `Yes`.Yes
extractMerchantInfoOptionalWhether to extract merchant information. Defaults to `Yes`.Yes
calculateTotalsOptionalWhether to calculate totals and subtotals. Defaults to `Yes`.Yes
customFieldKeysOptionalOptional list of custom field keys to extract.your value
Customisation NoteOptionalOptional customisation note for the extraction.your value

AIレシートパーサーの設定方法 Power Automate?​

  1. 追加 AIレシートパーサー あなたの流れに新たな一歩を。
  2. サインイン PDF4me 接続する あなたの API 鍵。
  3. 地図 ファイルの内容 前のアクションから (ファイルの内容を取得 SharePoint、 OneDrive(Dropbox、またはメール添付ファイル)。
  4. セット 本文/文書/名前 一致する拡張子付き(.pdf、 .png、 .jpg、 または .jpeg)
  5. 下 詳細パラメータ、 セット 本文/レシートタイプ カテゴリがわかっている場合は、 本文/項目分析、 本文/販売者情報抽出、 本文/合計を計算 必要に応じて。
  6. フローを実行します。チェック 成功 抽出したフィールドを後続の処理で使用する前に。
  7. ルート 販売者名、 アイテムを分析する、 合計金額および関連分野 Excel、 SharePoint、 Dynamics 365、またはPower BI。

出力​

レスポンスには、コアトランザクションフィールド、アイテム/販売者/財務情報のためのネストされた配列、レシートタイプごとの特殊フィールド、および処理メタデータが含まれます。

分野タイプ説明
Receipt TypeTextReceipt Type as read from the receipt.
Transaction DateTextTransaction date as string
Transaction TimeTextTransaction Time as read from the receipt.
Receipt NumberTextReceipt Number as read from the receipt.
Analyze ItemsArrayAnalyze Items found in the receipt, one item per entry. Use Apply to each to go through the items.
Analyze Items[].NameTextName as read from the receipt.
Analyze Items[].QuantityNumberQuantity as read from the receipt.
Analyze Items[].Unit PriceNumberUnit Price as read from the receipt.
Analyze Items[].Total PriceNumberTotal Price as read from the receipt.
Analyze Items[].CategoryTextCategory as read from the receipt.
Analyze Items[].DescriptionTextDescription as read from the receipt.
Analyze Items[].Item CodeTextItem Code as read from the receipt.
Analyze Items[].BrandTextBrand as read from the receipt.
Analyze Items[].SizeTextSize as read from the receipt.
Analyze Items[].ColorTextColor as read from the receipt.
Analyze Items[].SKUTextSKU as read from the receipt.
Merchant Info ListArrayMerchant Info List found in the receipt, one item per entry. Use Apply to each to go through the items.
Merchant Info List[].Merchant NameTextMerchant Name as read from the receipt.
Merchant Info List[].Merchant AddressTextMerchant Address as read from the receipt.
Merchant Info List[].Merchant PhoneTextMerchant Phone as read from the receipt.
Merchant Info List[].Merchant WebsiteTextMerchant Website as read from the receipt.
Merchant Info List[].Cashier NameTextCashier Name as read from the receipt.
Merchant Info List[].Store NumberTextStore Number as read from the receipt.
Financial Info ListArrayFinancial Info List found in the receipt, one item per entry. Use Apply to each to go through the items.
Financial Info List[].SubtotalNumberSubtotal as read from the receipt.
Financial Info List[].Tax AmountNumberTax Amount as read from the receipt.
Financial Info List[].Total AmountNumberTotal Amount as read from the receipt.
Financial Info List[].Payment MethodTextPayment Method as read from the receipt.
Financial Info List[].Card Last FourTextCard Last Four as read from the receipt.
Merchant NameTextMerchant Name as read from the receipt.
Merchant AddressTextMerchant Address as read from the receipt.
Merchant PhoneTextMerchant Phone as read from the receipt.
Merchant WebsiteTextMerchant Website as read from the receipt.
Store NumberTextStore Number as read from the receipt.
Cashier NameTextCashier Name as read from the receipt.
SubtotalNumberSubtotal as read from the receipt.
Tax AmountNumberTax Amount as read from the receipt.
Total AmountNumberTotal Amount as read from the receipt.
Payment MethodTextPayment Method as read from the receipt.
Card Last FourTextCard Last Four as read from the receipt.
Room NumberTextRoom Number as read from the receipt.
Check In DateTextCheck In Date as read from the receipt.
Check Out DateTextCheck Out Date as read from the receipt.
Fuel TypeTextFuel Type as read from the receipt.
Fuel QuantityNumberFuel Quantity as read from the receipt.
Fuel UnitTextFuel Unit as read from the receipt.
Vehicle NumberTextVehicle Number as read from the receipt.
Service TypeTextService Type as read from the receipt.
Subscription PeriodTextSubscription Period as read from the receipt.
Training ProviderTextTraining Provider as read from the receipt.
Course NameTextCourse Name as read from the receipt.
Healthcare ProviderTextHealthcare Provider as read from the receipt.
Patient NameTextPatient Name as read from the receipt.
Insurance InfoTextInsurance Info as read from the receipt.
Additional InfoObjectAdditional information from the receipt, as an object. The connector defines no fields for it; use expressions to read its values.
Raw OCR TextTextRaw OCR text extracted from document
CustomFieldsDataArrayCustom fields returned for the receipt, as key and value pairs.
CustomFieldsData[].keyTextKey of the custom field.
CustomFieldsData[].valueTextValue of the custom field.

典型的な構成​

経費の記録 Excel
  1. 領収書がメール送信またはアップロードされたときにトリガーします SharePoint。
  2. extractMerchantInfoとcalculateTotalsを有効にして、AI-Receipt Parserを実行します。
  3. merchantName、totalAmount、transactionDateStr を新しいものとして追加します Excel 行。
  4. 抽出したデータと関連付けた元の領収書をアーカイブしてください。
項目別経費分類
  1. analyzeItemsを有効にした状態で、領収書のアップロード時にトリガーを実行します。
  2. analyzeItems内の各項目に適用し、返されたカテゴリフィールドに基づいて分類します。
  3. 規定のしきい値を超える項目は、管理者の承認を待つようにルーティングする。
  4. 承認されたアイテムを投稿する Dynamics 365ファイナンス。
特殊な領収書の送付先(ホテル、燃料、医療費など)
  1. レシートのアップロード時にトリガーし、カテゴリが既知の場合は Body/receiptType を設定します。
  2. 返送された領収書の種類と、ホテル、燃料・エネルギー、またはヘルスケアのいずれかの部門を確認してください。
  3. 部屋番号/チェックイン日、燃料の種類/車両番号、または患者名を対応するシステムに送信します。
  4. 警告はすべてログに記録し、手動で確認してください。

実践的なヒント​

合計値を投稿する前に、必ず成功と警告に基づいて分岐してください。

警告配列にデータが入力されている場合、またはfallbackUsed: trueが設定されている場合は、抽出の信頼性が低いことを意味します。これらのデータは、経費システムや会計システムに自動的に転記するのではなく、手動で確認する必要があります。

カテゴリがわかっている場合は、Body/receiptTypeを設定してください。

設定しなくても汎用的な抽出は機能しますが、一致するreceiptTypeを指定すると、roomNumberやfuelTypeなどのカテゴリ固有のフィールドの精度が向上します。

不要な抽出フラグをオフにする

合計金額のみが必要な場合は、レスポンスを小さくして処理を効率化するために、analyzeItemsとextractMerchantInfoをNoに設定してください。

本文/文書/ファイル名の拡張子を実際のファイル形式と一致させる

不一致の拡張子(たとえば、名前を付ける) JPG ファイル receipt.pdf は、フォーマットの検出と抽出の精度に影響を与える可能性があります。

標準スキーマで不足しているものについては、customFieldKeys を使用してください。

レシートに印刷されているロイヤルティ番号、プロモーションコード、または内部参照番号は、スキーマの更新を待つことなく、Body/customFieldKeys を介して取得できます。

チートシート​

ゴールレシートタイプ主要出力フィールド
General expense capturegenericmerchantName, totalAmount, transactionDateStr
Line-item expense reportsupplies or retailanalyzeItems (name, category, price)
Travel expense reconciliationhotelroomNumber, checkInDate, checkOutDate, totalAmount
Fleet fuel trackingfuel and energyfuelType, fuelQuantity, vehicleNumber
Healthcare expense/insurancehealthcarehealthcareProvider, patientName, insuranceInfo

よくある質問​

Body/receiptTypeはどのようなレシートタイプをサポートしていますか?+
食事、備品、ホテル、燃料およびエネルギー、輸送、通信、定期購読、娯楽、トレーニング、医療、および一般。正しいタイプを設定することは任意ですが、そのカテゴリの特殊フィールド(たとえば、ホテルの roomNumber や燃料およびエネルギーの fuelType)のフィールド認識精度が向上します。準拠した領収書に記録すべき内容に関する一般的な記録管理ガイダンスについては、以下を参照してください。 企業に対するIRSの記録保持要件。
analyzeItems、extractMerchantInfo、calculateTotalsの違いは何ですか?+
これら 3 つの高度なパラメーターは、抽出深度を個別に制御します。analyzeItems は個々の明細項目 (名前、数量、価格、カテゴリ) を抽出します。extractMerchantInfo は、販売者名、住所、電話番号、レジ担当者を抽出します。calculateTotals は、小計、税額、合計金額を抽出します。処理を減らし、応答を絞り込むために、不要なパラメーターは無効にしてください。
標準スキーマでカバーされていないカスタムフィールドを抽出することはできますか?+
はい。Body/customFieldKeys は、標準スキーマ以外のフィールド名の配列を受け入れます。AI エンジンは、レスポンスの additionalInfo オブジェクト内で、それぞれのフィールド名を検索して返そうとします。
パーサーが確実に読み取れなかったレシートはどのように処理すればよいですか?+
レスポンス内の warnings 配列と fallbackUsed フラグを確認してください。warnings 配列が空でない場合、または fallbackUsed: true の場合は、抽出の信頼性が低いことを示します (たとえば、ぼやけた写真から抽出した場合など)。このようなケースは、抽出された合計を自動的に投稿するのではなく、手動レビューのステップにルーティングしてください。これは一般的な手順と一致しています。 CFPBによる支出の正確な追跡に関するガイダンス。

関連アクション​

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

ヘルプが必要な場合​