PDF VectorPDF Vector
Back to all articles

Connect Parsing APIs to Zapier, n8n and Make

Set up PDF Vector in Zapier, Make and n8n: real action names and fields, the HTTP fallback, async callbacks for long files, error handling and credit costs.

Connect Parsing APIs to Zapier, n8n and Make

Connecting a document parsing API to Zapier, Make or n8n comes down to three decisions: which platform runs the workflow, whether you use the platform's ready-made app or a plain HTTP request, and how you handle files that take longer to process than the platform will wait. This guide covers all three for PDF Vector, with the real action names and fields on each platform, the HTTP fallback for anything the apps don't expose, the async callback option for long files, and the errors you should plan for.

What you are connecting

PDF Vector is a REST API (POST https://global.pdfvector.com/api/<group>/<operation>) for parsing, questioning and extracting data from documents, plus a set of academic search APIs. On all three automation platforms it is an action (or module, or node). There are no PDF Vector triggers: the workflow starts with whatever app receives the file, such as Gmail, Outlook, Google Drive, Dropbox, a form or a webhook, and passes the file or its URL to PDF Vector.

Every document action comes in three flavours:

OperationInputOutputUse it for
ParseThe filemarkdown (the whole document, tables included)Archiving, search, feeding an AI step
AskThe file and a questionmarkdown (a short answer)One fact per file, posted to Slack or a CRM note
ExtractThe file, a prompt and a JSON schemadata (JSON in your schema's shape)Anything that writes to a spreadsheet, database or app

And four document types: general documents, invoices, identity documents and bank statements. Here is how the names map across platforms:

OperationZapier actionMake modulen8n node
Document ParseParse DocumentParse a documentResource: Document, Operation: Parse
Document AskAsk About DocumentAsk a documentResource: Document, Operation: Ask
Document ExtractExtract Data From DocumentExtract structured data from a documentResource: Document, Operation: Extract
Invoice ExtractExtract Data From InvoiceExtract structured data from an invoiceResource: Invoice, Operation: Extract
Bank Statement ExtractExtract Data From Bank StatementExtract structured data from a bank statementResource: Bank Statement, Operation: Extract
Identity ExtractExtract Data From Identity DocumentExtract structured data from an identity documentResource: Identity Document, Operation: Extract

Parse and Ask follow the same pattern for invoices, bank statements and identity documents. The academic actions differ by platform: Zapier and Make have Search, Fetch, Parse and Find Citations (16 actions in total on each), while the n8n node has Search, Fetch, Find Citations, Paper Graph, Similar Papers and Search Grants, but not Academic Parse.

Zapier, Make or n8n: which one to use

All three can run the same document workflow. They differ in how they bill, how they branch, and what happens with slow files.

ZapierMaken8n
Best forShort linear flows across the most appsVisual scenarios with routers, iterators and many stepsFull control, code steps, self-hosting
BillingPer taskPer operationPer execution on n8n Cloud; free when self-hosted
BranchingPaths, FiltersRouters, FiltersIF, Switch, any number of branches
Arrays (line items, transactions)Flattened into line-item fieldsIterator, Array aggregatorSplit Out, Code node
Custom codeCode by Zapier (JS or Python)Built-in functions in mapping and filtersCode node (JS or Python)
Long-running filesHandled for you: the action waits for PDF Vector's callbackModule waits up to 300 seconds; use the HTTP + webhook pattern beyond thatNode waits for the response; use the HTTP + Wait pattern for very long files
PDF Vector Document ID fieldNoNoYes

A practical rule:

  • Zapier if the flow is trigger, extract, write one record, and the people maintaining it are not developers.
  • Make if one document becomes many records (an invoice with line items, a statement with transactions) or the flow branches several ways.
  • n8n if you need code for validation, want to self-host for data control or cost, or expect high volume where per-task pricing adds up.

Mixing is fine: for example, n8n for high-volume extraction and a Zap owned by the ops team for notifications. Keep the JSON Schema in one shared place so every tool extracts the same fields.

Whatever you pick, the platform bills separately from PDF Vector. A Zapier task or Make operation costs you on that platform; the document processing costs PDF Vector credits.

Set up PDF Vector in Zapier

  1. Create an API key in the PDF Vector app. The free plan includes 100 credits per month, no card required.
  2. Start a Zap with your trigger, for example Gmail "New Attachment" or Google Drive "New File in Folder".
  3. Add a PDF Vector action. Search for PDF Vector and choose the action, for example Extract Data From Invoice.
  4. Connect your account. Paste the API key. Leave the domain field on its default unless your company has a dedicated PDF Vector instance, in which case enter its domain.
  5. Map the file. Use File for an attachment or file object from the trigger, or Document URL for a public link. Fill only one.
  6. Fill the operation fields. Extract needs an Extraction Prompt and a JSON Schema (paste valid JSON; the free JSON Schema Editor builds one visually). Ask needs a Question. Parse Document has an optional Page-separated output switch that adds a pages array.
  7. Leave Model on Auto to start, then test and publish.

Two Zapier-specific details:

  • The test step does not process your file. When Zapier loads sample data, the action returns a placeholder with a _note field instead of calling the API, so you map fields from the built-in sample (data, markdown, pageCount, credits, ...). Real values arrive on live runs.
  • Long files are already async. The Zapier actions send a Zapier callback URL with every request. PDF Vector answers immediately, processes the file, and posts the result back, and Zapier resumes the Zap when it arrives. You don't need to do anything for long documents, and failures (for example, out of credits) still surface as a failed step.

Extract output becomes one field per schema property, which makes mapping into Google Sheets or a CRM straightforward. Arrays such as line items are flattened, so if you need to loop over them, Make or n8n is easier. For a complete Zap with validation, see Automate Invoices in Zapier, Make and n8n.

More on the Zapier app: PDF Vector for Zapier.

Set up PDF Vector in Make

  1. Add a module. In your scenario, click the plus button, search for PDF Vector and pick a module such as Extract structured data from a bank statement.
  2. Create a connection. Paste your API key. The domain defaults to global.pdfvector.com; change it only for a dedicated instance.
  3. Map the file. Either a Document URL, or the File and File Name from an earlier module (Gmail, Google Drive "Download a File", Dropbox, Airtable attachments, and so on).
  4. Fill the fields. Extract modules need a Prompt and a JSON Schema. Parse a document has a Page-separated output option.
  5. Run once. The Extract output bundle contains data, pageCount, model, credits, requestId and documentId. Because your schema defines what is inside data, run the scenario once with a real file so Make learns the fields, then map them in later modules.
  6. Add routing and schedule. Use a Router to split valid and suspicious results, an Iterator to turn data.lineItems or data.transactions into one bundle per item, and turn on scheduling.

The Make modules call the API synchronously and wait up to 300 seconds. That covers typical invoices, statements and short reports. For files that may take longer (hundreds of pages on max), use the callback pattern described below.

Make maps PDF Vector errors to its own error types, which matters for error handlers:

HTTP statusMake error typeTypical cause
400, 404, 422DataErrorBad input, unreadable or empty document, invalid schema
401, 403InvalidAccessTokenErrorWrong or deleted API key
402DataErrorMonthly credits used up, or a billing hold
429RateLimitErrorToo many requests at once
500, 502, 503, 504ConnectionErrorTemporary server-side problem

Attach a Break error handler (with automatic retries) to the PDF Vector module for RateLimitError and ConnectionError, and route DataError to a review path, because retrying a bad file does not fix it. More on the Make app: PDF Vector for Make.

Set up PDF Vector in n8n

PDF Vector is a verified community node (n8n-nodes-pdfvector), so it appears in the nodes panel on n8n Cloud. On self-hosted n8n you can also install it from Settings > Community nodes.

  1. Add the node after your trigger and create a PDF Vector credential with your API key.
  2. Pick Resource and Operation: Document, Bank Statement, Invoice, Identity Document or Academic; then Parse, Ask or Extract.
  3. Set Input Type. URL for a public link, or Binary Data plus Input Binary Field for a file from an earlier node. The Gmail trigger, for example, produces binary properties such as attachment_0; the Read/Write Files node produces data by default.
  4. Fill the operation fields: Question for Ask; Extraction Prompt and JSON Schema for Extract; Include Pages for Document Parse.
  5. Set Document ID (optional). Map something that identifies the file in your system, such as the email message ID or your database row ID. It is echoed back in the output and recorded with the usage, so you can trace credits to files.
  6. Map the output. Parse and Ask return markdown; Extract returns data; academic operations return results. Use Split Out on data.lineItems or data.transactions to get one item per row.

For error handling, set the node's On Error setting to continue using the error output, and connect that output to a branch that logs the file and notifies someone. More on the node: PDF Vector for n8n.

The HTTP fallback

Use a plain HTTP request instead of the app when you need something the app doesn't expose:

  • the async callback on Make or n8n,
  • documentId on Zapier or Make,
  • an endpoint the app doesn't include on that platform (for example Academic Parse on n8n, or Paper Graph on Zapier and Make),
  • a newer API parameter that hasn't reached the app yet.

The request is the same everywhere:

curl -X POST https://global.pdfvector.com/api/document/extract \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "x-pdfvector-document-id: order-2026-0412" \
  -d '{
    "url": "https://example.com/files/purchase-order.pdf",
    "prompt": "Extract the PO number, buyer, order date as YYYY-MM-DD, and every line item.",
    "schema": {
      "type": "object",
      "properties": {
        "poNumber": { "type": "string" },
        "buyer": { "type": "string" },
        "orderDate": { "type": "string" },
        "lineItems": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "sku": { "type": "string" },
              "quantity": { "type": "number" },
              "unitPrice": { "type": "number" }
            }
          }
        }
      },
      "required": ["poNumber", "lineItems"]
    },
    "model": "auto"
  }'

