Extract key-value pairs from documents with Nutrient Document Web Services API on Zapier
Table of contents
What is Zapier?
Zapier(opens in a new tab) is an automation platform that connects your favorite apps and services with no code required. You can build “Zaps” to automate repetitive tasks by setting up triggers and actions between apps like Google Drive, Slack, Gmail, and more.
In this tutorial, you’ll extract key-value pairs from documents and save the JSON result to Google Drive using Nutrient DWS Processor API.
What is Nutrient DWS Processor API?
Nutrient DWS Processor API is a powerful platform for document automation. With your free account(opens in a new tab), you get 50 credits, which you can use to perform various document operations. Each tool (e.g. conversion, signing, flattening) consumes a different amount of credits depending on complexity.
Nutrient offers more than 30 tools with the ability to:
- Convert images and documents to PDF
- Merge, split, or reorder pages
- Add digital signatures, watermarks, or annotations
- Run OCR, redact, flatten, and more
What you’ll need
- A Zapier(opens in a new tab) account (a pro plan is necessary for multistep Zaps)
- A Google Drive account
- A scanned image or PDF file stored in Google Drive
- A Nutrient DWS Processor API key — sign up here(opens in a new tab)
Step 1 — Trigger a new file in a Google Drive folder
- Select Google Drive as the trigger app.

- Choose the New File in Folder trigger event.

- Connect your Google Drive account.
- Configure the trigger:
- In the Drive field, select your Google Drive.
- In the Folder field, select or create a folder (e.g.
kvp-input).

- Test the trigger with a sample PDF or image file.

Step 2 — Extract key-value pairs action (Nutrient DWS Processor API)
- Select Nutrient Document Web Services API as the action app.

- Choose the Extract Key-Value Pairs From PDF action.

- Connect your Nutrient account using your API key.

You can find your API key in the Nutrient dashboard(opens in a new tab).

- Configure the fields:
- Image File — Use the file from step 1.
- File Name — Optional, e.g.
extracted_kvp.json.

Make sure the files are publicly accessible or uploaded through a supported trigger like Google Drive.
- Test the action and open the returned File. Check that the JSON contains the expected keys and values from your sample document.

Step 3 — Upload the JSON result to Google Drive
- Now, add another step by selecting Google Drive as the app and Upload File as the action event. Connect your Google Drive account if needed.

- Configure the following:
- In the Drive and Folder fields — Choose where to store the extracted data (e.g.
kvp-output). - In the File field — Map File from the Nutrient DWS Processor API step.

To avoid Zap loops, use different folders for input and output.
- Run a test to verify the JSON file is uploaded successfully.

Conclusion
This Zap sends documents to Nutrient DWS Processor API and saves the key-value extraction result in Google Drive. Check the extracted fields before using them in another system. To set up your own workflow, create a Processor API account(opens in a new tab) and connect it to the Zapier integration(opens in a new tab). For tabular data, follow the Zapier table-extraction tutorial.