Skip to content
PDFBetter

Guide · AI

How to automate invoice processing with OCR, extraction and review

Reviewed

Hands turning the pages of a printed document at a desk with a tablet and coffee

Short answer

Extract invoice data and post alert to billing channel

Connect PDFBetter to Zapier or Make. Start the Zap when an invoice arrives (a Gmail attachment, or a PDFBetter workflow run finishing), add PDFBetter's Extract Data From PDF step for fields such as invoice number, total and due date, then add a Slack or Microsoft Teams message step that posts those values to your billing channel. Each value comes with the page it was found on, and a value that isn't in the invoice is left empty rather than guessed.

On this page (7)

What you need

An extraction schema for your invoices (create one in the Extractions dashboard first), a folder for incoming invoices, and a workflow slot: 1 saved workflow on Free, 20 on Pro, unlimited on Business.

  1. 1Your PDF

  2. 2Pick the fields

  3. 3Rows with page evidence

What PDF to JSON does, in three steps.

Set up the workflow

  1. 1

    Open Workflows and start from the Invoices preset

    The preset adds four steps: recognize text (OCR), extract, review and export.

  2. 2

    Choose the extraction schema

    Pick the schema with your invoice fields. Set the OCR languages your invoices use.

  3. 3

    Set the trigger to a folder

    Choose the folder that starts this workflow. Runs can also be started by hand on a document or by a connected agent.

  4. 4

    Pick the export

    CSV by default; JSON or Excel also work. Download is the default delivery; webhook delivery is available on Business.

  5. 5

    Create the workflow

    Edits later apply to new runs; runs already in progress finish with the steps they started with.

Review and approve

Runs that reach the review step show “Needs approval”. Open the run to see each extracted value with the page it was found on, values marked “Not in document”, and anything to check. Correct a value if needed, then approve to continue or reject to stop the run. Exports use the approved, corrected values.

A review step waits until someone decides. An agent can approve only if you turned on agent approval for that specific step.

When something fails

Temporary problems such as a busy AI provider or a timeout are retried up to three times with growing pauses. An exhausted allowance, a missing document or invalid settings stop the run with the reason; after fixing it, use Retry to continue from the failed step.

What it costs

The workflow itself is free to run. OCR uses OCR pages (20 a month on Free, 1,000 on Pro), and extraction uses from 1 AI credit per page read. A two-page invoice therefore uses two OCR pages and from 2 AI credits.

Tools used in this guide

Questions people ask

How do invoices get into my accounting software?

Import the CSV, JSON or Excel file it produces, or, on Business, receive a signed webhook with a link to the file that works for 24 hours, which your own integration can pick up.

What exactly does it extract?

Exactly what is printed on the invoice, so your spreadsheet or accounting system receives the supplier's own figures to check against your records.

Can I skip OCR for digital invoices?

Yes, remove the OCR step if all your invoices are digital PDFs. Keep it if any arrive as scans; extraction on a scan without OCR finds little or nothing.

Can steps run in parallel or branch?

No. Steps run one after another in the order you set, with no branches or loops.

Are extracted values stored in the run history?

No. The run keeps ids and counts; the values live in the extraction record you open, correct and export.