How that maps to each platform:

  • Zapier: Webhooks by Zapier (a paid Zapier plan feature), Custom Request, method POST, data as the raw JSON body, and the two headers.
  • Make: HTTP, Make a request, method POST, body type Raw, content type JSON, headers as above.
  • n8n: HTTP Request node, method POST, authentication as a header (or a Header Auth credential holding Authorization: Bearer ...), body JSON.

The document ID can also go in the JSON body as documentId; the header wins if you send both. Send exactly one of url, base64 or a multipart file. In no-code tools, url is easiest when the file already has a public or signed link; otherwise convert the file to a base64 string (in n8n, the "Extract From File" node's "Move File to Base64 String" operation; in Make, the built-in base64 functions) and send it as base64. Store the API key in the platform's credential or connection store, not in a plain text field that others can read.

Long files: the async callback

Every document operation accepts an optional callback object. When you include it, PDF Vector returns 202 with {"status": "processing"} straight away, processes the file in the background, and POSTs the full result (the same JSON a synchronous call would return) to your URL when it is done. If processing fails, the POST carries the header X-Pdfvector-Callback-Failed: true and a body with message, code and, when available, requestId.

Rules that come from how the callback works:

  • JSON requests only. The callback is read from a JSON body, so send url or base64, not a multipart upload.
  • Public endpoint. The callback URL must be a public http(s) address; private and local addresses are rejected with a 400.
  • One delivery. The result is POSTed once, with a 30-second timeout and no redirects followed. Answer quickly with a 2xx and do the heavy work afterwards.
  • Correlate with documentId. Successful callbacks include documentId if you sent one. Failure bodies don't, so keep a mapping from the callback URL (or a token in it) to your record.

In n8n: HTTP Request plus Wait

  1. HTTP Request node with the JSON body above, plus "callback": { "url": "{{ $execution.resumeUrl }}" }.
  2. Wait node set to Resume: On Webhook Call, HTTP method POST.
  3. After the Wait node, $json.body holds the PDF Vector result. Add an IF node that checks for a code field (present only on failures) or for the x-pdfvector-callback-failed header.

On self-hosted n8n, the resume URL must be reachable from the internet, so set n8n's public webhook URL correctly.

In Make: two scenarios

  1. Scenario A sends the HTTP request with "callback": { "url": "<your Make webhook address>" } and ends.
  2. Scenario B starts with Webhooks > Custom webhook on that address and continues with validation and writing results. Turn on the webhook's option to get request headers if you want to branch on the failure header; otherwise branch on whether code is present.

In Zapier

Nothing to build: the PDF Vector actions already use Zapier's callback mechanism.

Error handling that works in no-code tools

Failed requests are never charged credits, so retrying is safe from a billing point of view. What matters is retrying the right errors:

StatusMeaningWhat the workflow should do
400Bad input: no file, unsupported format, file over the tier's size or page limit, password-protected PDF, invalid JSON Schema, or a URL that could not be downloadedDon't retry as is. Fix the input, send the file instead of a URL, or move to a tier with higher limits
401Invalid or deleted API keyAlert the workflow owner
402Out of monthly credits or a billing holdStop and alert; retrying will not help until credits reset or billing is fixed
422Empty document, no readable text, or extraction failedRetry once on a higher tier (pro or max), then send to review
429Rate limitRetry with a delay
5xxTemporary server problemRetry with backoff

Two limits cause most 400s: nano, mini and pro accept up to 40 MB and 30 pages (max and auto up to 500 MB and 2,000 pages), and image files (PNG, JPG, TIFF, BMP, HEIF) need pro, max or auto. Leaving Model on Auto avoids both.

Beyond API errors, validate the extracted data before writing it anywhere: required fields present, totals that add up, dates in a sensible range. Route anything that fails to a person rather than to your system of record.

What a workflow costs

Credits are per page, and the tier sets the rate:

APInanominipromax
Document Parse1248
Document Ask / Extract24816
Invoice / Identity / Bank Statement Parse––610
Invoice / Identity / Bank Statement Ask / Extract6101418

Examples:

  • A 2-page invoice through Invoice Extract on mini: 2 × 10 = 20 credits.
  • A 6-page bank statement through Bank Statement Extract on pro: 6 × 14 = 84 credits.
  • A 40-page report through Document Parse on max: 40 × 8 = 320 credits.

With auto, you pay for the tier it actually runs, and text PDFs or Office files that are read without OCR are billed at most at mini rates. The free plan has 100 credits per month; Basic is $25 per month for 3,000 credits and Pro is $97 per month for 100,000 credits (pricing). Add your Zapier tasks or Make operations on top.

Start from a template

The templates library has Zapier, Make and n8n workflows for invoices, bank statements, ID documents and academic research built on these actions; swap the trigger and destination for your own apps.

FAQ

Does PDF Vector have a trigger in Zapier, Make or n8n?

No. PDF Vector provides actions. Start with a trigger from the app that receives files (email, cloud storage, forms, a webhook) and pass the file or its URL to a PDF Vector action.

How do I process a 200-page PDF in Make or n8n?

Set the model to auto or max (the other tiers stop at 30 pages). If processing may take longer than the module or node waits, send the request with an HTTP module and a callback URL pointing at a Make webhook or an n8n Wait node.

How do I get one row per line item?

Use an Extract action with an array in the schema, then an Iterator in Make or a Split Out node in n8n. In Zapier, line items arrive as flattened fields, which suits a single row per document better.