AI - Document Parser in Power Automate
What this action does
PDF4me AI - Document Parser runs a saved Analyzer from the PDF4me dashboard against any document and returns the extracted data as Parsed Document Data dynamic JSON inside a Power Automate flow. One action covers invoices, purchase orders, receipts, contracts, lab reports, ID cards, or any custom form, just point Customisation Note at the matching Analyzer Id (Parse for a single schema, Classify for many document variants). Fields land as individually mappable tokens you can drop into SharePoint, Excel, Dataverse, Outlook, or any downstream Microsoft 365 step.
Sample Invoice for Testing
Use this sample vendor invoice to confirm the action works end-to-end before pointing your flow at live data. Upload it to SharePoint, OneDrive, or Dropbox, map File Content from Get file content, set File Name to sample-vendor-invoice.pdf, and type default_invoice_extraction in Customisation Note. The action returns Parsed Document Data with fields such as invoiceNumber, vendorName, and billTo.
Authenticating Your API Request
To call PDF4me through Power Automate, the flow needs a valid PDF4me API key on the PDF4me Connect connector. Get or rotate your key from the developer dashboard.
Set up your Analyzer first
- Analyzer list (Steps 1–2):
https://dev.pdf4me.com/dashboard/#/ai-document-parser/ - Analyzer detail (Steps 3–5):
https://dev.pdf4me.com/ai-document-parser/?id=<analyzer-guid>
Important Facts You Should Not Miss
Customisation Note to pick which Analyzer to run. Change the Analyzer schema later and every flow pointing at the same Id picks it up immediately, no flow rebuild.
Parameters tab: map File Content from a prior Get file content step, set File Name (use sample-vendor-invoice.pdf with the recommended sample), expand Advanced parameters, then set Customisation Note to default_invoice_extraction or your custom Analyzer Id.
Parameters
- Analyzer list (Steps 1–2):
https://dev.pdf4me.com/dashboard/#/ai-document-parser/ - Analyzer detail (Steps 3–5):
https://dev.pdf4me.com/ai-document-parser/?id=<analyzer-guid>
Required in the action: File Content (binary), File Name (string with extension), and Customisation Note (the Analyzer Id from the PDF4me dashboard, lives under Advanced parameters but is effectively required, the action has nothing to extract against without it).
| Parameter | Required | What it does | Example |
|---|---|---|---|
| File Content | Yes | Binary content of the source document. Map from a previous Get file content step (SharePoint, OneDrive, Outlook attachment, Dropbox, or any cloud-storage connector that exposes raw bytes). Try the sample-vendor-invoice.pdf above for your first run. | File Content |
| File Name | Yes | Source document filename with extension. Used for format detection and for tracking the call in logs. Accepts .pdf, .png, .jpg, .jpeg. Match the name of the file you uploaded (for example sample-vendor-invoice.pdf). | sample-vendor-invoice.pdf |
| Customisation Note | Yes (Advanced) | The Analyzer Id from the PDF4me dashboard. Create Analyzers at https://dev.pdf4me.com/dashboard/#/ai-document-parser/ (+ Add), then edit schemas on https://dev.pdf4me.com/ai-document-parser/?id=<analyzer-guid>. Use default_invoice_extraction for invoices, a Parse Analyzer Id for one schema, or a Classify Analyzer Id for several variants. | default_invoice_extraction |
Customisation Note: how Analyzer Ids map to behaviour
Parse Analyzer IdOne schema, extracts the fields you definedfields on the Analyzer.Classify Analyzer IdMany schemas, routes and extracts in one calldefault_invoice_extractionBuilt-in invoice AnalyzerinvoiceNumber, vendorName, billTo, dates, and related header fields without building a custom schema first.Output
The action returns Parsed Document Data as dynamic JSON. Every property defined in your Analyzer schema appears as an individually mappable token in the dynamic content panel of every downstream action. Response headers also carry standard Power Automate routing metadata.

Successful run on the sample vendor invoice with default_invoice_extraction. statusCode 200; Parsed Document Data exposes one property per Analyzer field for downstream mapping.
| Field (sample run) | Example value |
|---|---|
invoiceNumber | INV-3337 |
invoiceDate | January 25, 2016 |
vendorName | DEMO - Sliced Invoices |
vendorEmail | [email protected] |
billTo | Test Business |
billToEmail | [email protected] |
paymentDeadline | January 31, 2016 |
| Output | Type | What it contains |
|---|---|---|
statusCode | Integer | 200 on success, 400 for a malformed request body, 500 on a server-side error. |
headers | Object | Standard Power Automate / Microsoft routing headers, including Content-Type application/json. |
Parsed Document Data | Dynamic JSON | The body object. One property per field defined in your Analyzer schema (string, number, date, or nested table). For Classify Analyzers, the Classification Name of the matched Schema is also present. |
Quick Setup
- Build your Analyzer first. Open the Analyzer list, click + Add, type a clear Analyzer Id, pick Parse or Classify, save the row, then add a Document Schema on the Analyzer detail page. See the Parse setup guide or Classify setup guide for the full walkthrough.
- In your Power Automate flow click + New step, search PDF4me, pick AI - Document Parser.
- Sign in to PDF4me Connect with your API key.
- File Content. Map from a previous Get file content step (SharePoint, OneDrive, Outlook attachment, Dropbox, or any cloud-storage connector).
- File Name. Map the source filename with extension (
sample-vendor-invoice.pdf,invoice.png, etc). - Advanced parameters → Customisation Note. Type the Analyzer Id from step 1 (for example
default_invoice_extraction,client_invoices, orpurchase order parser). - Save the flow and test. The action returns Parsed Document Data with one property per field in your schema. Map fields into the next step using the dynamic content panel.
Workflow Examples
Workflow ExamplesOpen by default. Four common AI - Document Parser patterns in a 2x2 grid.
- Trigger on new file in a SharePoint Incoming Invoices library.
- Get file content for the new PDF.
- Run AI - Document Parser with Customisation Note set to your Parse Analyzer Id
invoice_parser. - SharePoint Create item in the AP list with InvoiceNumber, VendorName, TotalAmount, DueDate mapped from the dynamic JSON.
Impact: Manual data entry replaced by zero-touch AP intake.
- Outlook When a new email arrives with attachment trigger.
- Get attachment content as binary.
- Run AI - Document Parser with Customisation Note set to a Classify Analyzer Id (
client_invoices) holding one Schema per vendor. - Switch on the returned Classification Name and route Client ABC fields to one Dataverse table, Client XYZ to another.
Impact: One Power Automate flow handles every vendor without manual sorting.
- Trigger on new PDF in a Dropbox PO inbox.
- Get file content.
- Run AI - Document Parser with Customisation Note set to
purchase order parser. - Excel Add a row to a table with SalesOrderNumber, AgentName, OrderDate, TotalAmount mapped from the response.
Impact: Operations team sees every PO without opening a single PDF.
- Power Automate When a HTTP request is received trigger from your portal.
- Decode the uploaded PDF.
- Run AI - Document Parser with Customisation Note set to a Parse Analyzer Id you built for your custom onboarding form.
- Dataverse Add a new row for a Contact, mapping CompanyName, ContactPerson, Email, TaxId, BillingAddress directly.
Impact: Customer self-service onboarding without manual CRM entry.
Frequently Asked Questions
Related Actions
Same Task on Other Platforms
/v2/FlowV2/AiDocumentParser for custom backend code or Postman testing.