🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!
Guides & Tutorials October 28, 2026

How to Extract Document Data in Gravity Forms with Mindee

GravityExtra
How to Extract Document Data in Gravity Forms with Mindee

Every team that collects documents through a web form knows the part that comes after the upload: someone opens each file, reads the numbers off it, and types them into a spreadsheet, an accounting tool or a CRM. It is slow, it is error-prone, and it does not scale. The Gravity Forms Mindee Premium Add-on removes that step. When a form is submitted, it sends the uploaded document to the Mindee document-AI API, reads the structured fields the model extracts, and writes them straight back onto the entry and into your merge tags — no re-typing, no copy and paste.

This guide explains what the add-on does, how document extraction with Mindee fits into a Gravity Forms submission, and how to set it up end to end. If you want the shorter reference afterwards, the setup guide walks through the same screens step by step.

What is Mindee, and why pair it with Gravity Forms?

Mindee is a document-AI platform. You point it at a file — a PDF or an image — and it returns the meaningful fields on that document as structured data: the supplier on an invoice, the total on a receipt, the name and number on an ID card, the amount on a bank check. Mindee offers ready-made models for common document types and an API builder where you train a model on your own paperwork. Each model exposes a predictable set of fields, each with a value and a confidence score.

Gravity Forms is where a lot of those documents arrive in the first place. A supplier uploads an invoice to your accounts form; an applicant uploads an ID to your onboarding form; a customer uploads a receipt to your returns form. The file lands on your site as a Gravity Forms entry — and then, traditionally, a person takes over. Pairing the two means the moment the form is submitted, the document is read and the data is captured automatically, with the result sitting right next to the submission it came from.

The Mindee settings page in Gravity Forms: license key, API key, account, model and version, and a Test connection button
Connect your Mindee account once; the API key is stored encrypted and never shown again.

What you will need before you start

You need a Mindee account and a model to run documents through. You can begin with a free tier and test calls to try it out; moving real volume through it needs a paid Mindee plan, which you manage inside your own Mindee account. The document types you can read are whatever your chosen Mindee model supports, so start by picking the model that matches the files your form collects — the off-the-shelf invoice or receipt models, an international ID model, or your own custom API-builder model.

From your Mindee dashboard, note three things that identify the model: the account (organization) name, the model name, and the version. For an off-the-shelf model the account is usually mindee; for a custom model it is your own account name. You will also copy the API key for that API, a 32-character token. That is everything the add-on needs to reach your model.

Step one: connect your account

Install and activate the add-on and activate your license key under Forms → Settings → Mindee. The connection fields appear once the license is active. Paste the API key, enter the account, model and version, and save. The key is encrypted the moment it is stored, so it never sits in your database in plain text and is never displayed again. Press Test connection to confirm the key reaches your account and model — the test sends no document, it just checks that the credentials are accepted. If you prefer to keep the key out of the database entirely, define it as the GFMND_API_KEY constant in wp-config.php; the add-on will use it and the settings screen will say so.

Step two: build the feed and the field map

Open the form that collects documents, go to Settings → Mindee, and add a feed. A feed answers three questions. Which file-upload field holds the document? Should the model run synchronously (an answer in one request) or asynchronously (the model queues the document and the add-on polls the job until it is done)? And which extracted fields do you want to keep?

The Mindee feed in Gravity Forms: the file-upload field, the processing mode and the field map
The field map turns Mindee’s output into named values you can use anywhere.

The field map is where the add-on earns its keep. Each row pairs a Mindee field path with a name. The path is the field in the model’s result — customer_name, total_amount, invoice_number, date — and you can dig into nested values and list items with a dotted path such as line_items.0.description. The name is what you want to call the value; map total_amount to total and the extracted figure becomes {mindee_field_total}. Map only the fields you care about and leave the rest blank. Add a feed condition if you only want extraction to run for certain submissions.

Step three: let the form do the work

From then on, every submission that matches the condition reads the uploaded file on the server, sends it once to your Mindee model with the key in the Authorization header, and waits for the result. In asynchronous mode the add-on enqueues the job and polls it with a sensible backoff until it completes. It then extracts each mapped field, stores the value with the entry, records the document id, and writes a note describing exactly what was processed and which fields were read.

Because the values are stored as merge tags, your notifications and confirmations can use them immediately: an admin alert that already carries the invoice total, a customer confirmation that quotes their reference, or a downstream integration that forwards the structured data onward. The person filling in the form sees only your confirmation message — none of the Mindee machinery is exposed to them.

A Gravity Forms entry screen showing the Mindee note with the processed document id and the extracted fields
The extracted values and a clear note live on the entry, next to the original upload.

Built to be safe and private

Document data is sensitive, so the add-on is careful with it. The uploaded file is sent only to your own Mindee account, for the single extraction call, and is never stored or forwarded anywhere else by the add-on. Your API key is encrypted at rest, kept out of the URL and request body, and never written to an entry or a log. The add-on talks only to the Mindee API over HTTPS and never follows a redirect to another host.

It is also safe to retry. A document is processed once per entry: a resend, a repeated feed run or a double submission never sends the same file to Mindee twice, thanks to a done marker and a short per-entry lock. When something goes wrong at Mindee — an invalid token, a rate limit, a document that cannot be read, a timeout — the submission is still saved and the entry gets a clear note explaining the problem, with your key stripped out of the message. A failed extraction never blocks the form.

Where it fits

Accounts teams use it to read supplier invoices the moment they are uploaded. Lettings and HR teams use it to capture ID fields during onboarding. Claims and returns desks use it to read receipts. Operations teams use it to lift reference numbers off delivery notes and packing slips. Anywhere a form collects a document and a human currently keys the contents in afterwards, this add-on does the keying for you — accurately, instantly, and with a full audit trail on each entry.

Ready to stop re-typing what is already on the page? Get the Gravity Forms Mindee Premium Add-on and turn every upload into structured data.

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr